Update Node dock when theme changes
This commit is contained in:
parent
9db1a963be
commit
7187a82cfe
|
@ -1377,6 +1377,8 @@ void ConnectionsDock::_notification(int p_what) {
|
||||||
slot_menu->set_item_icon(slot_menu->get_item_index(SLOT_MENU_DISCONNECT), get_editor_theme_icon(SNAME("Unlinked")));
|
slot_menu->set_item_icon(slot_menu->get_item_index(SLOT_MENU_DISCONNECT), get_editor_theme_icon(SNAME("Unlinked")));
|
||||||
|
|
||||||
tree->add_theme_constant_override("icon_max_width", get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor)));
|
tree->add_theme_constant_override("icon_max_width", get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor)));
|
||||||
|
|
||||||
|
update_tree();
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
||||||
|
|
|
@ -369,6 +369,7 @@ void GroupsEditor::_notification(int p_what) {
|
||||||
case NOTIFICATION_THEME_CHANGED: {
|
case NOTIFICATION_THEME_CHANGED: {
|
||||||
filter->set_right_icon(get_editor_theme_icon("Search"));
|
filter->set_right_icon(get_editor_theme_icon("Search"));
|
||||||
add->set_icon(get_editor_theme_icon("Add"));
|
add->set_icon(get_editor_theme_icon("Add"));
|
||||||
|
_update_tree();
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||||
if (groups_dirty && is_visible_in_tree()) {
|
if (groups_dirty && is_visible_in_tree()) {
|
||||||
|
|
Loading…
Reference in New Issue