Commit Graph
484 Commits
Author SHA1 Message Date
Raphael CoefficandGitHub 59b33622b8 fix(color): prevent recomputing points in NumberEdit() constructor (#2474)
Fixes #2452
2022-10-09 15:53:34 +10:00
Peter Feerick 69d328f1a1 fix(color): Reduce menu outline to two pixels 2022-10-08 13:46:33 +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
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 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 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
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 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 CoefficandPeter Feerick 41cfeee5b0 fix: pop-up dialog should not transmit key events to parent
Related #2182
2022-09-25 19:23:17 +10: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
Peter Feerick 8307458399 chore: Bump libopenui
- BMP color fix
- remove compiler type argument warnings
2022-09-18 19:24:32 +10: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 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 CoefficandPeter Feerick 0e8f4e55b1 fix: custom curves corruption
Fixes #2204
2022-08-24 12:55:26 +10: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
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 Coeffic aecc5104f8 Update libopenui
Fixes issue with NumberEdit not editable via keys
2022-08-01 11:23:10 +02:00
gagarinlg 4084497c70 fix: use libopenui with working pixel draw check 2022-07-26 21:12:29 +02:00
gagarinlg bc12aa2b6d fix: compilation with -DDEBUG_WINDOWS enabled 2022-07-24 16:36:51 +02:00
Raphael Coeffic 1bc35f54de color: fix print format warnings 2022-07-04 07:56:28 +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 9f24e2d131 Radio setup: prevent scrolling with wrap boxes 2022-06-20 08:05:09 +02:00
Kevin KoenigandGitHub 8874711cb4 Keep highlighted row with lv_table on touch release (#2059) 2022-06-19 14:22:29 +02: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 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 Coeffic 27f55f5260 Update libopenui 2022-06-12 19:19:55 +02:00
Raphael Coeffic 0f60134dd5 fix(logical switches): fixed "ddd" 2022-06-12 11:31:48 +02:00
Raphael CoefficandRaphael Coeffic 691b2a5b06 Update libopenui to merged master branch 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic dff0478351 file browser: re-add bitmap preview 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 7e5d8ee7ac Fixed compilation on non-touch targets 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 10615b0201 trainer page: flex layout 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic eae8a93525 Update libopenui (scroll on focus fix) 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 2a22220a65 Update libopenui (button fix) 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 1df4d43eb3 finalize radio setup page 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 7848be16b2 re-add widget select mode on main view via long enter press
widget menu is also accessible via long touch press on the widget.
2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic e31a1cc1fc Input & Mixer edit pages: flex layout rework 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 181e8ad77a fix(themes): load & apply properly 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 54a1c48d38 Snap to begin / end of window when near 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 710ed6c4db Updated libopenui 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 431b423d63 Heli, Inputs & Mixers: small UI tweaks 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 95463540c0 update libopenui
resolved merges
2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic a9f297273b fix(focus): update libopenui 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 8639a7829d cleanup & formatting 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 97513ffe33 theme editor: some fixes and new listbox implementation based on TableField 2022-06-11 15:38:08 +02:00