From cff7aa5785b7cc007b81011c750262211703472c Mon Sep 17 00:00:00 2001 From: natinusala Date: Fri, 1 Feb 2019 16:16:06 +0100 Subject: [PATCH] ozone: set default theme to dark --- configuration.c | 2 +- menu/drivers/ozone/ozone_theme.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configuration.c b/configuration.c index 3612f28c7f..883c398279 100644 --- a/configuration.c +++ b/configuration.c @@ -1688,7 +1688,7 @@ static struct config_uint_setting *populate_settings_uint(settings_t *settings, SETTING_UINT("materialui_menu_color_theme", &settings->uints.menu_materialui_color_theme, true, MATERIALUI_THEME_BLUE, false); SETTING_UINT("menu_shader_pipeline", &settings->uints.menu_xmb_shader_pipeline, true, menu_shader_pipeline, false); #ifdef HAVE_OZONE - SETTING_UINT("ozone_menu_color_theme", &settings->uints.menu_ozone_color_theme, true, 0, false); + SETTING_UINT("ozone_menu_color_theme", &settings->uints.menu_ozone_color_theme, true, 1, false); #endif #endif SETTING_UINT("audio_out_rate", &settings->uints.audio_out_rate, true, out_rate, false); diff --git a/menu/drivers/ozone/ozone_theme.c b/menu/drivers/ozone/ozone_theme.c index 5a32bd4943..1c1d60cdaa 100644 --- a/menu/drivers/ozone/ozone_theme.c +++ b/menu/drivers/ozone/ozone_theme.c @@ -84,7 +84,7 @@ ozone_theme_t *ozone_themes[] = { unsigned ozone_themes_count = sizeof(ozone_themes) / sizeof(ozone_themes[0]); unsigned last_color_theme = 0; bool last_use_preferred_system_color_theme = false; -ozone_theme_t *ozone_default_theme = &ozone_theme_light; /* also used as a tag for cursor animation */ +ozone_theme_t *ozone_default_theme = &ozone_theme_dark; /* also used as a tag for cursor animation */ void ozone_set_color_theme(ozone_handle_t *ozone, unsigned color_theme) { @@ -99,6 +99,8 @@ void ozone_set_color_theme(ozone_handle_t *ozone, unsigned color_theme) theme = &ozone_theme_dark; break; case 0: + theme = &ozone_theme_light; + break; default: break; }