-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revised Logical Switches layout #3019
Conversation
screen-shots? |
Okay. Here I will instist to fit list item's data in one line. To my check on whiteboard if we use more tight styling.
|
You can look at the gvar LVGL PR, there I fiddled with paddings until I got a density similar to pre LVGL |
Okay here are data fields fixings for all LS functions types with max data length
|
My concern with the nested rounded rectangles is that the whole line looks like a button; but does not act like one. Nothing happens if you tap on the switch name. |
The nested stuff is only needed when you eve sub-rows. I would not do this for lists where the entries have no sub-rows. If this really has to be there, the outer part could get the darker background color |
That's a good point. Names are actually non-touchable (non-focusable labels) |
How about vertical screens (NV14)? Will it be two lines? |
I have remove all the empty switch buttons and added a single '+' button to match the inputs and mixes pages. The '+' button will pop up the view to select an empty logical switch unless 'Copy' has been previously selected on another switch. In that case it will show a menu to allow pasting to an empty switch (or creating a new one). |
Discussion point: What about two buttons at the bottom... one for new, one for paste? i.e. 2 half-width buttons. Either way, I think we need the same thing done here for the mixes and inputs pages as well. |
Paste is only active if a copy has already been done so you would have a hidden button or one that did nothing. |
f0787ff
to
38e7083
Compare
I have added a long press handler to quickly access the '+' button functions. |
@
I don't think it will work this way . |
@JimB40 Here is another idea to make more room (not sure about the labels as translation could be a problem). |
088809a
to
f3ee00b
Compare
bd73ff3
to
48f7500
Compare
@philmoz Logical Switches labels are only ones that do not follow XX00 pattern. Can we adjust Logic Switches labels to LS01, LS02 instead of L01,L02 |
While I do agree, that probably should be material for a different PR. You're talking about a system-wide change (probably also with a Companion UI component also), rather than effectively just the LS LVGL page conversion. edit: Also need to consider B&W UI, as the same terminology should be used for both colorlcd and B&W. |
- 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.
…nd lgvl objects for overview buttons.
…ch inputs and mixes.
… 's' suffix to time values.
… prevent clipping of large values.
48f7500
to
0a6b966
Compare
* 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]>
Summary of changes:
This PR changes the logical switch page with the same style of changes as the special/global functions page in PR 2992 .