-
-
Notifications
You must be signed in to change notification settings - Fork 347
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): Use LVGL styles and objects for UI, legacy cleanup #4407
Conversation
From the screenshots, a lot of this looks better. However, till will have to wait until we branch off for 2.10 for merge, given the amount of change involved. @JimB40 I noticed in #3220 you never did anything for the mixer lines... any thoughts re: changing the active mixer line font color to PRIMARY1? |
14e8876
to
7b16373
Compare
78a5908
to
cb7fafc
Compare
@philmoz looks good to me! Looks like tremendous amount of work! |
7716a8c
to
dd4cc73
Compare
As of last commit this is now 18K smaller than current main on TX16S. |
Using one of the debug tools in LVGL it's possible to visualise the screen redraw/refresh overhead. 2.9 - yikes!: 2.10 main branch - better: This PR: Lua widgets still redraw every 100ms (or so) - we really need a better display API for Lua apps. |
So there will be a performance boost after this PR is applied?
|
Well the CPU will be doing less work refreshing stuff so there should be some improvement. On my TX16S this PR feels more responsive overall; but that could be my imagination :) |
Hi @philmoz ,
I have developed a lua lvgl binding. It's not 100% finished yet, but I would love to hear from your input to make it better. The binding will be upgraded to lvgl v9 soon, which has been improved a bit for bindings using the new property APIs. |
Thanks, it is on my radar to look all - does it support lvgl 8.2? |
I have just pushed a fix to make it compatible with v8.2. Not fully tested but the basic function can work now. |
9ba670e
to
b4340dc
Compare
d3fa509
to
216d222
Compare
216d222
to
0c56a3a
Compare
My RM TX16S with DE language freezes when trying to display the SD card contents. Key SYS--> Open SD card directory. Only by removing the battery can it be revived. Is this known? |
Are you using the latest version of this PR? |
Note: The problem occurs with several themes. With the edgetx standard themes (tested with blue) the display of the SD card content works perfectly. |
0c56a3a
to
254c4f4
Compare
can the "title scroll up" be part of this changes? |
Not planned (by me) at this stage. I have not looked at it closely enough yet to say how feasible it will be. |
d78dca1
to
f826ecd
Compare
5226f44
to
1d28a66
Compare
2fcbf69
to
18d6cdf
Compare
8ccefad
to
df6c64a
Compare
df6c64a
to
1fd9858
Compare
1fd9858
to
fdae027
Compare
Thanks, may have lost something in one of the rebases. Will look into it.
The boxes should resize to fit the name - they do on my TX16S.
Which radio? |
TX16S. you'll see on the radio on the left the lag and also the shorter than model name field. Video may still be unavailable for a few minutes as was still running through copyright checks... https://youtu.be/gg5X17oLii8 |
Performance updates. Make model name input field longer. Fix initialisation of various items.
I've fixed the channel monitor and the model name field size plus made a few performance improvements. |
Much better... it's still a little more sluggish than 2.10 but much better than it was. Did you want to work on this more or merge and keep going? One less PR to rebase ;) |
If you're ready to go with big 2.11 changes then I'd like to get this in. |
Your wish is granted. I'm crossing fingers 2.10 won't be needing any major changes by this point in the RC cycle so cherrypicking anything needed for it not too... painful? |
This is a big refactor of the color UI code - hopefully without breaking too much; but there are bound to be some teething problems.
Main goals:
For the most part things should look pretty much the same; however there are a few UI changes to note.
Focus border has been made thicker to be more visible:
Text color on active item is PRIMARY1:
Tick marks on sliders display over slider bar:
When editing screen layouts the selected widget has the solid border and the others have a dashed border:
Topbar battery icon shows battery level as a colored bar - green >= 60%, amber 25% - 59%, red < 25% (these are LVGL, not theme colors):
Timer widget count up/down bar uses an LVGL arc instead of a PNG image.:
Guage widget % value moved to above the bar - LVGL has no equivalent to the invertRect() function previously used.