You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: THEMES.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Here is a very simple theme that changes the description text's color:
46
46
47
47
```xml
48
48
<theme>
49
-
<version>3</version>
49
+
<formatVersion>3</formatVersion>
50
50
<viewname="detailed">
51
51
<textname="description">
52
52
<color>00FF00</color>
@@ -66,7 +66,7 @@ How it works
66
66
67
67
Everything must be inside a `<theme>` tag.
68
68
69
-
**The `<version>` tag *must* be specified**. This is the version of the theming system the theme was designed for. The current version is 3.
69
+
**The `<formatVersion>` tag *must* be specified**. This is the version of the theming system the theme was designed for. The current version is 3.
70
70
71
71
72
72
@@ -121,7 +121,7 @@ You can include theme files within theme files, similar to `#include` in C (thou
121
121
`~/.emulationstation/all_themes.xml`:
122
122
```xml
123
123
<theme>
124
-
<version>3</version>
124
+
<formatVersion>3</formatVersion>
125
125
<viewname="detailed">
126
126
<textname="description">
127
127
<fontPath>./all_themes/myfont.ttf</fontPath>
@@ -134,7 +134,7 @@ You can include theme files within theme files, similar to `#include` in C (thou
134
134
`~/.emulationstation/snes/theme.xml`:
135
135
```xml
136
136
<theme>
137
-
<version>3</version>
137
+
<formatVersion>3</formatVersion>
138
138
<include>./../all_themes.xml</include>
139
139
<viewname="detailed">
140
140
<textname="description">
@@ -147,7 +147,7 @@ You can include theme files within theme files, similar to `#include` in C (thou
147
147
Is equivalent to this `snes/theme.xml`:
148
148
```xml
149
149
<theme>
150
-
<version>3</version>
150
+
<formatVersion>3</formatVersion>
151
151
<viewname="detailed">
152
152
<textname="description">
153
153
<fontPath>./all_themes/myfont.ttf</fontPath>
@@ -157,7 +157,7 @@ Is equivalent to this `snes/theme.xml`:
157
157
</theme>
158
158
```
159
159
160
-
Notice that properties that were not specified got merged (`<fontPath>`) and the `snes/theme.xml` could overwrite the included files' values (`<color>`). Also notice the included file still needed the `<version>` tag.
160
+
Notice that properties that were not specified got merged (`<fontPath>`) and the `snes/theme.xml` could overwrite the included files' values (`<color>`). Also notice the included file still needed the `<formatVersion>` tag.
161
161
162
162
163
163
@@ -167,7 +167,7 @@ Sometimes you want to apply the same properties to the same elements across mult
167
167
168
168
```xml
169
169
<theme>
170
-
<version>3</version>
170
+
<formatVersion>3</formatVersion>
171
171
<viewname="basic, grid, system">
172
172
<imagename="logo">
173
173
<path>./snes_art/snes_header.png</path>
@@ -184,7 +184,7 @@ Sometimes you want to apply the same properties to the same elements across mult
184
184
This is equivalent to:
185
185
```xml
186
186
<theme>
187
-
<version>3</version>
187
+
<formatVersion>3</formatVersion>
188
188
<viewname="basic">
189
189
<imagename="logo">
190
190
<path>./snes_art/snes_header.png</path>
@@ -217,7 +217,7 @@ You can theme multiple elements *of the same type* simultaneously. The `name` a
throw error << "<version> tag missing!\n It's either out of date or you need to add <version>" << CURRENT_THEME_VERSION << "</version> inside your <theme> tag.";
169
+
throw error << "<formatVersion> tag missing!\n It's either out of date or you need to add <formatVersion>" << CURRENT_THEME_FORMAT_VERSION << "</formatVersion> inside your <theme> tag.";
170
170
171
-
if(mVersion < MINIMUM_THEME_VERSION)
172
-
throw error << "Theme is version " << mVersion << ". Minimum supported version is " << MINIMUM_THEME_VERSION << ".";
171
+
if(mVersion < MINIMUM_THEME_FORMAT_VERSION)
172
+
throw error << "Theme uses format version " << mVersion << ". Minimum supported version is " << MINIMUM_THEME_FORMAT_VERSION << ".";
0 commit comments