diff options
Diffstat (limited to 'editor/editor_toaster.cpp')
-rw-r--r-- | editor/editor_toaster.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/editor_toaster.cpp b/editor/editor_toaster.cpp index f326c9fc37..24227b3a6b 100644 --- a/editor/editor_toaster.cpp +++ b/editor/editor_toaster.cpp @@ -333,13 +333,13 @@ Control *EditorToaster::popup(Control *p_control, Severity p_severity, double p_ panel->set_tooltip(p_tooltip); switch (p_severity) { case SEVERITY_INFO: - panel->add_theme_style_override(SNAME("panel"), info_panel_style_background); + panel->add_theme_style_override("panel", info_panel_style_background); break; case SEVERITY_WARNING: - panel->add_theme_style_override(SNAME("panel"), warning_panel_style_background); + panel->add_theme_style_override("panel", warning_panel_style_background); break; case SEVERITY_ERROR: - panel->add_theme_style_override(SNAME("panel"), error_panel_style_background); + panel->add_theme_style_override("panel", error_panel_style_background); break; default: break; @@ -508,7 +508,7 @@ EditorToaster::EditorToaster() { // Disable notification button. disable_notifications_panel = memnew(PanelContainer); disable_notifications_panel->set_as_top_level(true); - disable_notifications_panel->add_theme_style_override(SNAME("panel"), info_panel_style_background); + disable_notifications_panel->add_theme_style_override("panel", info_panel_style_background); add_child(disable_notifications_panel); disable_notifications_button = memnew(Button); |