Commit Graph
1275 Commits
Author SHA1 Message Date
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
Raphael Coeffic 10e1982b23 Form field: re-implemented enable/disable 2022-08-22 09:04:27 +02:00
MichaelandGitHub 34dadf7b65 fix: Audio/haptic feedback for all hard keys except trim switches (#2201)
* 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
2022-08-19 15:00:50 +10:00
MichaelandGitHub e227c18113 Remove onKeyPress() and unused getWindowsEvent()
* deleted onKeyPress() due to PR https://github.com/EdgeTX/edgetx/pull/2201

* deleted reference to getWindowEvent(), no longer used due to PR https://github.com/EdgeTX/edgetx/pull/2201

* cosmetics - remove commented out getWindowsEvent()
2022-08-19 13:30:53 +10:00
Peter FeerickandPeter Feerick 8c228bc50f chore: Bump submodule libopenui 2022-08-18 12:38:35 +10:00
Raphael CoefficandPeter Feerick 2c4533ddbd textedit: extra_chars has been removed 2022-08-18 12:38:35 +10:00
Raphael CoefficandPeter Feerick 647d19bbc9 Fix access settings pop-ups 2022-08-18 12:38:35 +10:00
Raphael CoefficandPeter Feerick 84f402569f textedit: simplified implementation 2022-08-18 12:12:02 +10:00
Raphael CoefficandPeter Feerick 7ab53f757f window: clear lvobj before deleting it 2022-08-18 12:12:02 +10:00
Raphael Coeffic 9767b4baf1 textedit: removed useless code and added update() 2022-08-06 08:43:35 +02:00
Raphael Coeffic aecc5104f8 Update libopenui
Fixes issue with NumberEdit not editable via keys
2022-08-01 11:23:10 +02:00
Raphael Coeffic 9c4a0d78a9 number edit: install call back regardless of _getValue 2022-08-01 11:22:00 +02:00
CliffandGitHub eb6f0e56cd Menu multiselect with checkmark (#54)
* Menu multiselect with checkmark

* missed brace
2022-07-30 12:53:46 +10:00
gagarinlg 4084497c70 fix: use libopenui with working pixel draw check 2022-07-26 21:12:29 +02:00
gagarinlgandRaphael Coeffic 4d34becd2c fix: the check to prevent out of screenbuffer drawing did not work 2022-07-25 10:28:39 +02:00
gagarinlg bc12aa2b6d fix: compilation with -DDEBUG_WINDOWS enabled 2022-07-24 16:36:51 +02:00
gagarinlg d76c6415c9 fix compilation with -DDEBUG_WINDOWS 2022-07-24 16:26:58 +02:00
Raphael Coeffic 1bc35f54de color: fix print format warnings 2022-07-04 07:56:28 +02:00
Raphael Coeffic 87ef19a9de static: fix format warnings 2022-07-04 07:54:39 +02:00
Raphael Coeffic 6b1ca16c7f progress: limit value to 100 2022-07-03 07:16:46 +02:00
Raphael CoefficandRaphael Coeffic 81e60eb5a2 Custom failsafe: flex layout and channel hold / no pulse 2022-06-25 15:37:11 +02:00
Raphael Coeffic 0d8b36a0cf virtual BaseNumberEdit::update() 2022-06-20 16:28:58 +02:00
Raphael Coeffic 9f24e2d131 Radio setup: prevent scrolling with wrap boxes 2022-06-20 08:05:09 +02:00
Raphael Coeffic f4916a3c4f FormGroup::Line: add setLayout() 2022-06-20 08:03:23 +02:00
Raphael Coeffic 0255bd5f3c base number edit: allow setting _getValue later and update from current value 2022-06-19 14:24:03 +02:00
Raphael Coeffic 0d8628f0ce form line: add constructor without lvobj 2022-06-19 14:24:03 +02:00
Raphael Coeffic 42b98362c3 checkbox: allow setting _getValue later 2022-06-19 14:24:03 +02:00