diff options
Diffstat (limited to 'editor/editor_themes.cpp')
-rw-r--r-- | editor/editor_themes.cpp | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index e6df58bc60..5b8f41e75f 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -117,9 +117,9 @@ Ref<Theme> create_editor_theme() { contrast = 0.25; } break; case 3: { // Arc - highlight_color = Color::html("#68a7f2"); - base_color = Color::html("#434a59"); - contrast = 0.2; + highlight_color = Color::html("#5294e2"); + base_color = Color::html("#383c4a"); + contrast = 0.25; } break; } @@ -235,10 +235,12 @@ Ref<Theme> create_editor_theme() { style_popup_menu->set_dark_color(light_color_1); theme->set_stylebox("panel", "PopupMenu", style_popup_menu); - // Tree & script background - Ref<StyleBoxFlat> style_bg = make_flat_stylebox(dark_color_1, 0, 0, 0, 0); - theme->set_stylebox("bg", "Tree", style_bg); - theme->set_stylebox("ScriptPanel", "EditorStyles", style_bg); + // Tree & ItemList background + Ref<StyleBoxFlat> style_tree_bg = make_flat_stylebox(dark_color_1, 2, 4, 2, 4); + theme->set_stylebox("bg", "Tree", style_tree_bg); + // Script background + Ref<StyleBoxFlat> style_script_bg = make_flat_stylebox(dark_color_1, 0, 0, 0, 0); + theme->set_stylebox("ScriptPanel", "EditorStyles", style_script_bg); // Tree theme->set_icon("checked", "Tree", theme->get_icon("Checked", "EditorIcons")); @@ -255,10 +257,10 @@ Ref<Theme> create_editor_theme() { Ref<StyleBox> style_tree_btn = make_flat_stylebox(light_color_1, 2, 4, 2, 4); theme->set_stylebox("button_pressed", "Tree", style_tree_btn); - Ref<StyleBoxFlat> style_tree_focus = make_flat_stylebox(HIGHLIGHT_COLOR_DARK, 4, 4, 4, 4); + Ref<StyleBoxFlat> style_tree_focus = make_flat_stylebox(HIGHLIGHT_COLOR_DARK, 2, 2, 2, 2); theme->set_stylebox("selected_focus", "Tree", style_tree_focus); - Ref<StyleBoxFlat> style_tree_selected = make_flat_stylebox(light_color_1, 4, 4, 4, 4); + Ref<StyleBoxFlat> style_tree_selected = make_flat_stylebox(HIGHLIGHT_COLOR_DARK, 2, 2, 2, 2); theme->set_stylebox("selected", "Tree", style_tree_selected); Ref<StyleBoxFlat> style_tree_cursor = make_flat_stylebox(HIGHLIGHT_COLOR_DARK, 4, 4, 4, 4); @@ -273,25 +275,26 @@ Ref<Theme> create_editor_theme() { theme->set_stylebox("title_button_hover", "Tree", style_tree_title); theme->set_stylebox("title_button_pressed", "Tree", style_tree_title); - theme->set_color("prop_category", "Editor", dark_color_3); - theme->set_color("prop_section", "Editor", dark_color_1); - theme->set_color("prop_subsection", "Editor", dark_color_2); - theme->set_color("fg_selected", "Editor", Color::html("ffbd8e8e")); + theme->set_color("prop_category", "Editor", dark_color_1.linear_interpolate(Color(1, 1, 1, 1), 0.12)); + theme->set_color("prop_section", "Editor", dark_color_1.linear_interpolate(Color(1, 1, 1, 1), 0.09)); + theme->set_color("prop_subsection", "Editor", dark_color_1.linear_interpolate(Color(1, 1, 1, 1), 0.06)); + theme->set_color("fg_selected", "Editor", HIGHLIGHT_COLOR_DARK); theme->set_color("fg_error", "Editor", Color::html("ffbd8e8e")); theme->set_color("drop_position_color", "Tree", highlight_color); // ItemList - Ref<StyleBoxFlat> style_itemlist_cursor = make_flat_stylebox(highlight_color, 4, 4, 4, 4); + Ref<StyleBoxFlat> style_itemlist_bg = make_flat_stylebox(dark_color_1, 4, 4, 4, 4); + Ref<StyleBoxFlat> style_itemlist_cursor = make_flat_stylebox(highlight_color, 0, 0, 0, 0); style_itemlist_cursor->set_draw_center(false); style_itemlist_cursor->set_border_size(1 * EDSCALE); - style_itemlist_cursor->set_light_color(light_color_1); - style_itemlist_cursor->set_dark_color(light_color_1); + style_itemlist_cursor->set_light_color(HIGHLIGHT_COLOR_DARK); + style_itemlist_cursor->set_dark_color(HIGHLIGHT_COLOR_DARK); theme->set_stylebox("cursor", "ItemList", style_itemlist_cursor); theme->set_stylebox("cursor_unfocused", "ItemList", style_itemlist_cursor); theme->set_stylebox("selected_focus", "ItemList", style_tree_focus); theme->set_stylebox("selected", "ItemList", style_tree_selected); theme->set_stylebox("bg_focus", "ItemList", focus_sbt); - theme->set_stylebox("bg", "ItemList", style_bg); + theme->set_stylebox("bg", "ItemList", style_itemlist_bg); theme->set_constant("vseparation", "ItemList", 5 * EDSCALE); Ref<StyleBoxFlat> style_tab_fg = make_flat_stylebox(base_color, 15, 5, 15, 5); |