From 74cbb0a1b24a5d2e32d2667b236483b5e7253e98 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Sun, 17 Jun 2007 21:16:34 +0000 Subject: 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 --- apps/filetypes.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/filetypes.h') 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*); uses audio buffer for storage, so call early in init... */ void filetype_init(void); void read_viewer_theme_file(void); +#ifdef HAVE_LCD_COLOR +void read_color_theme_file(void); +#endif /* Return the attribute (FILE_ATTR_*) of the file */ int filetype_get_attr(const char* file); +#ifdef HAVE_LCD_COLOR +int filetype_get_color(int attr); +#endif int filetype_get_icon(int attr); /* return the plugin filename associated with the file */ char* filetype_get_plugin(const struct entry* file); -- cgit v1.2.3