1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Rename internal Button icon to button_icon to match exposed methods

This commit is contained in:
Aaron Franke
2024-10-09 15:21:47 -07:00
parent 0debc73dc6
commit 562c666e3d
129 changed files with 718 additions and 718 deletions

View File

@@ -48,10 +48,10 @@
void SceneCreateDialog::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_THEME_CHANGED: {
select_node_button->set_icon(get_editor_theme_icon(SNAME("ClassList")));
node_type_2d->set_icon(get_editor_theme_icon(SNAME("Node2D")));
node_type_3d->set_icon(get_editor_theme_icon(SNAME("Node3D")));
node_type_gui->set_icon(get_editor_theme_icon(SNAME("Control")));
select_node_button->set_button_icon(get_editor_theme_icon(SNAME("ClassList")));
node_type_2d->set_button_icon(get_editor_theme_icon(SNAME("Node2D")));
node_type_3d->set_button_icon(get_editor_theme_icon(SNAME("Node3D")));
node_type_gui->set_button_icon(get_editor_theme_icon(SNAME("Control")));
node_type_other->add_theme_icon_override(SNAME("icon"), get_editor_theme_icon(SNAME("Node")));
} break;
@@ -121,9 +121,9 @@ void SceneCreateDialog::update_dialog() {
const StringName root_type_name = StringName(other_type_display->get_text());
if (has_theme_icon(root_type_name, EditorStringName(EditorIcons))) {
node_type_other->set_icon(get_editor_theme_icon(root_type_name));
node_type_other->set_button_icon(get_editor_theme_icon(root_type_name));
} else {
node_type_other->set_icon(nullptr);
node_type_other->set_button_icon(nullptr);
}
root_name = root_name_edit->get_text().strip_edges();