Fix inspector color when theme changed

This commit is contained in:
Chaosus
2018-10-05 21:37:26 +03:00
parent f5a77f7bdd
commit cd05ca4247
3 changed files with 23 additions and 0 deletions

View File

@ -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();
}
}