Commit Graph

7 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 3e17033a87 extract a helper for buttons 2023-11-25 21:11:24 -08:00
Kartik K. Agaram 047b26d15a copy entire buffer when there's no selection 2023-11-23 16:20:37 -08:00
Kartik K. Agaram c0253d6182 handle still narrower screens on phones
Now I only assume 'run' and 'stop' are always visible.
And there's no point wasting space on the 'code' text in that case.

I've also standardized the boilerplate on all the other buttons.
2023-11-22 19:37:30 -08:00
Kartik K. Agaram d98bc8cc7d lay out buttons based on device dimensions 2023-11-22 12:38:16 -08:00
Kartik K. Agaram f580e2efca add lots of buttons to the toolbar 2023-11-20 22:23:09 -08:00