summaryrefslogtreecommitdiff
path: root/editor/editor_inspector.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-07 11:02:59 +0200
committerGitHub <noreply@github.com>2018-10-07 11:02:59 +0200
commiteae742312f757ceb8b10ef3d343733e764a9c36a (patch)
tree24d46cb2aeadc53a74741e15b77cb7860ba8917e /editor/editor_inspector.cpp
parent22181d0a3f26422b6f39fbd7365592683da4601a (diff)
parentcd05ca42479fa9061b872cb7e700bd001ce4dd98 (diff)
Merge pull request #22770 from Chaosus/fix_inspector_theme
Fix inspector color when theme changed
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r--editor/editor_inspector.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index c6258c8493..a90f15004a 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -2139,6 +2139,13 @@ void EditorInspector::_notification(int p_what) {
}
if (p_what == EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED) {
+
+ if (use_sub_inspector_bg) {
+ add_style_override("bg", get_stylebox("sub_inspector_bg", "Editor"));
+ } else if (is_inside_tree()) {
+ add_style_override("bg", get_stylebox("bg", "Tree"));
+ }
+
update_tree();
}
}