summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-30 14:35:13 +0200
committerGitHub <noreply@github.com>2019-08-30 14:35:13 +0200
commit3db1d400458853bfa33c4605c819d368c11e4a57 (patch)
tree36d2360a175e1dd1d00f0af3e7f70929a8978458
parent2e6aa062700610f197ab8e5fe6bcc83e60af00f1 (diff)
parent227b1c32bc5b24ed85cf33b051ae63003c34cff8 (diff)
Merge pull request #31790 from Chaosus/fix_graph_light_theme
Fix editor's GraphEdit lines color on light theme
-rw-r--r--editor/editor_themes.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp
index 8134fac21a..c15d24719f 100644
--- a/editor/editor_themes.cpp
+++ b/editor/editor_themes.cpp
@@ -995,8 +995,13 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
// GraphEdit
theme->set_stylebox("bg", "GraphEdit", style_tree_bg);
- theme->set_color("grid_major", "GraphEdit", Color(1.0, 1.0, 1.0, 0.15));
- theme->set_color("grid_minor", "GraphEdit", Color(1.0, 1.0, 1.0, 0.07));
+ if (dark_theme) {
+ theme->set_color("grid_major", "GraphEdit", Color(1.0, 1.0, 1.0, 0.15));
+ theme->set_color("grid_minor", "GraphEdit", Color(1.0, 1.0, 1.0, 0.07));
+ } else {
+ theme->set_color("grid_major", "GraphEdit", Color(0.0, 0.0, 0.0, 0.15));
+ theme->set_color("grid_minor", "GraphEdit", Color(0.0, 0.0, 0.0, 0.07));
+ }
theme->set_color("activity", "GraphEdit", accent_color);
theme->set_icon("minus", "GraphEdit", theme->get_icon("ZoomLess", "EditorIcons"));
theme->set_icon("more", "GraphEdit", theme->get_icon("ZoomMore", "EditorIcons"));