diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-09-26 08:03:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 08:03:00 +0200 |
commit | 777f26fe29718a6609bea84f693ae96d8f22a01c (patch) | |
tree | 19c12dfbbfc2c1dd7dfc5649b26988ea8b5bcdd0 /editor/scene_tree_editor.cpp | |
parent | 1da6b4d1d1a2154fba85f5a37f958d333347ab10 (diff) | |
parent | b622c92fad36ef7c8cfb84f7e0de188557808ee0 (diff) |
Merge pull request #11597 from djrm/pr_interface_colors
Removed most of the custom colors from the interface.
Diffstat (limited to 'editor/scene_tree_editor.cpp')
-rw-r--r-- | editor/scene_tree_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index cfc563f470..6dcd5e54ec 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -185,7 +185,7 @@ bool SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) { if (part_of_subscene) { //item->set_selectable(0,marked_selectable); - item->set_custom_color(0, get_color("error_color", "Editor").linear_interpolate(get_color("warning_color", "Editor"), 0.4)); + item->set_custom_color(0, get_color("disabled_font_color", "Editor")); } else if (marked.has(p_node)) { @@ -345,7 +345,7 @@ void SceneTreeEditor::_update_visibility_color(Node *p_node, TreeItem *p_item) { Color color(1, 1, 1, 1); bool visible_on_screen = p_node->call("is_visible_in_tree"); if (!visible_on_screen) { - color = Color(0.6, 0.6, 0.6, 1); + color.a = 0.6; } int idx = p_item->get_button_by_id(0, BUTTON_VISIBILITY); p_item->set_button_color(0, idx, color); |