diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-07 03:44:11 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-07 03:44:11 +0000 |
commit | 5b0521c9aadee11886e2c92df7d768d5e76063a6 (patch) | |
tree | a6fc72ca29627bb53276c05a5606a559f78bae83 /apps/gui/statusbar-skinned.c | |
parent | 53b619c6e80c9efc6993c23ff7b1035e8e101834 (diff) | |
download | rockbox-5b0521c9aadee11886e2c92df7d768d5e76063a6.tar.gz rockbox-5b0521c9aadee11886e2c92df7d768d5e76063a6.zip |
Changeover to the new skin format. SkinBreakingChange in the wiki has the runown of the changes.
Major changes are paramerterised tags now use %tag(param,param), colours are removed from the %V() tag, %Vi gets a required (but can be -) label as its first param).
utils/skinupdater/ has a program to update individual skins, and a perl script to update a whole zip.
Themesite will be unusable for the time being (you should be able to upload new themes once it updates checkwps though).
I obviously havnt tested every updated wps in this change so let me know if one doesnt load
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26641 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar-skinned.c')
-rw-r--r-- | apps/gui/statusbar-skinned.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c index a53555a291..fcd4cfbd9e 100644 --- a/apps/gui/statusbar-skinned.c +++ b/apps/gui/statusbar-skinned.c | |||
@@ -200,7 +200,7 @@ void sb_create_from_settings(enum screen_type screen) | |||
200 | { | 200 | { |
201 | y = screens[screen].lcdheight - STATUSBAR_HEIGHT; | 201 | y = screens[screen].lcdheight - STATUSBAR_HEIGHT; |
202 | } | 202 | } |
203 | len = snprintf(ptr, remaining, "%%V|0|%d|-|%d|0|-|-|\n%%wi\n", | 203 | len = snprintf(ptr, remaining, "%%V(0,%d,-,%d,0)\n%%wi\n", |
204 | y, height); | 204 | y, height); |
205 | remaining -= len; | 205 | remaining -= len; |
206 | ptr += len; | 206 | ptr += len; |
@@ -215,9 +215,7 @@ void sb_create_from_settings(enum screen_type screen) | |||
215 | 215 | ||
216 | if (ptr2[0] && ptr2[0] != '-') /* from ui viewport setting */ | 216 | if (ptr2[0] && ptr2[0] != '-') /* from ui viewport setting */ |
217 | { | 217 | { |
218 | len = snprintf(ptr, remaining, "%%ax%%Vi|%s|\n", ptr2); | 218 | len = snprintf(ptr, remaining, "%%ax%%Vi(-,%s)\n", ptr2); |
219 | while ((ptr2 = strchr(ptr, ','))) | ||
220 | *ptr2 = '|'; | ||
221 | } | 219 | } |
222 | else | 220 | else |
223 | { | 221 | { |
@@ -232,7 +230,7 @@ void sb_create_from_settings(enum screen_type screen) | |||
232 | default: | 230 | default: |
233 | height = screens[screen].lcdheight; | 231 | height = screens[screen].lcdheight; |
234 | } | 232 | } |
235 | len = snprintf(ptr, remaining, "%%ax%%Vi|0|%d|-|%d|1|-|-|\n", | 233 | len = snprintf(ptr, remaining, "%%ax%%Vi(-,0,%d,-,%d,1)\n", |
236 | y, height); | 234 | y, height); |
237 | } | 235 | } |
238 | sb_skin_data_load(screen, buf, false); | 236 | sb_skin_data_load(screen, buf, false); |