Commit Graph
609 Commits
Author SHA1 Message Date
Raphael CoefficandRaphael Coeffic ad658a92a4 window: prevent focus events while mass-deleting 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bc793651f4 window: avoid window_event_cb to be called on destroyed children
This uses quite some CPU resources because of the refocus happening when FormFields are cleared.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic f6598a11e4 fix: static text lvobj NULL access 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic f8b8232d07 lvgl: add support for TRUE_COLOR snapshots 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bf136376b2 fix: numberedit_cb handles only keys 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 5052b762c9 form window: forward events to parent 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic b44ba6c60c fix: do not access null lvobj 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6d7c8ed059 fix: add missing init params in lv_numberedit_class to please old GCC 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bc7f9f6f09 fix: onTouchStart & on TouchEnd exist only if HARDWARE_TOUCH is defined 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic bd3eb7a9ba menu: some clean 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 12eccdf685 cleanup 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 037b5707d8 form group: no need to reset layout anymore
TabsGroup now create a new form for each tab
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 9b66ce6b25 focus fixes 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 0cf7d7b450 menu: fixed lvgl include 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 2caea0eb53 flex layout: add fields switches automatically to next row 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 9529151bea static: select font according to textFlags 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic c1136c720e window: do not center by default on updateSize() 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic d58fbe8c86 fix simu compilation on linux 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 96d8022384 FormGroup::Line: split parent and form group 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 40268f8e52 button: Window parent instead of FormGroup 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic fc705d5d0b flex layout: grid col/row span 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 48c09fed25 text edit: default size to LV_DPI_DEF 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6605e2cb1c static text: add getText() 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 603d9230c8 window: moved updateSize() from dialog 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic ae5d1759f1 portrait: size adjustments 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic cf8a532e2d coloredit: use LVGL color wheel 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic f473271f65 WiP: flex layout 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 22499d1c16 lvgl: use edgetx fork to allow for cherry-picked bug-fixes 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 6c8e8e5f98 dialog: add updateSize() method 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic aca4b074ab menu: fix height 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic a0e97c001d modal_window: implement title label 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 8761b423c6 checkbox: use lv_switch instead of lv_checkbox
`lv_checkbox` is actually a radio button with a mandatory label on the right side.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic a8c449c014 window: create "raw" windows with provided LVGL object 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 071c657a7f fix attempt at use-after-free
When a control which is focused is destroyed out-of-order, it gets a notification while it's user data it destroyed but not NULL.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 475d068521 static text: uses now LVGL label directly 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 502b37a19a fix potential null pointer access 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic 29fcc8d0fd menu: center on screen / no minimum size 2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic d64b024381 button: set focus before onPress()
onPress() might create a new window or change the focus.
2022-06-11 15:13:11 +02:00
Raphael CoefficandRaphael Coeffic a20792a211 menu: added support for icons rather than custom draw function 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic 44b508ebc8 fix not updated dynamic text 2022-06-11 15:13:11 +02:00
kevinkoenigandRaphael Coeffic 997515f0ee cleanup styles in numberedit 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic bf27d7d512 make static not focusable to fix most of the focus issues. change scroll handingine in event callback to make it more robust. see comments 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic 17910bc48c fix cursor positioning on reedit using keyboard ENTER 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic b4686686fc removing the call to lv_group_set_editing fixes keyboard focus. dont know what else it breaks. 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic 92cb885018 fix issue created when making button lvgl aware. First the lvgl event then the touchEnd event. Deleted touchEnd event code. 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic e97cb0a4dc cleanup filechoice 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic 52cab6fd7c cleanup static paint routine 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic fe0f5b8490 cleanup styles from text edit 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic 9f4b2c11a7 move styles for textedit to theme 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic f3f816d75b fix encoder editing in textedit. also fixed cursor and text positioning 2022-06-11 15:13:11 +02:00