diff options
author | toger5 <toger5@hotmail.de> | 2017-06-25 17:21:12 -0700 |
---|---|---|
committer | toger5 <toger5@hotmail.de> | 2017-06-25 17:21:12 -0700 |
commit | 3d89893cb854ae68e1419e020bcd7d7362d84a91 (patch) | |
tree | ecc72841b7597bd18be44df47cad053cb32ac9db /editor | |
parent | d41978eb63bc98f402a7818e815287b11b6524b9 (diff) |
style box margins for Inspector and list.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_themes.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index e6df58bc60..c855f43f44 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -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")); @@ -291,7 +293,7 @@ Ref<Theme> 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<StyleBoxFlat> style_tab_fg = make_flat_stylebox(base_color, 15, 5, 15, 5); |