Commit Graph
731 Commits
Author SHA1 Message Date
eshifriandGitHub d6185d924d fix: Display of signed values (#83)
* Fix display of the signed values
 with PREC1 and PREC2

* Use abs() for decimal digits output
 for negative numbers
2023-01-18 11:48:47 +10:00
raphaelcoeffic 5a81a22514 fix(window): fix crash in case LVGL parent is NULL 2022-11-15 08:41:27 +01:00
Raphael CoefficandGitHub a08ccd00aa fix(drawSizedText): stop trying to be smart about text clipping (#82) 2022-11-04 19:14:17 +10:00
Raphael CoefficandGitHub d174463d97 fix(table): re-implement LV_EVENT_RELEASE handler (#81)
Instead of calling `lv_table`'s handler, as this causes troubles when the selected cell is changed from within `LV_EVENT_VALUE_CHANGED`.

Fixes EdgeTX/edgetx#2619
2022-10-31 21:09:51 +10:00
Raphael CoefficandGitHub a9b7f815f2 fix(NumberEdit): avoid calling setValue() to change the displayed string (#80) 2022-10-31 19:17:52 +10:00
Malte LangermannandGitHub fcb0e2cf5d fix(gui): missing % sign in choices (#79) 2022-10-24 11:48:00 +10:00
Raphael CoefficandGitHub 4b85830ea2 Improve rotary encoder velocity support (#78) 2022-10-19 20:37:27 +10:00
Raphael Coeffic 4255642e7d Fix menu toolbar PageUp/PageDown 2022-10-13 19:21:10 +02: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
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
Malte LangermannandGitHub 75087b2c1b fix(gui): reduce menu outline to two pixels (#74) 2022-10-08 13:26:58 +10:00
Malte LangermannandGitHub ca43d52960 Add setFont and setBackgroudOpacity to StaticText (#73) 2022-10-06 16:16:32 +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 fa59524ebd fix(gui): Outline, more padding, wider buttons for menu toolbars (#70) 2022-10-01 21:23:18 +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 01d7036e78 TextButton: rely on LVGL theme for text color (#67) 2022-09-27 12:11:45 +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 Coeffic 2cb1e6fce7 dialog: prevent key events from being transmitted to parent 2022-09-25 09:09:53 +02:00
eshifriandGitHub 7682db2fb2 fix: ChoiceEx long press support re-added LVGL style (#65) 2022-09-20 13:29:55 +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
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 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 Coeffic 10e1982b23 Form field: re-implemented enable/disable 2022-08-22 09:04:27 +02: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
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 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
gagarinlgandRaphael Coeffic 4d34becd2c fix: the check to prevent out of screenbuffer drawing did not work 2022-07-25 10:28:39 +02:00
gagarinlg d76c6415c9 fix compilation with -DDEBUG_WINDOWS 2022-07-24 16:26:58 +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 Coeffic 0d8b36a0cf virtual BaseNumberEdit::update() 2022-06-20 16:28:58 +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