diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-08-14 13:50:07 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-08-14 13:50:07 +0000 |
| commit | 281f1a1ed6f6213139fbc230dc819bbcbe3ee40a (patch) | |
| tree | 8407e89f6ce32200f2cdfc4efc08233957eff3cf /lib/skin_parser | |
| parent | b2d0ea204c36785b5ec658ae0aecb89787886d8b (diff) | |
| download | rockbox-281f1a1ed6f6213139fbc230dc819bbcbe3ee40a.zip rockbox-281f1a1ed6f6213139fbc230dc819bbcbe3ee40a.tar.gz rockbox-281f1a1ed6f6213139fbc230dc819bbcbe3ee40a.tar.bz2 rockbox-281f1a1ed6f6213139fbc230dc819bbcbe3ee40a.tar.xz | |
New skin tags: %Vs() to set the text style and %Vg() to get the viewports gradient colours
%Vs(mode[, param]) : mode can be "invert", "color" (where param is the colour to use", "clear" to disable the current style, "gradient" where param is the number of lines the gradient should draw over.
%Vg(start colour, end colour, [text colour]), if this tag isnt used the list selection colours from the settings will set the gradient colours
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30302 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib/skin_parser')
| -rw-r--r-- | lib/skin_parser/tag_table.c | 2 | ||||
| -rw-r--r-- | lib/skin_parser/tag_table.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/skin_parser/tag_table.c b/lib/skin_parser/tag_table.c index dea28b6..db8c2e5 100644 --- a/lib/skin_parser/tag_table.c +++ b/lib/skin_parser/tag_table.c @@ -192,6 +192,8 @@ static const struct tag_info legal_tags[] = { SKIN_TOKEN_VIEWPORT_FGCOLOUR, "Vf" , "s", SKIN_REFRESH_STATIC|NOBREAK }, { SKIN_TOKEN_VIEWPORT_BGCOLOUR, "Vb" , "s", SKIN_REFRESH_STATIC|NOBREAK }, + { SKIN_TOKEN_VIEWPORT_TEXTSTYLE, "Vs" , "S|s", SKIN_REFRESH_STATIC }, + { SKIN_TOKEN_VIEWPORT_GRADIENT_SETUP, "Vg" , "SS|s", SKIN_REFRESH_STATIC|NOBREAK }, { SKIN_TOKEN_VIEWPORT_CONDITIONAL, "Vl" , "SIIiii", 0 }, { SKIN_TOKEN_UIVIEWPORT_LOAD, "Vi" , "sIIiii", 0 }, diff --git a/lib/skin_parser/tag_table.h b/lib/skin_parser/tag_table.h index e52fded..58c14b5 100644 --- a/lib/skin_parser/tag_table.h +++ b/lib/skin_parser/tag_table.h @@ -87,6 +87,8 @@ enum skin_token_type { SKIN_TOKEN_UIVIEWPORT_LOAD, SKIN_TOKEN_VIEWPORT_FGCOLOUR, SKIN_TOKEN_VIEWPORT_BGCOLOUR, + SKIN_TOKEN_VIEWPORT_TEXTSTYLE, + SKIN_TOKEN_VIEWPORT_GRADIENT_SETUP, /* Battery */ SKIN_TOKEN_BATTERY_PERCENT, |