Spinbox unsynced preview and improvements suggestions

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Spinbox unsynced preview and improvements suggestions

2,277 Views
FederAndInk
Contributor II

Hi, I am trying out the spinbox, here is a short list of issues/suggestions:

- "+" buttons color aren't updated (see the screenshot)
- the value is not centered by default (caused by padding set to 0, removing the padding in the generated code fixes it)
- I haven't seen a way to set a value range or rollover.
- [minor] we can also see that when the precision is 0 (after the point) there is still a point in the preview

FederAndInk_0-1682325220975.png

Also the padding isn't right compared to the real application:

FederAndInk_0-1682329107451.png

 

0 Kudos
Reply
5 Replies

2,059 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @FederAndInk 

Sorry for the inconvenient to you, thanks so much for all of your sharing and suggestions, very useful. I have reproduce the issues on my side, and I will reported to GUI Guider development team.

For the issue "- I haven't seen a way to set a value range or rollover.", could you please descript it more detail by screenshot. thanks.

 

BR

Alice

0 Kudos
Reply

2,003 Views
FederAndInk
Contributor II

Hi @Alice_Yang,

Thanks for all your answers, about the value range and rollover, it is referring to these LVGL functions:

- https://docs.lvgl.io/latest/en/html/widgets/spinbox.html#_CPPv423lv_spinbox_set_rolloverP8lv_obj_tb

- https://docs.lvgl.io/latest/en/html/widgets/spinbox.html#_CPPv420lv_spinbox_set_rangeP8lv_obj_t7int3...

 

It would be great to have a way to set these in gui guider directly in the property list

0 Kudos
Reply

2,194 Views
FederAndInk
Contributor II

@Alice_YangHi, I haven't heard from you about this issue.

Just making sure you've seen it

 

Thanks

0 Kudos
Reply

2,069 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @FederAndInk 

Sorry I really didn't see this case, I will working on it, will reply you .ASAP.

 

BR

Alice

0 Kudos
Reply

2,254 Views
FederAndInk
Contributor II

I found what is causing the button color to not be refreshed, when putting the spinbox precision/decimal to 0 (on the screenshot it is annotated as 1) Gui Guider enters an unstable state where things break. It also prevents some widgets to render

FederAndInk_0-1682335252308.png

here is the behavior with a precision/decimal other than 0 (we can see the widgets render):

FederAndInk_1-1682335607638.png

I also attached the guiguider file, so you can see what is going on

0 Kudos
Reply