Fix inspector color when theme changed
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user