Commit Graph
1301 Commits
Author SHA1 Message Date
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
Raphael CoefficandPeter Feerick d2676abc61 fix(Menu): properly reset selections when content is removed 2022-10-03 12:41:59 +10:00
Raphael CoefficandPeter Feerick ce9c5a302a fix(Menu): force into editing mode to fix behaviour with rotary encoder 2022-10-03 12:41:59 +10:00
Raphael CoefficandPeter Feerick d4661b66ea fix(MenuToolbar): resolve various focus/filtering issues
This allows for de-selecting filters with keys.
2022-10-03 12:41:59 +10:00
Malte LangermannandGitHub f6a00d1845 feat(color): Bigger menu toolbar icons, outlines around menu (#2435)
* chore: add EdgeTX source symbols to 24pt fonts to allow for larger symbols in menu filter toolbars

* chore: Bump `libopenui`
2022-10-01 21:50:04 +10:00
Malte LangermannandGitHub fa59524ebd fix(gui): Outline, more padding, wider buttons for menu toolbars (#70) 2022-10-01 21:23:18 +10:00
Malte LangermannandGitHub 491e89154c fix(lua): drawTextLines line height now same as older ETX versions (#2428)
* 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
2022-10-01 16:11:03 +10:00
Malte LangermannandGitHub bb447ea493 fix: font height changes with LVGL through getFontHeightCondensed (#69) 2022-10-01 11:27:06 +10:00
Malte LangermannandGitHub 7ba7127699 fix(gui): also horiz center pop up menus when they have a toolbar (#68) 2022-10-01 11:26:18 +10:00
Raphael CoefficandGitHub d8bcecfc82 fix(color): Unify button colors (#2367)
* 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
2022-09-27 12:52:08 +10:00
Raphael CoefficandGitHub 01d7036e78 TextButton: rely on LVGL theme for text color (#67) 2022-09-27 12:11:45 +10:00
Raphael CoefficandGitHub 22d784a20e feat: Use rotary encoder velocity only on specific components (#2356)
* feature: use rotary encoder velocity iff LV_OBJ_FLAG_ENCODER_ACCEL
* chore: bump libopenui
2022-09-26 11:52:51 +10:00
Raphael CoefficandGitHub 8ad593594b rotary encoder velocity: use a custom LVGL flag to signal support (#66) 2022-09-26 09:53:08 +10:00
Raphael CoefficandPeter Feerick 41cfeee5b0 fix: pop-up dialog should not transmit key events to parent
Related #2182
2022-09-25 19:23:17 +10:00
Raphael Coeffic 2cb1e6fce7 dialog: prevent key events from being transmitted to parent 2022-09-25 09:09:53 +02:00
7e540594fa fix: Re-add Switch and Curve long press functionality (#2332)
* 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>
2022-09-20 19:45:29 +10:00
eshifriandGitHub 7682db2fb2 fix: ChoiceEx long press support re-added LVGL style (#65) 2022-09-20 13:29:55 +10:00
Peter Feerick 8307458399 chore: Bump libopenui
- BMP color fix
- remove compiler type argument warnings
2022-09-18 19:24:32 +10:00
Malte LangermannandGitHub 5b32c73690 fix: loading 32BPP BMPs 2022-09-18 19:21:24 +10:00
Raphael Coeffic c1f922ce14 chore(DynamicNumber): remove type argument warnings 2022-09-17 09:03:55 +02:00
b4e1ceb4f8 fix(MPM): Various UI elements for MPM opts weren't updating correctly (#2209)
* 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>
2022-09-05 21:56:24 +10:00
Peter FeerickandPeter Feerick 07431c3432 chore: Bump libopenui 2022-09-05 19:27:50 +10:00
Raphael CoefficandPeter Feerick 0d3b2c027b splash: force pixel format to RGB565 when loading the bitmap 2022-09-05 19:27:50 +10:00
Raphael CoefficandGitHub b4368fe120 checkbox: add update() method (#62) 2022-09-05 18:31:10 +10:00
Raphael CoefficandGitHub 5174b58fb9 bitmap buffer: allow for forcing a destination pixel format (#61)
Otherwise, 32bit images are converted automatically to ARGB4444, and 24bit image are converted to RGB565, thus leading to EdgeTX/edgetx#2261.
2022-09-05 18:30:52 +10:00
David PHAM-VANandGitHub 199975b95c Add BitmapBuffer::to8bitMask (#63) 2022-09-05 18:30:26 +10:00
Raphael CoefficandGitHub cd211cba59 feat(color): Better color picker (#2217)
* Better color picker

* Portrait layout

* Remove obsolete ColorEdit

* Fix label clipping

* chore: Bump libopenui
2022-08-28 19:01:55 +10:00
Raphael CoefficandGitHub 4b05632c84 Remove ColorEdit (#60) 2022-08-28 18:36:03 +10:00
CliffandGitHub 18563cbc54 Check for invalid index in MenuBody::onDrawEnd(#57)
Method can get called before lines has data.
2022-08-24 18:09:53 +10:00
Raphael CoefficandPeter Feerick 0e8f4e55b1 fix: custom curves corruption
Fixes #2204
2022-08-24 12:55:26 +10:00