Commit Graph
1230 Commits
Author SHA1 Message Date
gagarinlg 3ca63cbb9b chore(libopenui): update license 2023-05-18 14:56:37 +02:00
gagarinlg 1e2b4db1d2 chore(libopenui): replace license files 2023-05-18 14:55:56 +02:00
gagarinlg 2418f1114e chore: pull libopenui into the EdgeTX repository 2023-05-18 14:49:35 +02:00
gagarinlg 843e42b964 chore: remove libopenui submodule 2023-05-18 14:48:41 +02:00
philmozandGitHub f2936931f7 fix(color): Memory leaks when using USB mass storage connection (#3547)
* Fix memory leaks when using 'USB Storage (SD)' connection.
- Lua state 'cache' allocated to both lsScripts and lsWidgets; but only one was being released.
- Default theme bitmaps being reloaded without releasing previously allocated memory.

* Fix icons.
2023-05-17 18:28:29 +10:00
MichaelandGitHub fd7d359695 fix: RX stat labelling dependent on telemetry protocol (#3523)
* RX stat (formerly known as "RSSI") labeling dependent on protocol (RSSI/dbm, Rqly/%, Sgnl/-)  used for range check, multi rf tuning and low/critical warning settings pages

* chore: Bump libopenui

* removed define that was supposed to be for testing only

function getRxStatLabels(): wasting flash as inline, no need to be inlined

* removed inline on getRxStatLabels() - step 2
2023-05-17 11:17:35 +10:00
MichaelandGitHub c6188af631 Add setters for DynamicNumber prefix and suffix texts (#90)
required by RX stat labeling on range check, rf tuning, low/critical warning pages
2023-05-07 14:05:50 +10:00
7a083fe0f7 fix(color): Make size/appearance of number/text edit controls consistent with other UI elements (#3481)
* Fix minor layout issues arising from libopenui PR 89.

* chore: Bump libopenui

---------

Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
2023-05-07 14:04:35 +10:00
philmozandGitHub 51ce75f10e Make the size and appearance of the number and text edit controls consistent with other UI elements. (#89) 2023-05-07 11:25:50 +10:00
MichaelandGitHub 6b2bca510c fix(lua): Debugprint not working (#3472) 2023-04-17 20:15:47 +10:00
5622cb9c5c chore(color): Replace StaticText with LVGL labels on GVARS page (#3310)
* 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>
2023-03-26 19:10:56 +10:00
Malte LangermannandGitHub f84fbd01bf chore(ui): improve static text and window base speed (#88) 2023-03-26 18:16:28 +10:00
philmozandGitHub 8fc5a1c58e feat(color): Add LVGL scroll bar where needed (#3268)
* 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`
2023-03-24 11:37:21 +10:00
philmozandGitHub d56d641fb0 Set backSet background color on pop up dialog windows (#87) 2023-03-22 19:43:10 +10:00
philmozandGitHub 3e49724e11 Add scroll bar to menus where needed (#85) 2023-03-22 19:42:13 +10:00
Raphael CoefficandGitHub d57afea89e chore: Remove unused files (#3191) 2023-02-15 13:10:14 +10:00
Raphael CoefficandGitHub be3f8d74a8 feat(lua): Port of NodeMCU Lua53 read-only tables (#2994)
* 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
2023-02-09 20:29:56 +10:00
CliffandGitHub 0b8e4c6003 Allow using Segger RTT as debug output (#3052)
Firmware needs to be built with -DDEBUG=YES and -DDEBUG_SEGGER_RTT=YES to use this feature.
2023-01-23 09:08:31 +01:00
Raphael CoefficandGitHub acd95dfad4 fix(B&W): Avoid having constants in SRAM (#2993)
fix constness to avoid having constants in data segment 
.... and thus free some precious RAM
2023-01-18 20:12:35 +10:00
Raphael CoefficandGitHub e67d1a7895 fix: strings constness (#84) 2023-01-18 12:32:07 +10:00
Peter Feerick acd44516d0 fix(color): Display of signed values
Import fix for #2842
2023-01-18 11:52:46 +10:00
eshifriandGitHub d6185d924d fix: Display of signed values (#83)
* Fix display of the signed values
 with PREC1 and PREC2

* Use abs() for decimal digits output
 for negative numbers
2023-01-18 11:48:47 +10:00
Raphael CoefficandGitHub 9796c968f4 fix(MSD): confirmation dialog properly shown (#2743)
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
2022-11-16 19:49:52 +10:00
raphaelcoeffic 5a81a22514 fix(window): fix crash in case LVGL parent is NULL 2022-11-15 08:41:27 +01:00
Raphael CoefficandPeter Feerick 062564cc41 chore: Bump libopenui for text clipping bugfix 2022-11-04 19:28:31 +10:00
Raphael CoefficandGitHub a08ccd00aa fix(drawSizedText): stop trying to be smart about text clipping (#82) 2022-11-04 19:14:17 +10:00
Raphael CoefficandPeter Feerick e154ee1dea chore: Bump libopenui for #2619 fix 2022-10-31 21:16:39 +10:00
Raphael CoefficandGitHub d174463d97 fix(table): re-implement LV_EVENT_RELEASE handler (#81)
Instead of calling `lv_table`'s handler, as this causes troubles when the selected cell is changed from within `LV_EVENT_VALUE_CHANGED`.

Fixes EdgeTX/edgetx#2619
2022-10-31 21:09:51 +10:00
Peter Feerick 6557f70a47 chore: Bump libopenui for #2649 fix 2022-10-31 19:19:21 +10:00
Raphael CoefficandGitHub a9b7f815f2 fix(NumberEdit): avoid calling setValue() to change the displayed string (#80) 2022-10-31 19:17:52 +10:00
Peter Feerick f426c1f828 chore: Bump libopenui for #2606 fix 2022-10-24 11:56:27 +10:00
Malte LangermannandGitHub fcb0e2cf5d fix(gui): missing % sign in choices (#79) 2022-10-24 11:48:00 +10:00
Peter Feerick 770c9bbde6 chore: Bump libopenui 2022-10-19 20:40:12 +10:00
Raphael CoefficandGitHub 4b85830ea2 Improve rotary encoder velocity support (#78) 2022-10-19 20:37:27 +10:00
Raphael CoefficandGitHub ba713b6b8d feat: Further improve rotary encoder acceleration (#2584)
* Improve rotary encoder acceleration

Fixes #2417

* Further improvement

* Fix simu compilation
2022-10-19 20:36:29 +10:00
Raphael CoefficandGitHub 584e194388 fix(X10): Simulated page up in menu toolbar (#2543)
Fixes #2542
2022-10-14 10:46:19 +10:00
Raphael Coeffic 4255642e7d Fix menu toolbar PageUp/PageDown 2022-10-13 19:21:10 +02:00
Peter Feerick b549820acb fix: Reset back to ETX branch
Idiot PBKAC merged wrong PR
2022-10-12 13:08:46 +10:00
Gábor BányászandGitHub 8a4a1b1b38 Speed up the initial menu filling (#77)
* Preset menu line counter. Disable update position during the fill.

* Code formating

* Redesign attempt with addLines() functions.

* .

* Menu::addLines fix for icons.

* Redesign to clean up

* Selection fix. Choice implementation.

* One more redesign.
2022-10-12 13:05:18 +10:00
Gábor BányászandGitHub 867d627b39 Speed up bulk menu addition. (#2516)
* Speed up bulk menu bar addition.

* libopenui reference
2022-10-12 13:04:17 +10:00
Raphael CoefficandGitHub 59b33622b8 fix(color): prevent recomputing points in NumberEdit() constructor (#2474)
Fixes #2452
2022-10-09 15:53:34 +10:00
df7d9a0fe0 fix(NumberEdit): do not call setValue() in constructor, use update() instead (#76)
This avoids writing a value when it is not necessary. All that is needed is to update the internal value and set the field string.

Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
2022-10-09 14:40:11 +10:00
Peter Feerick 69d328f1a1 fix(color): Reduce menu outline to two pixels 2022-10-08 13:46:33 +10:00
Malte LangermannandGitHub 75087b2c1b fix(gui): reduce menu outline to two pixels (#74) 2022-10-08 13:26:58 +10:00
Malte LangermannandGitHub e120ea1548 fix(color): Missing highlight of the Min/Max value in output editor (#2480)
* 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`
2022-10-06 20:15:31 +10:00
Malte LangermannandGitHub ca43d52960 Add setFont and setBackgroudOpacity to StaticText (#73) 2022-10-06 16:16:32 +10:00
Raphael CoefficandGitHub 3e73d1709d fix(color): various menu toolbar fixes (#2445)
* fix: various toolbar fixes

* chore: Bump `libopenui`
Also pulls in #2446 fix
2022-10-03 13:13:12 +10:00
Malte LangermannandGitHub ba56990950 fix(gui): partially drawn characters on top of bitmaps 2022-10-03 12:58:25 +10:00
Raphael CoefficandPeter Feerick 37159152b0 MenuToolbar: add resetFilter() 2022-10-03 12:41:59 +10:00
Raphael CoefficandPeter Feerick c41b1cb458 fix(Menu): handle negative selection index properly 2022-10-03 12:41:59 +10:00