Commit Graph
60 Commits
Author SHA1 Message Date
Kevin KoenigandGitHub 8874711cb4 Keep highlighted row with lv_table on touch release (#2059) 2022-06-19 14:22:29 +02:00
Kevin KoenigandGitHub 4d5fe46cb8 Merge pull request #53 from EdgeTX/fix_lv_table_behavior
fix table behavor on touch release (Highlight)
2022-06-17 15:31:30 -04: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
kevinkoenigandRaphael Coeffic fb8c131a98 cleanup styles in number edit 2022-06-11 15:38:08 +02:00
kevin koenigandRaphael Coeffic 01c80f7868 fix possible race condition in lcdFlush 2022-06-11 15:38:08 +02:00
kevin koenigandRaphael Coeffic 60293ae763 fix focus editing outline globally in styles. 2022-06-11 15:38:08 +02:00
kevin koenigandRaphael Coeffic 0cbf0fbf6c move styles from textedit to theme 2022-06-11 15:38:08 +02:00
kevinkoenigandRaphael Coeffic 5e0cf9964a revert theme changes 2022-06-11 15:38:08 +02:00
kevinkoenigandRaphael Coeffic 5f72c46e9d beginnings of themes 2022-06-11 15:38:08 +02:00
kevinkoenigandRaphael Coeffic 751d1a0887 cleanup of all number edit display handlers. 2022-06-11 15:38:08 +02:00
kevin koenigandRaphael Coeffic 469375786b if we are flex layout then increase padding. also add margin to label to give it some white space. 2022-06-11 15:13:11 +02:00
kevinkoenigandRaphael Coeffic 997515f0ee cleanup styles in numberedit 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic bf27d7d512 make static not focusable to fix most of the focus issues. change scroll handingine in event callback to make it more robust. see comments 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic 17910bc48c fix cursor positioning on reedit using keyboard ENTER 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic b4686686fc removing the call to lv_group_set_editing fixes keyboard focus. dont know what else it breaks. 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic 92cb885018 fix issue created when making button lvgl aware. First the lvgl event then the touchEnd event. Deleted touchEnd event code. 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic e97cb0a4dc cleanup filechoice 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic 52cab6fd7c cleanup static paint routine 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic fe0f5b8490 cleanup styles from text edit 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic 9f4b2c11a7 move styles for textedit to theme 2022-06-11 15:13:11 +02:00
kevin koenigandRaphael Coeffic f3f816d75b fix encoder editing in textedit. also fixed cursor and text positioning 2022-06-11 15:13:11 +02:00
kevinkoenigandRaphael Coeffic 6a8707fb69 1. fixed checkbox focus on touch
2. fixed crash if you edit a textbox and close the simu.  TextEdit changeEnd() wasnt checking lvgl for validity
3. removed dead code in new TextEdit onTouchEnd()
2022-06-11 15:13:11 +02:00
kevinkoenigandRaphael Coeffic 0429341528 fix checkbox check color to match theme 2022-06-11 15:13:11 +02:00
kevinkoenigandRaphael Coeffic ce8e7b67d0 checkbox implementation. almost right. it still needs some styling of the checkmark color. cant figure out how to make it happen 2022-06-11 15:13:11 +02:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Raphael Coeffic
2e5dbce2cb Fix removal of first mixer line rendering other mixes uneditable (#1163)
* fix 1100

* Delete mix line if it'S empty rather than hot-patching the list

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
2022-01-04 20:10:24 +10:00
Kevin KoenigandGitHub aac60a96df Part of dbd41d2, fixes breakage of themes list (#1247)
Listbox now explicitly captures touchEnd()
2021-12-13 15:30:27 +11:00
Kevin KoenigandGitHub f81fa679d7 Change touch end processing (#45)
1. removed the generic touchedWindow processing
2. replaced it with an implicit capture processing
3. therefore it works like normal in all instances except ListBox() which explicitely captures the up.
2021-12-13 08:39:44 +11:00
af87e2e365 [NV14] Fix mix channel monitor size (#1231)
* fix mix channel monitor size on nv14

* add right margin to mix channel monitor on nv14

* Rebase and revert libopenui change

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-12-12 19:27:36 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
9694689067 [colorlcd] Sort Lua scripts before building UI in radio tools (#1150)
* sort lua scripts before building ui in radio tools

* Formatting

* Case insensitive sorting

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-12-05 23:50:52 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
71dd6bca89 More optimisations to Theme Editor (#1210)
* fix some minor issues

* 1. fixed issue with FullScreenDialog when over a window that processes onTouchStart
2.  Fixed Huse and RFB bar positioning
3. added the ability to pause the filecarosell
4. now when the Theme Browser isnt the top of the stack it pauses the FileCarosell.  Good for perf
5. Add more preview controls so all colors can be seen
6. Lots of little layout issues fixed

* layout changes for nv14

* fix listbox.  dont call selection handler if the newly selected item is the same as the selected one.

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-12-05 12:09:08 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
faae2fff8c Fix touch slide end segfault (#40)
* fix touch slide/end issue

* Revert "fix touch slide/end issue"

This reverts commit e9f11fe9905ff3e175e2f37aeafac0fa20956450.

* fix tocuh slide/end issue

* Revert "fix tocuh slide/end issue"

This reverts commit 82264c8382736a1c7b60a0e41b7188c429d2c43f.

* put the file in the wrong place

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-12-02 10:41:08 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
758c56a4cf Fix being able to enable and disable popup menu filters (#39)
* fix-228

* removed commented codes

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-30 22:14:57 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
67708725bd Fix GF focus issue, add channel bars to mixes edit screen, also #482 (#1074)
* fix issues:
#303
#307
#482

* move channel output display to top.  make it a multi channel bar.

* changed channel bar colors so they work in the mixer screen.  I dont like the choices of colors, but let me know what you think.

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-27 21:27:08 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
6e63d2874b Theme Editor: Delay initial image load for 500ms to make UI more responsive (#1143)
Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-25 12:17:33 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
a9abf028f7 Theme editor tweaks (#1066)
* 1. fixed color of lists to match menu popup as per JimB
2. added more controls to PreviewWindow() of theme editor

* 1. fixed issue with touch.  in theme list now if you touch, you must long press to get menu.  Enter works on short press
2. changed directory structure to new format, as per Issue #897
3. sorted theme list alphabetically and not by random order that the directory comes back in

* 1. make background image work correctly for new theme folder structure
2. sort theme names

* 1. fixed issues with touching previewwindow
2. fixed processing exit button on ThemeEditPage()

* fix focus issue in previewwindow

* layout enhancements for nv14

* more updates to layout

* fix nv14 issues.  Still havnt done performance optimization yet.  Lets merge first.

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-20 22:54:24 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
9a795c4126 Move [outputs] "Trim => Subtrims" button to top, change btn text (#1076)
* partial implementation of 354

* implemented screen refresh and test update

* chaged add to move...after much discussion

* change move to add

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-20 22:39:13 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
7298f0ff00 Theme editor (#971)
* Add theme editor
- added theme editing support to radio
- color editing controls
- split screen into browser and editor
- removed dead code from coloreditor,
- new radio theme editing icon

* Resolve compile error & merge cleanup

* 1. fix exit key press in ThemeEditor.  It was not exiting screen
2. added ability to touch PageButton() on ColorEditPage()

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-11-15 12:36:56 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
4c0518d2d9 Fix continuously touch end events and ensuretouchEnd if no scroll
* minor changes to touch and slide processing.  set event to TE_NONE so you don't continuously get touch end events.
also make sure you get touchEnd if you slid but there is no sliding window (e.g. no scroll happened)

* revert slide operations back to their original state

* fix merge issue

* one more try and it should be right now

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-04 21:57:37 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
9cb6d73947 Implementation of Theme Switching and Persistence (#839)
* initial support for color theming using yml files in the THEME directory

* initial theming support using yml files (without yml support)

* fixed issues with themes actually working on radio.

* fix another issue with drive access

* more theme changes.  Added author, and info to display.  Also display an image of  the theme if it is present.

* theme files now support both RGB() and 0x syntax

* quick fix for possible variable overflow.

* more tweaks after JimB tested

* fixed layout issues with NV14 and also added word wrap correctly.

* added edgetx headers to new string functions.

* Whitespace / unused code cleanup

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-10-04 23:27:08 +11:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
2f65ec4c58 Lots of color fixes and screen enhancements (#833)
* consolidated all color fixes and screen enhancements into one new branch

* Bump libopenui

* enhanced telementry sensor display

* fix discover and add sensor buttons on NV14.

* changed quick menu to not use theme colors as per JimB.  Fixed telemetry buttons for NV14

* fix colors on trainer page

* Merge cleanup

* Update libopenui

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-29 22:27:11 +10:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
461b8971a2 Fix colors used for TextButtons, MenuToolbarButton and ModalWindow (#25)
* fix colors for modal window and toolbar buttons in menu popuos
* fix TextButton correctly so all TextButtons in app just work
* fix TextButton correctly so the app just worksX

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-09-28 19:01:15 +10:00
kevinkoenigandPeter Feerick ede2dba2ea Fixes the defect that the software keyboard does not call onChangeEnd if the keyboard is hidden via touch and not via an esc. It changes TextEdit and FormField to move the onChange event to the base class instead of in TextEdit. Now the keyboard calls onChange when it is hidden. 2021-09-17 20:33:23 +10:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
8f8374f3b9 Move sourcechoice and switchchoice to ChoiceEx implementation (#691)
* move sourcechoice and switchchoice to ChoiceEx implementation

* removed getTicks parameter from ChoiceEx.  Turns out it can just access timer directly

* clean up keyboard support for topbar.cpp, protect against crash in keyboard

* Switch back to edgetx libpenui and sync

* Formatting

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-13 17:09:13 +10:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
89978ff17c Move ChoiceEx to libopenui + fix keyboard crash (#19)
* moved choiceex.* to libopenui where it belongs

* added choiceex to build

* enhanced system

* removed construtor parameter for getTicks.  Turns out you can just access the timer directly in libopenui

* fixed keyboard crash for widget settings

* code cleanup

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-09-13 12:20:24 +10:00
kevinkoenig 1ad865f08a Implement long touch to launch curves in mixes and inputs 2021-09-07 07:53:01 -04:00
kevinkoenig be4d252ea0 reversed keyboard icons 2021-09-05 09:37:26 -04:00
kevinkoenig f4f6b219e4 fixed compilation issue 2021-09-05 07:32:05 -04:00
kevinkoenig 3113a30b94 fixed file copyright to EdgeTx 2021-09-05 07:28:29 -04:00
Kevin KoenigandGitHub f2a379ac00 Merge branch 'main' into jump-curve 2021-09-04 07:52:42 -04:00
kevinkoenig 6a10c821eb implement long press to launch curves from input and mixes 2021-09-04 07:48:50 -04:00
kevinkoenig 46fbd1d9b8 implement long press on curve in mixes to launch edit of curve 2021-09-04 07:21:09 -04:00
kevinkoenigandRaphael Coeffic 2c5ed7e3ad fix crash in number kebyoard when NumericKeyboard looses focus 2021-09-03 09:47:39 +02:00
kevinkoenigandRaphael Coeffic 47585b8829 fixed potential compilation issue 2021-09-03 09:47:39 +02:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
32da77ce02 Fix MPM Protocol Sorting (#580)
* Fixed Protocol Sorting in model_setup.cpp

* update submodule for libopenui

* Fix potential compilation issue

* Fixed Protocol Sorting in model_setup.cpp

* fix merge issue

* Submodule libopenui back to edgetx master branch

* Reset to libopenui 5c70891
As this was the submodule at the time this branch was started.
This should remove it as a change in the PR.

* fixed an off by one error in the initialization of the sorted list.  When you selected the last protocol in the list it crashed.

* Reset to libopenui 5c70891
As this was the submodule at the time this branch was started.

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-01 09:47:32 +10:00
Kevin KoenigandGitHub 9e41566ef4 Merge branch 'EdgeTX:main' into software-keyboard 2021-08-30 04:46:22 -04:00
kevinkoenig 8b5dd5a4ba fixed potential compilation issues 2021-08-30 04:36:20 -04:00
kevinkoenig 4d66260d39 updated branch in gitmodules 2021-08-29 09:20:23 -04:00
kevinkoenig 7ce9ec401f just committing 2021-08-29 09:20:22 -04:00
kevinkoenig 95f696bfef fix scroll position 2021-08-27 13:11:11 -04:00