summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel J. Ramirez <djrmuv@gmail.com>2017-12-24 13:08:53 -0600
committerDaniel J. Ramirez <djrmuv@gmail.com>2017-12-24 13:08:53 -0600
commite7b24c648cbfa3da36a4ce086535f94d1b9b86c1 (patch)
treef959c288f1df86a63e2af146e747e1d2f044edb0
parent8b0ad17b760b6cc803edc815fe65f8de1d92bf74 (diff)
Added default close and title color to editor themed graph nodes
-rw-r--r--editor/editor_themes.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp
index cc0b292cc4..5610baa775 100644
--- a/editor/editor_themes.cpp
+++ b/editor/editor_themes.cpp
@@ -972,6 +972,12 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
theme->set_stylebox("commentfocus", "GraphNode", graphsbcommentselected);
theme->set_stylebox("breakpoint", "GraphNode", graphsbbreakpoint);
theme->set_stylebox("position", "GraphNode", graphsbposition);
+
+ Color default_node_color = Color(mv2, mv2, mv2);
+ theme->set_color("title_color", "GraphNode", default_node_color);
+ default_node_color.a = 0.7;
+ theme->set_color("close_color", "GraphNode", default_node_color);
+
theme->set_constant("port_offset", "GraphNode", 14 * EDSCALE);
theme->set_constant("title_h_offset", "GraphNode", -16 * EDSCALE);
theme->set_constant("close_h_offset", "GraphNode", 20 * EDSCALE);