|
@@ -328,6 +328,21 @@ Container *InspectorDock::get_addon_area() {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+void InspectorDock::_notification(int p_what) {
|
|
|
+ switch (p_what) {
|
|
|
+ case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
|
|
+ set_theme(editor->get_gui_base()->get_theme());
|
|
|
+ resource_new_button->set_icon(get_icon("New", "EditorIcons"));
|
|
|
+ resource_load_button->set_icon(get_icon("Load", "EditorIcons"));
|
|
|
+ backward_button->set_icon(get_icon("Back", "EditorIcons"));
|
|
|
+ forward_button->set_icon(get_icon("Forward", "EditorIcons"));
|
|
|
+ history_menu->set_icon(get_icon("History", "EditorIcons"));
|
|
|
+ object_menu->set_icon(get_icon("Tools", "EditorIcons"));
|
|
|
+ warning->set_icon(get_icon("NodeWarning", "EditorIcons"));
|
|
|
+ } break;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
void InspectorDock::_bind_methods() {
|
|
|
ClassDB::bind_method("_menu_option", &InspectorDock::_menu_option);
|
|
|
|