Skip to content

Commit

Permalink
ozone: set default theme to dark
Browse files Browse the repository at this point in the history
  • Loading branch information
natinusala committed Feb 1, 2019
1 parent 0d3dc3f commit cff7aa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion menu/drivers/ozone/ozone_theme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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;
}
Expand Down

0 comments on commit cff7aa5

Please sign in to comment.