From 3d89893cb854ae68e1419e020bcd7d7362d84a91 Mon Sep 17 00:00:00 2001 From: toger5 Date: Sun, 25 Jun 2017 17:21:12 -0700 Subject: [PATCH] style box margins for Inspector and list. --- editor/editor_themes.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index e6df58bc608..c855f43f444 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -235,10 +235,12 @@ Ref create_editor_theme() { style_popup_menu->set_dark_color(light_color_1); theme->set_stylebox("panel", "PopupMenu", style_popup_menu); - // Tree & script background - Ref 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 style_tree_bg = make_flat_stylebox(dark_color_1, 2, 4, 2, 4); + theme->set_stylebox("bg", "Tree", style_tree_bg); + // Script background + Ref 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")); @@ -291,7 +293,7 @@ Ref create_editor_theme() { 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_tree_bg); theme->set_constant("vseparation", "ItemList", 5 * EDSCALE); Ref style_tab_fg = make_flat_stylebox(base_color, 15, 5, 15, 5);