Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

touchscreen: Evaluate %Tp tag only if pointing mode is enabled

Simply knowing that a touchscreen is present isn't that useful for
themes. Having %Tp evaluate as true when in pointing mode and false
in 3x3 mode is better. For example, themes can change their layout
or hide touch UI elements when in 3x3 mode, or show a status icon.

Although a similar effect can be achieved with the %St tag it's
simpler to use %Tp for this purpose -- it can report the current
mode, not just the user preference.

Change-Id: Ie343c105970dca11864fa44c6a091ed8e9e35b3d

authored by

Aidan MacDonald and committed by
Solomon Peachy
910a39af 02ad19c9

+4 -4
+3 -3
apps/gui/skin_engine/skin_tokens.c
··· 1457 1457 return NULL; 1458 1458 case SKIN_TOKEN_HAVE_TOUCH: 1459 1459 #ifdef HAVE_TOUCHSCREEN 1460 - return "t"; 1461 - #else 1462 - return NULL; 1460 + if (touchscreen_get_mode() == TOUCHSCREEN_POINT) 1461 + return "t"; 1463 1462 #endif 1463 + return NULL; 1464 1464 1465 1465 #ifdef HAVE_QUICKSCREEN 1466 1466 case SKIN_TOKEN_TOP_QUICKSETTING_NAME:
+1 -1
lib/skin_parser/tag_table.c
··· 238 238 * keep in sync with parse_touchregion() and parse_lasttouch() */ 239 239 TAG(SKIN_TOKEN_LASTTOUCH, "Tl" , "|[SD]D", SKIN_REFRESH_DYNAMIC), 240 240 TAG(SKIN_TOKEN_TOUCHREGION, "T" , "[Sip][ip][ip][ip][Sip]|S*", 0|NOBREAK), 241 - TAG(SKIN_TOKEN_HAVE_TOUCH, "Tp", "", FEATURE_TAG), 241 + TAG(SKIN_TOKEN_HAVE_TOUCH, "Tp", "", SKIN_REFRESH_STATIC), 242 242 243 243 TAG(SKIN_TOKEN_CURRENT_SCREEN,"cs", "", SKIN_REFRESH_DYNAMIC), 244 244