Commit Graph

9 Commits

Author SHA1 Message Date
Kartik K. Agaram 966f8a15bf simplify state management for menus 2023-12-04 22:09:47 -08:00
Kartik K. Agaram e93d43253d close all menus when tapping any button
I think I'm least likely to break something if I do this as explicitly
as possible rather than trying to figure out the right helper to put it
in once and for all. So just add some boilerplate to reset all state at
the start of each onpress1 handler. This seems like a good choice since
we aren't planning to add a lot more menus that would quadratically
explode the boilerplate.
2023-12-04 21:34:39 -08:00
Kartik K. Agaram d71e7fcfc8 extract a function 2023-11-26 09:53:09 -08:00
Kartik K. Agaram f1ddd6b8da hoist a temporary inside a function 2023-11-26 09:49:54 -08:00
Kartik K. Agaram 54ef90bca7 extract a second helper for buttons 2023-11-25 23:03:36 -08:00
Kartik K. Agaram 0c8722ac7f bugfix: save settings on mobile devices 2023-11-25 18:29:32 -08:00
Kartik K. Agaram 16332eef73 hide other menus when opening one 2023-11-25 09:10:05 -08:00
Kartik K. Agaram 76bfcba47e sliders for font size and color settings 2023-11-21 02:19:56 -08:00
Kartik K. Agaram f580e2efca add lots of buttons to the toolbar 2023-11-20 22:23:09 -08:00