diff options
| author | Rémi Verschelde | 2017-09-26 08:03:00 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-26 08:03:00 +0200 |
| commit | 777f26fe29718a6609bea84f693ae96d8f22a01c (patch) | |
| tree | 19c12dfbbfc2c1dd7dfc5649b26988ea8b5bcdd0 /editor/scene_tree_editor.cpp | |
| parent | 1da6b4d1d1a2154fba85f5a37f958d333347ab10 (diff) | |
| parent | b622c92fad36ef7c8cfb84f7e0de188557808ee0 (diff) | |
| download | godot-777f26fe29718a6609bea84f693ae96d8f22a01c.tar.gz godot-777f26fe29718a6609bea84f693ae96d8f22a01c.tar.zst godot-777f26fe29718a6609bea84f693ae96d8f22a01c.zip | |
Merge pull request #11597 from djrm/pr_interface_colors
Removed most of the custom colors from the interface.
Diffstat (limited to '')
| -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 cfc563f47..6dcd5e54e 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); |
