Only using hotkeys for now, which are only available on non-mobile devices, and not very discoverable. But this is an accessibility foundation.
PRE6XPRNICDCHMF7C45A6DRPVT47IPAIWW6Q7AHNGW3D2PBGOPNAC update_font_settings = function(font_height)love.graphics.setFont(love.graphics.newFont(font_height))Line_height = math.floor(love.graphics.getFont():getHeight()*1.3)Line_number_padding = Line_number_width*App.width('m')Menu_height = 5 + Line_height + 5Menu_bottom = Menu_top + Menu_heightEditor_state.top = Menu_bottom + 20Editor_state.left = Menu_left + 50 + Line_number_paddingEditor_state.right = math.min(100+30*App.width('m'), Safe_width*2/3)Editor_state.width = Editor_state.right - Editor_state.leftedit.update_font_settings(Editor_state, font_height)Text.redraw_all(Editor_state)end
end,})-- settings button on rightlocal w = App.width('settings')button(Editor_state, 'settings', {x=Safe_width-w-10-5, y=Menu_top+5, w=w+10, h=Line_height, bg={r=0.6, g=0.8, b=0.6},icon = function(p)App.color{r=0,g=0,b=0}love.graphics.rectangle('line', p.x,p.y, p.w,p.h, 2,2)love.graphics.print('settings', p.x+5,p.y+2)end,onpress1 = function()print('settings')
-- nav buttons along sidesbutton(Editor_state, 'left', {x=0, y=Menu_bottom, w=Menu_left+30, h=App.screen.height, bg={r=0.5, g=0.5, b=0.5, a=0.2},icon = function(p)App.color{r=0.4,g=0.4,b=0.4}love.graphics.polygon('fill', Menu_left+5, App.screen.height/2, Menu_left+25, App.screen.height/2-10, Menu_left+25, App.screen.height/2+10)end,})local r = Menu_left + Safe_widthbutton(Editor_state, 'left', {x=r-30, y=Menu_bottom, w=100, h=App.screen.height, bg={r=0.5, g=0.5, b=0.5, a=0.2},icon = function(p)App.color{r=0.4,g=0.4,b=0.4}love.graphics.polygon('fill', r-25, App.screen.height/2-10, r-25, App.screen.height/2+10, r-5, App.screen.height/2)end,})
edit.keychord_press(Editor_state, chord, key)
if chord == 'C-=' thenupdate_font_settings(Editor_state.font_height+2)elseif chord == 'C--' thenupdate_font_settings(Editor_state.font_height-2)elseif chord == 'C-0' thenupdate_font_settings(20)elseedit.keychord_press(Editor_state, chord, key)end