Commit Graph
1310 Commits
Author SHA1 Message Date
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
Raphael Coeffic ff6a0bca56 number edit: allow null _getValue 2022-06-19 14:24:03 +02:00
Raphael Coeffic e10545b53f flex grid layout: copy constructor 2022-06-19 14:24:03 +02:00
Kevin KoenigandGitHub 8874711cb4 Keep highlighted row with lv_table on touch release (#2059) 2022-06-19 14:22:29 +02:00
kevin koenig 314e5dc538 rename table 2022-06-17 15:23:42 -04:00
kevin koenig 732cb1ba19 fix table behavor on touch release (Highlight) 2022-06-17 06:02:01 -04:00
Raphael CoefficandRaphael Coeffic e91e4e9c80 Padding adjustments 2022-06-14 22:57:59 +02:00
Raphael CoefficandRaphael Coeffic 51ca20535b radio hardware: flex layout WiP 2022-06-14 22:57:59 +02:00
Raphael Coeffic 85cdf709a0 window: add padding methods 2022-06-14 09:42:40 +02:00
Raphael Coeffic 015c4795ca Padding adjustments & dialog autosize 2022-06-14 09:42:39 +02:00
Raphael CoefficandRaphael Coeffic e75ec459f1 Cleanup 2022-06-13 22:43:45 +02:00
Raphael CoefficandRaphael Coeffic 3ae39a3050 Add inactivity counter reset to LVGL device drivers 2022-06-13 22:43:45 +02:00
Raphael CoefficandRaphael Coeffic 6f15104bb4 main window: remove last rest of touch handling 2022-06-13 21:02:24 +02:00
Raphael Coeffic 27f55f5260 Update libopenui 2022-06-12 19:19:55 +02:00
Raphael Coeffic 7679077632 window: allow for accessing LVGL obj / children in close handler 2022-06-12 19:19:35 +02:00
Raphael Coeffic 41ab90ad36 fix(dynamic numbers): precision flags 2022-06-12 11:58:57 +02:00