diff options
| author | Nuno Donato | 2017-05-24 16:21:32 +0100 |
|---|---|---|
| committer | Nuno Donato | 2017-05-24 21:41:56 +0100 |
| commit | 5c65547804a2586d10f2c3ddc5fbe6b1c1d062d9 (patch) | |
| tree | 9eb185bbf76424c258f26b309ed091fda57c77bc /editor/editor_themes.cpp | |
| parent | 2e3145de65257ed39a5d01c5592ea0fb90cd00ba (diff) | |
| download | godot-5c65547804a2586d10f2c3ddc5fbe6b1c1d062d9.tar.gz godot-5c65547804a2586d10f2c3ddc5fbe6b1c1d062d9.tar.zst godot-5c65547804a2586d10f2c3ddc5fbe6b1c1d062d9.zip | |
Improved default colors for the new theme
Colors inspired from solarized themes.
Also moved the theme settings to the Interface category.
Diffstat (limited to '')
| -rw-r--r-- | editor/editor_themes.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 1d73192f7..9968b7304 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -95,16 +95,16 @@ Ref<Theme> create_editor_theme() { editor_register_icons(theme); // Define colors - Color highlight_color = EDITOR_DEF("editors/theme/highlight_color", Color::html("#6ca9f3")); - Color base_color = EDITOR_DEF("editors/theme/base_color", Color::html("#2e3742")); - float contrast = EDITOR_DEF("editors/theme/contrast", 0.2); + Color highlight_color = EDITOR_DEF("interface/theme/highlight_color", Color::html("#b79047")); + Color base_color = EDITOR_DEF("interface/theme/base_color", Color::html("#213d4c")); + float contrast = EDITOR_DEF("interface/theme/contrast", 0.25); Color dark_color_1 = base_color.linear_interpolate(Color(0, 0, 0, 1), contrast); - Color dark_color_2 = base_color.linear_interpolate(Color(0, 0, 0, 1), contrast * 2); - Color dark_color_3 = base_color.linear_interpolate(Color(0, 0, 0, 1), contrast * 3); + Color dark_color_2 = base_color.linear_interpolate(Color(0, 0, 0, 1), contrast * 1.5); + Color dark_color_3 = base_color.linear_interpolate(Color(0, 0, 0, 1), contrast * 2); Color light_color_1 = base_color.linear_interpolate(Color(1, 1, 1, 1), contrast); - Color light_color_2 = base_color.linear_interpolate(Color(1, 1, 1, 1), contrast * 2); + Color light_color_2 = base_color.linear_interpolate(Color(1, 1, 1, 1), contrast * 1.5); theme->set_color("highlight_color", "Editor", highlight_color); theme->set_color("base_color", "Editor", base_color); @@ -425,7 +425,7 @@ Ref<Theme> create_editor_theme() { Ref<Theme> create_custom_theme() { Ref<Theme> theme; - String custom_theme = EditorSettings::get_singleton()->get("interface/custom_theme"); + String custom_theme = EditorSettings::get_singleton()->get("interface/theme/custom_theme"); if (custom_theme != "") { theme = ResourceLoader::load(custom_theme); } |
