Allow doubletap of a main screen widget to fullscreen it #6674
+25
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a doubleclick handler for lua widgets on colorlcd to make them fullscreen. We've waited too long!
Widgets are awesome, all being right there on the main screen, strutting their stuff. Interacting with them is not allowed, of course, because it is all to easy to tap them accidentally. However, the tap and hold, long press, select Fullscreen from the menu is not exactly a quick interaction. This PR adds the ability to doubletap to jump right into fullscreen of a widget, rather than feeling like "digging into the menus" to access this behavior.
I feel like this is needed, now that the SYS button starts a menu journey rather than going to the tools menu. Launching the ExpressLRS script has changed from (Click, Tap) to (Click, Tap, Tap, Tap) with each tap requiring the user comprehend a new set of options presented to them. Widget doubletaps can allow quick access to fullscreen apps that used to be tools scripts and allow more natural interactions instead with what the user wants right up front from the main screen instead of feeling like everything is a buried configuration option.
Note that LVGL 9.4 adds this event type directly (
LV_EVENT_DOUBLE_CLICKED), so this is currently emulated with EdgeTX code until that makes its way into EdgeTX. The timeout I've chosen is generous, but it might need to be even more generous, as I find that taps aren't accurately caught if you tap the screen quickly.EDIT: Also tagging #4371 (which resulted in the awesome App Mode type widget) as related