Skip to content

Commit 8f5b4cd

Browse files
committed
Style skeleton button on import screen
1 parent 0eadbdb commit 8f5b4cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

editor/icons/SkeletonPreview.svg

Lines changed: 1 addition & 0 deletions
Loading

editor/import/3d/scene_import_settings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ void SceneImportSettingsDialog::_notification(int p_what) {
13291329
light_2_switch->set_button_icon(theme_cache.light_2_icon);
13301330
light_rotate_switch->set_button_icon(theme_cache.rotate_icon);
13311331

1332-
animation_toggle_skeleton_visibility->set_button_icon(get_editor_theme_icon(SNAME("Skeleton3D")));
1332+
animation_toggle_skeleton_visibility->set_button_icon(get_editor_theme_icon(SNAME("SkeletonPreview")));
13331333
} break;
13341334

13351335
case NOTIFICATION_PROCESS: {
@@ -1725,7 +1725,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
17251725
animation_toggle_skeleton_visibility = memnew(Button);
17261726
animation_hbox->add_child(animation_toggle_skeleton_visibility);
17271727
animation_toggle_skeleton_visibility->set_toggle_mode(true);
1728-
animation_toggle_skeleton_visibility->set_flat(true);
1728+
animation_toggle_skeleton_visibility->set_theme_type_variation("FlatButton");
17291729
animation_toggle_skeleton_visibility->set_focus_mode(Control::FOCUS_NONE);
17301730
animation_toggle_skeleton_visibility->set_tooltip_text(TTR("Toggle Animation Skeleton Visibility"));
17311731

0 commit comments

Comments
 (0)