Skip to content

Commit

Permalink
Layout changes & addition of gw theme elements
Browse files Browse the repository at this point in the history
- Layout adjustments for meta data in 16x9 template
- Added 16x9-no_desc.xml template and made it default
- duplicated gameandwatch to gw as Recalbox/Batocera use that naming
convetion
  • Loading branch information
burgerito committed Aug 9, 2017
1 parent 59c7303 commit 2abab3f
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 39 deletions.
136 changes: 136 additions & 0 deletions _inc/templates/16x9-no_desc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<theme>
<formatVersion>4</formatVersion>

<view name="system,basic,detailed">
<helpsystem name="help">
<textColor>777777</textColor>
<iconColor>777777</iconColor>
</helpsystem>
<image name="background" extra="true">
<origin>0 0</origin>
<pos>0 0</pos>
<size>1 1</size>
<tile>true</tile>
<path>./../images/background.png</path>
</image>
</view>

<view name="basic,detailed">
<image name="logo">
<origin>0.5 0</origin>
<pos>0.5 0.0694444444444444</pos>
<maxSize>0.234375 0.05555555555556</maxSize>
</image>
<textlist name="gamelist">
<pos>0.1875 0.1958333333333333</pos>
<size>0.625 0.6944444444444444</size>
<selectorColor>1c1c1caa</selectorColor>
<selectedColor>bba358</selectedColor>
<primaryColor>eaeaea</primaryColor>
<secondaryColor>eaeaea</secondaryColor>
<fontPath>./../fonts/Cabin-Bold-TTF.ttf</fontPath>
<fontSize>0.0275</fontSize>
<forceUppercase>1</forceUppercase>
<alignment>center</alignment>
</textlist>
</view>

<view name="detailed">
<text name="md_lbl_rating, md_lbl_releasedate, md_lbl_developer, md_lbl_publisher, md_lbl_genre, md_lbl_playcount, md_developer, md_publisher, md_playcount">
<pos>1 1</pos>
</text>
<datetime name="md_releasedate">
<pos>1 1</pos>
</datetime>
<text name="md_description,md_lastplayed,md_lbl_lastplayed,md_lbl_players,md_lbl_releasedate,md_players,md_releasedate,md_lbl_genre,md_genre">
<color>555555</color>
<fontPath>./../fonts/Cabin-Bold-TTF.ttf</fontPath>
<fontSize>0.0222222222222222</fontSize>
<forceUppercase>1</forceUppercase>
</text>

<rating name="md_rating">
<pos>0.2015625 0.7455555555555</pos>
<size>0.2515625 0.0277777777777778</size>
<filledPath>./../images/star_filled.svg</filledPath>
<unfilledPath>./../images/star_empty.svg</unfilledPath>
</rating>
<!-- <image name="md_hidden">
<origin>0 0</origin>
<pos>0.390625 0.7488888888888889</pos>
<maxSize>0 0</maxSize>
<path>./../images/hidden.svg</path>
<color>bba35880</color>
</image> -->
<text name="md_lbl_favorite">
<pos>1 1</pos>
<color>000000</color>
<fontSize>0.000000000001</fontSize>
</text>
<text name="md_favorite">
<pos>1 1</pos>
<color>000000</color>
<fontSize>0.000000000001</fontSize>
</text>

<text name="md_lbl_lastplayed">
<pos>0.2015625 0.78</pos>
<size>0.09109375 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>
<datetime name="md_lastplayed">
<pos>0.2763 0.78</pos>
<size>0.1171875 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</datetime>

<text name="md_lbl_releasedate">
<pos>0.2015625 0.81</pos>
<size>0.05765625 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>
<datetime name="md_releasedate">
<pos>0.262 0.81</pos>
<size>0.007578125 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</datetime>

<text name="md_lbl_players">
<pos>0.2015625 0.84</pos>
<size>0.05765625 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>
<text name="md_players">
<pos>0.255 0.84</pos>
<size>0.028125 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>

<text name="md_lbl_genre">
<pos>0.2015625 0.87</pos>
<size>0.07421875 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>
<text name="md_genre">
<pos>0.24415625 0.87</pos>
<size>0.2215625 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>

<textlist name="gamelist">
<pos>0.546875 0.1958333333333333</pos>
<size>0.4500 0.6944444444444444</size>
<alignment>left</alignment>
<horizontalMargin>0.00625</horizontalMargin>
</textlist>
</view>

<view name="detailed">
<image name="md_image">
<origin>0.5 0.5</origin>
<pos>0.30734375 0.45333333333337</pos>
<maxSize>0.43210 0.555</maxSize>
</image>
</view>

</theme>
72 changes: 33 additions & 39 deletions _inc/templates/16x9.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@
<datetime name="md_releasedate">
<pos>1 1</pos>
</datetime>
<text name="md_description,md_lastplayed,md_lbl_lastplayed,md_lbl_players,md_players,md_releasedate,md_genre">
<text name="md_description,md_lastplayed,md_lbl_lastplayed,md_lbl_players,md_lbl_releasedate,md_players,md_releasedate,md_lbl_genre,md_genre">
<color>555555</color>
<fontPath>./../fonts/Cabin-Bold-TTF.ttf</fontPath>
<fontSize>0.0222222222222222</fontSize>
<forceUppercase>1</forceUppercase>
</text>

<rating name="md_rating">
Expand All @@ -71,63 +72,56 @@
<color>000000</color>
<fontSize>0.000000000001</fontSize>
</text>
<image name="md_lbl_lastplayed_slash" extra="true">
<origin>0 0</origin>
<pos>0.2015625 0.6444444444444444</pos>
<maxSize>0.00703125 0.0277777777777778</maxSize>
<path>./../images/metadata.svg</path>
</image>

<text name="md_lbl_lastplayed">
<pos>0.21015625 0.6444444444444444</pos>
<size>0.07109375 0.0277777777777778</size>
<pos>0.2015625 0.62</pos>
<size>0.09109375 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>
<datetime name="md_lastplayed">
<pos>0.28125 0.6444444444444444</pos>
<pos>0.27425 0.62</pos>
<size>0.1171875 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</datetime>

<text name="md_lbl_releasedate">
<pos>0.2015625 0.65</pos>
<size>0.05765625 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>
<datetime name="md_releasedate">
<pos>0.2615625 0.65</pos>
<size>0.007578125 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</datetime>

<image name="md_lbl_players_slash" extra="true">
<origin>0 0</origin>
<pos>0.2015625 0.6861111111111111</pos>
<maxSize>0.00703125 0.0277777777777778</maxSize>
<path>./../images/metadata.svg</path>
</image>
<text name="md_lbl_players">
<pos>0.21015625 0.6861111111111111</pos>
<size>0.04765625 0.0277777777777778</size>
<pos>0.2015625 0.68</pos>
<size>0.05765625 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>
<text name="md_players">
<pos>0.2578125 0.6861111111111111</pos>
<pos>0.2525 0.68</pos>
<size>0.028125 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>

<image name="md_releasedate_slash" extra="true">
<origin>0 0</origin>
<pos>0.2859375 0.6861111111111111</pos>
<maxSize>0.00703125 0.0277777777777778</maxSize>
<path>./../images/metadata.svg</path>
</image>
<datetime name="md_releasedate">
<pos>0.29453125 0.6861111111111111</pos>
<size>0.07578125 0.0277777777777778</size>
</datetime>

<image name="md_genre_slash" extra="true">
<origin>0 0</origin>
<pos>0.3703125 0.6861111111111111</pos>
<maxSize>0.00703125 0.0277777777777778</maxSize>
<path>./../images/metadata.svg</path>
</image>
<text name="md_genre">
<pos>0.37890625 0.6861111111111111</pos>
<text name="md_lbl_genre">
<pos>0.2015625 0.71</pos>
<size>0.07421875 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>
<text name="md_genre">
<pos>0.24515625 0.71</pos>
<size>0.2215625 0.0277777777777778</size>
<fontSize>0.02</fontSize>
</text>

<text name="md_description">
<pos>0.2015625 0.7416666666666667</pos>
<size>0.2515625 0.1472222222222222</size>
<color>999999</color>
<fontSize>0.025</fontSize>
<fontSize>0.014</fontSize>
</text>

<textlist name="gamelist">
Expand Down
99 changes: 99 additions & 0 deletions gw/_inc/system.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions gw/theme.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<theme>
<formatVersion>4</formatVersion>
<include>./../theme.xml</include>

<view name="system, basic, detailed, video">
<image name="logo">
<path>./_inc/system.svg</path>
</image>
</view>

</theme>

0 comments on commit 2abab3f

Please sign in to comment.