* chore(ui): speedup gvars page
* Replace StaticText with LVGL labels.
* Further performance improvements.
* Remove diagnostics.
* Fix portrait layout.
* Refactor style to a separate class and use CHECKED state to control color of selected flight mode.
* Remove duplicate lines.
* User LVGL state and style for GV value font size selection.
Reduce the number of times the style_refresh state is changed.
* Center align name without needing hard wired offsets.
* Speed up page build time.
* chore: Bump libopenui
gagarinlg chore(ui): improve static text and window base speed (#88)
---------
Co-authored-by: gagarinlg <malte@langermann.net>
* Add scroll bar to radio settings/config pages.
* Add scroll bar to mode settings/config pages and screen settings pages.
* For pages display via TabsGroup class. move the scroll bar setting to the 'body' window.
* Fix position of new line on Inputs and Mixes pages.
* chore: Bump `libopenui`
* chore(lua): revert useless c light function change
This change was part of the eLua LTR patches (based on 5.1), whereby this feature was already integrated in Lua 5.2.
* feat(lua): port of NodeMCU Lua53 read-only tables
# Conflicts:
# radio/src/lua/CMakeLists.txt
# radio/src/lua/api_general.cpp
* fix(nv14): missing SDRAM definition
* fix: l_mathop
* fix: use float functions in drawPower()
* fix: ltable resize
* fix: correct name is "bit32"
* fix: first Lua context must be closed last
As the lookup cache is attached to that one
* Revert to Lua using double
* Ensure byte-code compatibility
* Fix possible compatibility issue with `lua_typename`/`luaL_typename`
* Fix Bitmap symbol table
* Re-add table lib for COLORLCD
Prior to this fix, the confirmation dialog would crash because of an issue in libopenui and even then would not be displayed for the lack of the proper parent window.
Fixes#2741
* fix(gui): add missing highlight of the Min/Max value in output editor acccording to the input
* change outputs min/max highlight
* output min/max highlight the right way
* chore: Bump `libopenui`
* fix(gui): line height in EdgeTX<2.8 was smaller at the same font size as with Edgetx >=2.8
to allow lua scripts to be optimized for odler and newer versions, drawTextLines now draws the text vertically condensed
needs https://github.com/EdgeTX/libopenui/pull/69
* chore: Bump `libopenui`
* fix: `FontHeightCorrection` needs to exist
Will be optimised out since not used in bootloader
* Button: change bg color to COLOR_THEME_PRIMARY2
And text color to COLOR_THEME_SECONDARY1
Fixes#2304
* fix: TextButton constuctor calls
Setting the font in the constructor never worked, but did set the text color to black.
* chore: Bump libopenui
* Restore go to edit curve on lobg press from inputs tab.
* Restore long press functionaliy for switches SA_UP -> !SA_UP
* chore: Auto-formatting and bump libopenui
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
* fix: Get current values for MPM options
* fix: Don't show sub-proto dropdown when empty
* Add suggested call to `update()`
* Add callback to refresh when subtype changed
* Trip `SetValueHandler` rather than setting value
Thank you to @raphaelcoeffic for the hint ;)
* fix: Saving values when changed is a good idea!
* Load option flags properly when using internal proto list
* NumberEdit fields don't implement LV_EVENT_VALUE_CHANGED, use update() instead
* Fix checkbox behaviour
* Fix autobind checkbox after switching away from DSM
* Fix more parameter needing update on MPM sub-proto changes
* fix: Also update servo rate if present
* fix: Channel mapping needs updating also
Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
* Added audio/haptic feedback for all hard keys excpet trim switches.
Changed logic from application decides if feedback has to be given (was inconsistent and inefficient) to key driver detects button down and triggers immediate feedback if radio settings allowed for acoustic and/or haptic feedback (radio settings, radio setup, sound set to All)
With this change all instances of the application calling for feedback were removed in favor of the centralized approach.
This first commit also introduces a dummy function for providing feedback on key presses in boot.cpp because keys.cpp is also used as the bootloader key driver but with no logic to determine if feedback is allowed. Using a define that indicates keys.cpp is compiled for use in the bootloader would make a much nicer and backwards compatible solution.
* don't want to change libopenui so silence onKeyPress (application requests feedback) in audio.cpp
* made generation of acoustic/haptic feedback conditional on BOOT define, i.e. no feedback if keys.cpp is compiled for the bootloader
* removed onKeyPress()
* fixed crash on acoustic/haptic feedback on hard keys by restoring keys.cpp and moving logic to LvglWrapper.cpp/keyboardDriverRead().
Removed call to getWindowEvent() which would just call getEvent(false) by directly calling getEvent(false). This allowed to remove getWindowEvent() entirely as it was only used by keyboardDriverRead().
* fix: Audio header include no longer needed