Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(color): LVGLify and enhance Logical Switches page (#3019)
* Update logical switch layout: - Use LVGL flex / grid layout - Same height for all buttons - Display logical switch name inside button so entire row acts as button - Consistent press handler for buttons (always show popup menu) - Group buttons for empty switch in lines to utilise space - Remember selected button and reselect after edit. * Fix incorrect switch being selected when changing tabs. * Fix selection of focussed button when using 'Clear', and switching tabs. * Reorganise logical switch edit code. * Change button style to match input/mixes/outputs pages. * Single line overview on landscape LCD layout. Convert to using grid and lgvl objects for overview buttons. * Remove redundant flag. * Remove logic that tries to center scroll around selected button (not working). * Remove empty buttons and add a single '+' button at the bottom to match inputs and mixes. * Remove unused code. * Correct string usage. * Add long press handler for quick access to the '+' button functions. * Display logical switch operation and parameters as an expression. Add 's' suffix to time values. * Adjust spacing. * Set V2 number edit control to automatically resize and fit content to prevent clipping of large values. * Revert to fixed column layout. * Adjust grid spacing. * Convert the logical switch view in the channel monitor to LVGL flex. * chore: Formatting Co-authored-by: Phil Mitchell <[email protected]> Co-authored-by: Peter Feerick <[email protected]>
- Loading branch information