extract a function

akkartik
Nov 26, 2023, 5:53 PM
ESOJS6ZWR3TK222KP7VHPQS7WXEWR6G5NOQ73E23X4B6YSTKW3SAC

Dependencies

  • [2] XG6DGBFE hoist a temporary inside a function
  • [3] RK2ASPN7 add lots of buttons to the toolbar
  • [4] W3RRTO4P extract a second helper for buttons
  • [5] JV27LDDK sliders for font size and color settings
  • [6] 5JMR2IJS bugfix: save settings on mobile devices
  • [*] R5QXEHUI somebody stop me

Change contents

  • file addition: 0142-right_justified_button (----------)
    [8.2]
    right_justified_button = function(name, x, y, callback)
    local w = App.width('settings')
    local x = x-5-w-5
    styled_button('settings', x, y, callback)
    return x
    end
  • replacement in 0072-settings_button at line 2
    [2.118][2.118:170](),[2.170][3.685:727](),[3.1396][3.685:727]()
    local w = App.width('settings')
    local x = x-5-w-5
    styled_button('settings', x, Menu_top+5,
    [2.118]
    [3.727]
    return right_justified_button('settings', x, Menu_top+5,
  • edit in 0072-settings_button at line 11
    [3.748][2.171:181]()
    return x