diff options
author | Brandon Low <lostlogic@rockbox.org> | 2007-06-17 21:16:34 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2007-06-17 21:16:34 +0000 |
commit | 74cbb0a1b24a5d2e32d2667b236483b5e7253e98 (patch) | |
tree | 4a9bd83a01bbb822305e3a567362fb3b36dfc28b /firmware/export | |
parent | b57806237d275b54380be5b73e3d783bd6972bf8 (diff) | |
download | rockbox-74cbb0a1b24a5d2e32d2667b236483b5e7253e98.tar.gz rockbox-74cbb0a1b24a5d2e32d2667b236483b5e7253e98.zip |
Give color targets the ability to display each LCD line a different color and use this newfangled ability to provide themable colored file types. See the comments on read_color_theme_file and the sample.colors file provided for how to use this. .colors files go in themes directory for now. This separate line color function should be trivial to add to menus and wpss.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13656 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/lcd-remote.h | 4 | ||||
-rw-r--r-- | firmware/export/lcd.h | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h index ad311a8255..cfb643ff96 100644 --- a/firmware/export/lcd-remote.h +++ b/firmware/export/lcd-remote.h | |||
@@ -43,8 +43,8 @@ int remote_type(void); | |||
43 | extern struct event_queue remote_scroll_queue; | 43 | extern struct event_queue remote_scroll_queue; |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #define STYLE_DEFAULT 0 | 46 | #define STYLE_DEFAULT 0x00000000 |
47 | #define STYLE_INVERT 1 | 47 | #define STYLE_INVERT 0x20000000 |
48 | 48 | ||
49 | #if LCD_REMOTE_DEPTH <= 8 | 49 | #if LCD_REMOTE_DEPTH <= 8 |
50 | #if (LCD_REMOTE_PIXELFORMAT == VERTICAL_INTERLEAVED) \ | 50 | #if (LCD_REMOTE_PIXELFORMAT == VERTICAL_INTERLEAVED) \ |
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 077664040e..cebcf54c9b 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -24,8 +24,10 @@ | |||
24 | #include "cpu.h" | 24 | #include "cpu.h" |
25 | #include "config.h" | 25 | #include "config.h" |
26 | 26 | ||
27 | #define STYLE_DEFAULT 0 | 27 | #define STYLE_DEFAULT 0x00000000 |
28 | #define STYLE_INVERT 1 | 28 | #define STYLE_INVERT 0x20000000 |
29 | #define STYLE_COLORED 0x10000000 | ||
30 | #define STYLE_COLOR_MASK 0x0000FFFF | ||
29 | 31 | ||
30 | #ifdef SIMULATOR | 32 | #ifdef SIMULATOR |
31 | #ifndef MAX_PATH | 33 | #ifndef MAX_PATH |