handle still narrower screens on phones

akkartik
Nov 23, 2023, 3:37 AM
VQYLKEGDS4KNR3LOKUZUK435L77IT4LE6S356QTN5N6POTCYMJRAC

Dependencies

  • [2] QGSOEM7Z bugfix: 'show' button layout
  • [3] GWLETNMW Mike's suggested button layout
  • [4] FPSPT5TM show current pane number
  • [5] 5MEJ7XNH lay out buttons based on device dimensions
  • [6] PRE6XPRN responsively increase/decrease font height
  • [7] RK2ASPN7 add lots of buttons to the toolbar
  • [*] 5RUFNRJO start of the visual skeleton

Change contents

  • edit in 0066-copy_button at line 8
    [3.2879]
    [3.2879]
    else
    y = y2
  • edit in 0065-hide_code_button at line 8
    [3.3236]
    [3.3236]
    else
    y = y2
  • edit in 0064-show_code_button at line 3
    [3.5231]
    [3.3453]
    local x2, y2 = maybe_draw_overflow_button(x, y, w, r)
    if Overflow_button then
    -- overflow
    if not Show_overflow then
    return x, y
    else
    y = y2
    end
    end
  • replacement in 0064-show_code_button at line 22
    [3.5539][2.96:114]()
    return x+w+10, y
    [3.5539]
    [3.5554]
    if Overflow_button then
    return x, y+Line_height
    else
    return x+w+10, y
    end
  • edit in 0021-draw_menu at line 16
    [3.4338][3.501:533](),[3.501][3.501:533](),[3.533][3.4339:4374](),[3.4374][3.577:605](),[3.577][3.577:605]()
    App.color{r=0.5, g=0.5, b=0.5}
    love.graphics.print('code', x, y)
    x = x+App.width('code')+10
  • edit in 0021-draw_menu at line 17
    [3.4455]
    [3.7838]
    if not Overflow_button then
    local w = App.width('code')+10
    local w2 = App.width('>>')+10
    if x+w+10+w2+10 < r then
    App.color{r=0.5, g=0.5, b=0.5}
    love.graphics.print('code', x, y)
    x = x+w+10
    end
    end
  • replacement in 0021-draw_menu at line 40
    [3.4818][3.4818:4850]()
    x = x+App.width('screen')+10
    [3.4818]
    [3.4850]
    x = x+w+10