diff options
author | toger5 <toger5@hotmail.de> | 2017-06-04 17:58:29 -0700 |
---|---|---|
committer | toger5 <toger5@hotmail.de> | 2017-06-07 02:41:08 -0700 |
commit | 50e5c7f9807d85fea1fe549fa357cbad737a7961 (patch) | |
tree | fa4743a750c23ded5c82f54ce3ab5fee7f5c34f6 /editor | |
parent | 9e5efa4abd2a9cfdcf637cc393222948f8f6cc3f (diff) |
fixed overlapping of temp. colors (script editor)
+ added a little bit more spacing to the scripts in the script list.
the temp colors now expand to the vseperation, instead of having the same size than the stylebox
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_themes.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 4e44251f35..6f4e32a500 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -281,7 +281,7 @@ Ref<Theme> create_editor_theme() { theme->set_color("drop_position_color", "Tree", highlight_color); // ItemList - Ref<StyleBoxFlat> style_itemlist_cursor = make_flat_stylebox(highlight_color, 8, 8, 8, 8); + Ref<StyleBoxFlat> style_itemlist_cursor = make_flat_stylebox(highlight_color, 4, 4, 4, 4); style_itemlist_cursor->set_draw_center(false); style_itemlist_cursor->set_border_size(1 * EDSCALE); style_itemlist_cursor->set_light_color(light_color_1); @@ -292,6 +292,7 @@ Ref<Theme> create_editor_theme() { 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_constant("vseparation", "ItemList", 5 * EDSCALE); Ref<StyleBoxFlat> style_tab_fg = make_flat_stylebox(base_color, 15, 5, 15, 5); Ref<StyleBoxFlat> style_tab_bg = make_flat_stylebox(base_color, 15, 5, 15, 5); |