From 370443b44150fe1c5b345c886bbe23229c965532 Mon Sep 17 00:00:00 2001 From: valkyrienyanko Date: Fri, 11 Oct 2024 17:35:02 -0500 Subject: [PATCH] Add new Dark Gray theme --- editor/editor_settings.cpp | 2 +- editor/themes/editor_theme_manager.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index acd7c90a3fe..1a5e0711863 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -532,7 +532,7 @@ void EditorSettings::_load_defaults(Ref p_extra_config) { // Theme EDITOR_SETTING_BASIC(Variant::BOOL, PROPERTY_HINT_ENUM, "interface/theme/follow_system_theme", false, "") - EDITOR_SETTING_BASIC(Variant::STRING, PROPERTY_HINT_ENUM, "interface/theme/preset", "Default", "Default,Breeze Dark,Godot,Godot 2,Gray,Light,Solarized (Dark),Solarized (Light),Black (OLED),Indigo,Custom") + EDITOR_SETTING_BASIC(Variant::STRING, PROPERTY_HINT_ENUM, "interface/theme/preset", "Default", "Default,Breeze Dark,Godot,Godot 2,Gray,Dark Gray,Light,Solarized (Dark),Solarized (Light),Black (OLED),Indigo,Custom") EDITOR_SETTING_BASIC(Variant::STRING, PROPERTY_HINT_ENUM, "interface/theme/spacing_preset", "Default", "Compact,Default,Spacious,Custom") EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "interface/theme/icon_and_font_color", 0, "Auto,Dark,Light") EDITOR_SETTING_BASIC(Variant::COLOR, PROPERTY_HINT_NONE, "interface/theme/base_color", Color(0.2, 0.23, 0.31), "") diff --git a/editor/themes/editor_theme_manager.cpp b/editor/themes/editor_theme_manager.cpp index 1a67356217e..42ce89525b4 100644 --- a/editor/themes/editor_theme_manager.cpp +++ b/editor/themes/editor_theme_manager.cpp @@ -302,6 +302,10 @@ EditorThemeManager::ThemeConfiguration EditorThemeManager::_create_theme_config( preset_accent_color = Color(0.44, 0.73, 0.98); preset_base_color = Color(0.24, 0.24, 0.24); preset_contrast = config.default_contrast; + } else if (config.preset == "Dark Gray") { + preset_accent_color = Color(1, 1, 1); + preset_base_color = Color(0.15, 0.15, 0.15); + preset_contrast = config.default_contrast; } else if (config.preset == "Light") { preset_accent_color = Color(0.87, 0.22, 0.29); preset_base_color = Color(0.9, 0.9, 0.9);