From f8682a032ed459eeb8b4865cba73706e24734b55 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Sun, 17 Jun 2007 23:10:01 +0000 Subject: Fix some bugs with the colors stuff. You can now specify folder color with the folder extension. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13659 a1c6a512-1295-4272-9138-f99709370657 --- apps/filetypes.c | 27 ++++++++++++++++++++++----- apps/filetypes.h | 2 +- apps/tree.c | 2 +- 3 files changed, 24 insertions(+), 7 deletions(-) (limited to 'apps') diff --git a/apps/filetypes.c b/apps/filetypes.c index a6ccff32ba..89933c8774 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -39,6 +39,7 @@ #include "splash.h" #include "buffer.h" #include "icons.h" +#include "logf.h" /* max filetypes (plugins & icons stored here) */ #if CONFIG_CODEC == SWCODEC @@ -160,7 +161,12 @@ void read_color_theme_file(void) { { if (!settings_parseline(buffer, &ext, &color)) continue; - for (i=0; idircache; struct entry* e = &dc[selected_item]; - return filetype_get_color(e->attr); + return filetype_get_color(e->name, e->attr); } #endif -- cgit v1.2.3