-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
refactor(color): UI code cleanup, speed up loading of complex pages #5031
Conversation
1bcc7f1
to
96b46e1
Compare
1630474
to
56c3feb
Compare
aeffe87
to
6d5e066
Compare
c9c46c2
to
6a4dbec
Compare
Convert magic numbers to class constants. Add defines for portrait/landscape layout.
…hen creating a new label.
… memory. Cleanup startup code for theme init.
6a4dbec
to
5b70a46
Compare
Curve edit and center beeps should be fixed now. |
One more minor one... Where it normally says "Loading" here the bottom part of the text is clipped. One side effect of the
seems to be that a long press on a "text' field can now oddly - where it will sometimes half-highlight it, and not actually activate/select it (with rotary encoder, touch seems fine)? |
That probably needs the fixes in #5107 - will try it out. |
Just let me know which way you want to go with that one... I was thinking that since it relates to long press handling, so don't want to break that too much with any overlap from this PR... |
'Loading' message height fixed. |
Thanks. Ok, lets keep them in order then... this one first, then 5107 soon. |
Partially revert change in #5031 re: `enableVBatBridge()` as this needs to be called reguarly so that the RTC voltage is actually read. The call to `disableVBatBridge()` while perhaps technically not needed since `adcRead()` will clear it itself once the voltage actually read certainly won't hurt.
Round 2 of the UI code refactoring.
Summary of changes:
The Lvgl textarea object used by the text entry and number entry fields is slow to create and layout. To avoid excessive overhead on pages and popups with a lot of text entry fields, these classes have been changed significantly.
Users should not see any difference (I hope); but under the hood they are now created as simple buttons. When the button is activated a text / number entry field is created over the top of the button and the appropriate UI activated to allow editing. On exit the text / number entry field is destroyed.