Add missing SNAME macro optimization to all theme methods call
This commit is contained in:
@ -85,7 +85,7 @@ private:
|
||||
toggle_button->set_text(itos(message_count));
|
||||
toggle_button->set_tooltip(TTR(p_tooltip));
|
||||
// Don't tint the icon even when in "pressed" state.
|
||||
toggle_button->add_theme_color_override("icon_color_pressed", Color(1, 1, 1, 1));
|
||||
toggle_button->add_theme_color_override(SNAME("icon_color_pressed"), Color(1, 1, 1, 1));
|
||||
toggle_button->set_focus_mode(FOCUS_NONE);
|
||||
// When toggled call the callback and pass the MessageType this button is for.
|
||||
toggle_button->connect("toggled", p_toggled_callback, varray(type));
|
||||
|
||||
Reference in New Issue
Block a user