summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2021-03-02 00:46:09 +0100
committerSolomon Peachy <pizza@shaftnet.org>2021-03-09 11:18:47 +0000
commit5c3bbc6a9c9954778002e379799c701d4900b29e (patch)
treecb391e3c51e5d0624dc1a4036136e8dc161c1f1b /apps
parent3b9a803a5b4f1e94339e7bb9724400a096900306 (diff)
downloadrockbox-5c3bbc6a9c9954778002e379799c701d4900b29e.tar.gz
rockbox-5c3bbc6a9c9954778002e379799c701d4900b29e.tar.bz2
rockbox-5c3bbc6a9c9954778002e379799c701d4900b29e.zip
Reset filetype colors when resetting theme colors
Even though filetype colors can't currently be changed by going to Settings->Theme Settings->Colors, a user likely wishes to still reset them when selecting 'Reset Colors' after a .colours file may have been applied by a theme. Change-Id: I4494c83a502666900f6d9d2cc3fb1825af5e45f6
Diffstat (limited to 'apps')
-rw-r--r--apps/menus/theme_menu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/menus/theme_menu.c b/apps/menus/theme_menu.c
index a160d4c298..4a81c5cadf 100644
--- a/apps/menus/theme_menu.c
+++ b/apps/menus/theme_menu.c
@@ -42,6 +42,9 @@
#include "statusbar-skinned.h"
#include "skin_engine/skin_engine.h"
#include "icons.h"
+#ifdef HAVE_LCD_COLOR
+#include "filetypes.h"
+#endif
#ifdef HAVE_BACKDROP_IMAGE
/**
@@ -116,7 +119,10 @@ static int reset_color(void)
global_settings.lse_color = LCD_DEFAULT_BG;
global_settings.lst_color = LCD_DEFAULT_FG;
global_settings.list_separator_color = LCD_DARKGRAY;
-
+ global_settings.colors_file[0] = '-';
+ global_settings.colors_file[1] = '\0';
+
+ read_color_theme_file();
settings_save();
settings_apply(false);
settings_apply_skins();