From a10c7e3ac257d4ca2e6128ddbe8d9a55a6f7fd3a Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Wed, 4 Mar 2020 14:09:07 +0000 Subject: [PATCH] (RGUI) Enable 'Flux' theme --- menu/drivers/rgui.c | 4 ++-- menu/menu_setting.c | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/menu/drivers/rgui.c b/menu/drivers/rgui.c index 1add9cdafa..78a608460d 100644 --- a/menu/drivers/rgui.c +++ b/menu/drivers/rgui.c @@ -494,7 +494,6 @@ static const rgui_theme_t rgui_theme_anti_zenburn = { 0xE0B090B0 /* particle_color */ }; -#if 0 static const rgui_theme_t rgui_theme_flux = { 0xFF6FCB9F, /* hover_color */ 0xFF666547, /* normal_color */ @@ -506,7 +505,6 @@ static const rgui_theme_t rgui_theme_flux = { 0xE0FFE28A, /* shadow_color */ 0xE0FB2E01 /* particle_color */ }; -#endif typedef struct { @@ -2169,6 +2167,8 @@ static const rgui_theme_t *get_theme(rgui_t *rgui) return &rgui_theme_zenburn; case RGUI_THEME_ANTI_ZENBURN: return &rgui_theme_anti_zenburn; + case RGUI_THEME_FLUX: + return &rgui_theme_flux; default: break; } diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 015e03a630..fe07c96bfe 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -3455,6 +3455,12 @@ static void setting_get_string_representation_uint_rgui_menu_color_theme( MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_ANTI_ZENBURN), len); break; + case RGUI_THEME_FLUX: + strlcpy(s, + msg_hash_to_str( + MENU_ENUM_LABEL_VALUE_RGUI_MENU_COLOR_THEME_FLUX), + len); + break; } }