summaryrefslogtreecommitdiff
path: root/apps/filetypes.h
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2007-06-17 21:16:34 +0000
committerBrandon Low <lostlogic@rockbox.org>2007-06-17 21:16:34 +0000
commit74cbb0a1b24a5d2e32d2667b236483b5e7253e98 (patch)
tree4a9bd83a01bbb822305e3a567362fb3b36dfc28b /apps/filetypes.h
parentb57806237d275b54380be5b73e3d783bd6972bf8 (diff)
downloadrockbox-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 'apps/filetypes.h')
-rw-r--r--apps/filetypes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/filetypes.h b/apps/filetypes.h
index a38b4bc000..13f4e56161 100644
--- a/apps/filetypes.h
+++ b/apps/filetypes.h
@@ -53,9 +53,15 @@ void tree_get_filetypes(const struct filetype**, int*);
53 uses audio buffer for storage, so call early in init... */ 53 uses audio buffer for storage, so call early in init... */
54void filetype_init(void); 54void filetype_init(void);
55void read_viewer_theme_file(void); 55void read_viewer_theme_file(void);
56#ifdef HAVE_LCD_COLOR
57void read_color_theme_file(void);
58#endif
56 59
57/* Return the attribute (FILE_ATTR_*) of the file */ 60/* Return the attribute (FILE_ATTR_*) of the file */
58int filetype_get_attr(const char* file); 61int filetype_get_attr(const char* file);
62#ifdef HAVE_LCD_COLOR
63int filetype_get_color(int attr);
64#endif
59int filetype_get_icon(int attr); 65int filetype_get_icon(int attr);
60/* return the plugin filename associated with the file */ 66/* return the plugin filename associated with the file */
61char* filetype_get_plugin(const struct entry* file); 67char* filetype_get_plugin(const struct entry* file);