Revert "Add missing SNAME macro optimization to all theme methods call"
This reverts commit a988fad9a0.
As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used
everywhere but only in critical code paths. For theme methods specifically, it
was by design that only getters use `SNAME` and not setters.
This commit is contained in:
parent
0154ce2c8d
commit
fc076ece3d
90 changed files with 1648 additions and 1648 deletions
|
|
@ -176,9 +176,9 @@ EditorZoomWidget::EditorZoomWidget() {
|
|||
zoom_reset = memnew(Button);
|
||||
zoom_reset->set_flat(true);
|
||||
add_child(zoom_reset);
|
||||
zoom_reset->add_theme_constant_override(SNAME("outline_size"), 1);
|
||||
zoom_reset->add_theme_color_override(SNAME("font_outline_color"), Color(0, 0, 0));
|
||||
zoom_reset->add_theme_color_override(SNAME("font_color"), Color(1, 1, 1));
|
||||
zoom_reset->add_theme_constant_override("outline_size", 1);
|
||||
zoom_reset->add_theme_color_override("font_outline_color", Color(0, 0, 0));
|
||||
zoom_reset->add_theme_color_override("font_color", Color(1, 1, 1));
|
||||
zoom_reset->connect("pressed", callable_mp(this, &EditorZoomWidget::_button_zoom_reset));
|
||||
zoom_reset->set_shortcut(ED_SHORTCUT("canvas_item_editor/zoom_reset", TTR("Zoom Reset"), KeyModifierMask::CMD | Key::KEY_0));
|
||||
zoom_reset->set_shortcut_context(this);
|
||||
|
|
@ -197,5 +197,5 @@ EditorZoomWidget::EditorZoomWidget() {
|
|||
|
||||
_update_zoom_label();
|
||||
|
||||
add_theme_constant_override(SNAME("separation"), Math::round(-8 * EDSCALE));
|
||||
add_theme_constant_override("separation", Math::round(-8 * EDSCALE));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue