Spinbox unsynced preview and improvements suggestions

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Spinbox unsynced preview and improvements suggestions

2,287 次查看
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 项奖励
回复
5 回复数

2,069 次查看
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 项奖励
回复

2,013 次查看
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 项奖励
回复

2,204 次查看
FederAndInk
Contributor II

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

Just making sure you've seen it

 

Thanks

0 项奖励
回复

2,079 次查看
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 项奖励
回复

2,264 次查看
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 项奖励
回复