(modern-DE) Added variant trigger support.

This commit is contained in:
Leon Styhre 2023-01-04 19:12:28 +01:00
parent c6ae192acf
commit cb7a3d6929
2 changed files with 55 additions and 3 deletions

View file

@ -19,10 +19,25 @@
<variant name="withVideos">
<label>Textlist with videos</label>
<selectable>true</selectable>
<override>
<trigger>noMedia</trigger>
<mediaType>miximage, screenshot, cover, video</mediaType>
<useVariant>noGameMedia</useVariant>
</override>
</variant>
<variant name="withoutVideos">
<label>Textlist without videos</label>
<selectable>true</selectable>
<override>
<trigger>noMedia</trigger>
<mediaType>miximage, screenshot, cover</mediaType>
<useVariant>noGameMedia</useVariant>
</override>
</variant>
<variant name="noGameMedia">
<label>No game media</label>
<selectable>false</selectable>
</variant>
</themeCapabilities>

View file

@ -308,11 +308,11 @@
<metadataElement>true</metadataElement>
<fontSize>0.02</fontSize>
</text>
<text name="md_lbl_releasedate, md_lbl_developer, md_lbl_publisher, md_lbl_genre,
md_lbl_players, md_lbl_lastplayed, md_lbl_playcount, md_lbl_rating">
<text name="md_lbl_publisher, md_lbl_developer, md_lbl_releasedate, md_lbl_players,
md_lbl_genre, md_lbl_rating">
<color>${tertiaryColor}</color>
</text>
<text name="md_developer, md_publisher, md_genre, md_players, md_playcount, md_description">
<text name="md_publisher, md_developer, md_players, md_genre, md_description">
<color>${secondaryColor}</color>
</text>
<datetime name="md_releasedate">
@ -391,4 +391,41 @@
</image>
</view>
</variant>
<variant name="noGameMedia">
<view name="gamelist">
<textlist name="gamelist">
<pos>0.04 0.182</pos>
<size>0.924 0.682</size>
<selectorColor>00000000</selectorColor>
<horizontalAlignment>center</horizontalAlignment>
</textlist>
<image name="md_marquee">
<visible>false</visible>
</image>
<image name="md_background">
<visible>false</visible>
</image>
<image name="md_background_grad_top">
<visible>false</visible>
</image>
<image name="md_background_grad_bottom">
<visible>false</visible>
</image>
<badges name="md_badges">
<visible>false</visible>
</badges>
<text name="md_lbl_publisher, md_lbl_developer, md_lbl_releasedate, md_lbl_players,
md_lbl_genre, md_lbl_rating, md_publisher, md_developer, md_players,
md_genre, md_description">
<visible>false</visible>
</text>
<datetime name="md_releasedate">
<visible>false</visible>
</datetime>
<rating name="md_rating">
<visible>false</visible>
</rating>
</view>
</variant>
</theme>