Raphael Coeffic and Raphael Coeffic
603d9230c8
window: moved updateSize() from dialog
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
ae5d1759f1
portrait: size adjustments
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
cf8a532e2d
coloredit: use LVGL color wheel
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
f473271f65
WiP: flex layout
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
22499d1c16
lvgl: use edgetx fork to allow for cherry-picked bug-fixes
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
6c8e8e5f98
dialog: add updateSize() method
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
aca4b074ab
menu: fix height
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
a0e97c001d
modal_window: implement title label
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
8761b423c6
checkbox: use lv_switch instead of lv_checkbox
...
`lv_checkbox` is actually a radio button with a mandatory label on the right side.
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
a8c449c014
window: create "raw" windows with provided LVGL object
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
071c657a7f
fix attempt at use-after-free
...
When a control which is focused is destroyed out-of-order, it gets a notification while it's user data it destroyed but not NULL.
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
475d068521
static text: uses now LVGL label directly
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
502b37a19a
fix potential null pointer access
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
29fcc8d0fd
menu: center on screen / no minimum size
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
d64b024381
button: set focus before onPress()
...
onPress() might create a new window or change the focus.
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
a20792a211
menu: added support for icons rather than custom draw function
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
22619d7a0a
Wait for DMA operations to complete before proceeding
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
2246c3cfbc
Use string arrays
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
37a6409da0
Added BitmapBuffer::setData() method
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
bb9a3c98e0
Added extra init to minimal set
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
45be564690
LVGL minimal subset for bootloader
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
3ffa80ca14
Remove useless code to avoid the bootloader to overflow
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
c62208261e
Allows for multi-byte pictograms in MenuToolbarButton
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
ba7564c62a
Remove usage of scratch buffer
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
77382ba406
WiP: remove legacy fonts
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
6376f8295a
Add LVGL submodule and move submodules
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
f99c16c7aa
Moved menu styles to theme
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
885ebe69f6
Moved button styles to theme
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
2a0bb66daf
WIP: default theme
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
9804ff9f21
Implement form drawing via styles rather than paint() method
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
b823150158
Small checkbox opti
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
5597524b7a
Add empty paint() method to Checkbox & Button
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
a0624cc17a
Fix some use-after-free issue
...
This is basically about LV_EVENT_DELETE.
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
fe7d425ced
LVGL drawing
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
ca5b6a121c
Do not use lv_obj_create(nullptr)
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
64a834d584
Small cleanup
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
648d60948b
Remove event bubbling
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
0f06fad706
Fix touch events
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
4fc2fc8ae6
Layers are only meant to backup the focus window
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
7f724c187d
Fixed scrolling
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
d438525f72
Fix sliders with "getValue" begin null
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
f112e42282
Style fixes for TextEdit
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
b788bdb842
Use touch events only from LVGL
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
197d177a6c
Add slider edit style
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
56a36968b7
Fix propagating focus from LVGL to libopenui
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
a079d3987c
LVGL sliders
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
49ba2e46b2
Some more fixes related to scrolling
2022-06-11 15:13:11 +02:00
Raphael Coeffic and Raphael Coeffic
ba6f3dd9a2
Use LVGL scrolling events
2022-06-11 15:13:11 +02:00
Raphael Coeffic
5ed1d63d6e
[choice] check boundaries when accessing values vector
...
EdgeTX/edgetx#767
2021-09-22 12:56:28 +02:00
Raphael Coeffic
05a858d4c2
[menutoolbar] pass current value to fillMenu()
2021-09-19 10:18:25 +02:00
Raphael Coeffic and Raphael Coeffic
218e8bed02
Remove harmful & useless MinGW32 compatibility definitions
2021-09-13 07:53:25 +02:00
Raphael Coeffic
398969df19
[keyboard] Fix nullptr access while trying to find a suitable full screen window
2021-08-04 10:11:33 +02:00
Raphael Coeffic
8314bb645e
[filechoice] Fixed extension-matching in case a file without extension is present
2021-08-04 07:15:17 +02:00
Raphael Coeffic
4aade1d0da
[FileChoice] added missing include
2021-07-13 09:12:55 +02:00
Raphael Coeffic
3f6f488180
[FileChoice] eject duplicates
2021-07-13 08:42:34 +02:00
Raphael Coeffic
dd02b4419c
Removed obsolete EXPANDED
2021-06-20 09:31:20 +02:00
Raphael Coeffic
8a6d288cf6
[FormGroup] added removeField() to properly remove fields
2021-06-19 12:00:52 +02:00
Raphael Coeffic
d4c23446e5
Fixed menu body height
2021-06-17 09:02:28 +02:00
Raphael Coeffic
6d2d740d95
Small fixes
2021-06-14 13:01:37 +02:00
Raphael Coeffic
54a87bc180
A bit more tuning
2021-06-14 06:35:12 +02:00
Raphael Coeffic
f8042ee2e0
[Menu] tuned look of menus with toolbar
...
- use DEFAULT_BGCOLOR for toolbar
- draw line around the complete menu
2021-06-14 06:35:12 +02:00
Raphael Coeffic
2b3df9aea9
[TextButton] added bgColorHandler
2021-06-14 06:35:12 +02:00
Raphael Coeffic
f24f218ebb
Default Theme facelift
2021-06-14 06:35:12 +02:00
Raphael Coeffic
b53982eebe
Fix potential NULL pointer access
2021-06-14 06:31:28 +02:00
Raphael Coeffic
02897d134e
[Theme] drawProgressBar() should be given the total to avoid using only percentages
2021-06-10 15:28:09 +02:00
Raphael Coeffic
76a3886a03
Use EVT_KEY_FIRST(KEY_EXIT) instead of EVT_KEY_BREAK() in FormGroup
...
This prevents the TabGroup from catching the event first, and thus quit the complete page.
Resolves EdgeTX/edgetx#164
2021-06-09 07:22:33 +02:00
Raphael Coeffic
d535136648
Merge branch 'menu-default-select'
2021-06-07 10:44:42 +02:00
Raphael Coeffic
20f026eef5
Added BSD license for the implementation of drawFilledTriangle()
2021-06-07 08:58:49 +02:00
Raphael Coeffic
8d02f3884a
[Menu] added setFocusBody()
2021-06-06 13:53:05 +02:00
Raphael Coeffic
880a514f18
[Menu] select the first element by default, even if hardware touch is supported
2021-06-06 12:21:50 +02:00
Raphael Coeffic
9962dd0092
[FileChoice] Added extension stripping (optional)
2021-06-06 10:13:01 +02:00
Raphael Coeffic
ae5a84cd6c
Fix drawBitmapPatternPie()
...
Masks are stored in 8-bit format, but drawAlphaPixel() uses only 4-bit alpha.
2021-06-06 07:39:17 +02:00
Raphael Coeffic
675773bcfb
Disable Theme::drawMessageBox()
2021-05-30 17:28:23 +02:00
Raphael Coeffic
8692796dd5
Add safeguards for drawText() & drawSizedText()
2021-05-30 17:27:48 +02:00
Raphael Coeffic
ff35b89543
Reset touch state before calling onTouchEnd()
...
In case something calls MainWindow::run() during the execution of this handler. Otherwise it will generate a second touch-end event, on whatever is on the screen at this moment.
2021-05-27 22:27:58 +02:00
Raphael Coeffic
a3923c35b9
FileChoice: openMenu() after setFocus()
...
Otherwise, whatever is opened by the menu will loose the focus
2021-05-24 19:10:02 +02:00
Raphael Coeffic
18025279c1
Use EVT_KEY_FIRST on Button
2021-05-23 08:48:17 +02:00
Raphael Coeffic
52b3388062
lcdRefresh() already does switch the layers, no need to do it 2 steps
2021-05-22 18:18:25 +02:00
Raphael Coeffic
67ede465aa
Added Liang-Barsky Line Clipping
2021-05-22 16:57:04 +02:00
Raphael Coeffic
e7b6fa412c
Apply clipping in BitmapBuffer::invertRect()
2021-05-22 14:25:09 +02:00
Raphael Coeffic
749d7d9037
Added 8bit PNG font loader
2021-05-21 20:59:33 +02:00
Raphael Coeffic
2d6ebc2ec1
Added loading png bitmaps from memory
2021-05-15 11:21:52 +02:00
Raphael Coeffic
f603207a8e
Added 8bit mask loading
2021-05-15 01:09:57 +02:00
Raphael Coeffic
6a492d9777
Silence compiler warnings
2021-05-09 09:29:11 +02:00
Raphael Coeffic
1964d2ae8c
Check boundaries on characters / fonts
2021-05-08 08:37:53 +02:00
Raphael Coeffic
5403ab4b00
Filter out invalid chars to avoid out-of-bounds memory access
2021-05-08 00:21:58 +02:00
Raphael Coeffic
c25d599393
Fixes for new Stb version
...
As it seems, RGB888 bitmap are now declared as ARGB8888, as load_stb() requests 4 bytes / pixel.
Now, real grayscale is used instead of just using "red" as alpha, as was previously done.
2021-05-07 23:58:20 +02:00
Raphael Coeffic
7b63477300
Cleanup notes
2021-05-07 22:41:43 +02:00
Raphael Coeffic
21940b1572
Fixed clipping in drawBitmapPattern()
2021-05-07 22:41:43 +02:00
Raphael Coeffic
76cdb7f527
Cleanup
2021-05-07 22:41:43 +02:00
Raphael Coeffic
a1cfe638b3
WiP: works with radio
2021-05-07 22:41:43 +02:00
Raphael Coeffic
ff71826fbc
Use full range in 8bit encoding
2021-05-07 22:41:43 +02:00
Raphael Coeffic
347bc76b2b
Move some big template methods into .cpp with explicit instantiation
2021-05-07 22:41:43 +02:00
Raphael Coeffic
7510577dfc
Use DMA ops for blending in drawFilledRect()
2021-05-07 22:41:43 +02:00
Raphael Coeffic
596ef31384
ColorEdit shall use it's own color instead of modifying the color table
2021-05-07 22:41:43 +02:00
Raphael Coeffic
d274f6ac7f
Remove the color table
2021-05-07 22:41:43 +02:00
Raphael Coeffic
0faa189984
Fixed 'opacity' default parameters
2021-05-07 22:41:43 +02:00
Raphael Coeffic
7ca1f0d74c
Fix modal window opacity
2021-05-07 22:41:43 +02:00
Raphael Coeffic
e251f63a35
Removed color table and added the list of colors to be defined
2021-05-07 22:41:43 +02:00
Raphael Coeffic
8ec57dd39e
Move opacity in a separate parameter and use true color instead of palette index
2021-05-07 22:41:43 +02:00