diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-06-06 21:34:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-06 21:34:37 +0300 |
commit | cb8244273b0038595d8be6e0d56a430feac217f0 (patch) | |
tree | 4b937993d1282cc97bd7af788b5499a74f0eeba3 | |
parent | aa251c310a5b9cab45fa6c27ecf1694da42b00ea (diff) | |
parent | e02e50505c040f9003874ad36e01a3f4ff2ab10a (diff) |
Merge pull request #49365 from Chaosus/fix_visual_scripts_header_color
-rw-r--r-- | modules/visual_script/visual_script_editor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index 9de316d4d2..98325bcdf1 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -739,6 +739,7 @@ void VisualScriptEditor::_update_graph(int p_only_id) { } Color c = sbf->get_border_color(); + c = ((c.r + c.g + c.b) / 3) < 0.7 ? Color(1.0, 1.0, 1.0, 0.85) : Color(0.0, 0.0, 0.0, 0.85); Color ic = c; gnode->add_theme_color_override("title_color", c); c.a = 1; |