summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/wps_internals.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-08-14 13:50:07 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-08-14 13:50:07 +0000
commit281f1a1ed6f6213139fbc230dc819bbcbe3ee40a (patch)
tree8407e89f6ce32200f2cdfc4efc08233957eff3cf /apps/gui/skin_engine/wps_internals.h
parentb2d0ea204c36785b5ec658ae0aecb89787886d8b (diff)
downloadrockbox-281f1a1ed6f6213139fbc230dc819bbcbe3ee40a.tar.gz
rockbox-281f1a1ed6f6213139fbc230dc819bbcbe3ee40a.zip
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 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r--apps/gui/skin_engine/wps_internals.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h
index 6de98455a7..01f67d4a0b 100644
--- a/apps/gui/skin_engine/wps_internals.h
+++ b/apps/gui/skin_engine/wps_internals.h
@@ -161,6 +161,14 @@ enum wps_parse_error {
PARSE_FAIL_COND_INVALID_PARAM,
PARSE_FAIL_LIMITS_EXCEEDED,
};
+#ifdef HAVE_LCD_COLOR
+struct gradient_config {
+ unsigned start;
+ unsigned end;
+ unsigned text;
+ int lines_count;
+};
+#endif
#define VP_DRAW_HIDEABLE 0x1
#define VP_DRAW_HIDDEN 0x2
@@ -173,8 +181,13 @@ struct skin_viewport {
char hidden_flags;
bool is_infovp;
char* label;
+#if LCD_DEPTH > 1
unsigned start_fgcolour;
unsigned start_bgcolour;
+#ifdef HAVE_LCD_COLOR
+ struct gradient_config start_gradient;
+#endif
+#endif
};
struct viewport_colour {
struct viewport *vp;