@@ -1440,8 +1440,8 @@ void AnimationTimelineEdit::_notification(int p_what) {
14401440 switch (p_what) {
14411441 case NOTIFICATION_ENTER_TREE:
14421442 case NOTIFICATION_THEME_CHANGED: {
1443- add_track->set_icon (get_editor_theme_icon (SNAME (" Add" )));
1444- loop->set_icon (get_editor_theme_icon (SNAME (" Loop" )));
1443+ add_track->set_button_icon (get_editor_theme_icon (SNAME (" Add" )));
1444+ loop->set_button_icon (get_editor_theme_icon (SNAME (" Loop" )));
14451445 time_icon->set_texture (get_editor_theme_icon (SNAME (" Time" )));
14461446
14471447 add_track->get_popup ()->clear ();
@@ -1818,15 +1818,15 @@ void AnimationTimelineEdit::update_values() {
18181818
18191819 switch (animation->get_loop_mode ()) {
18201820 case Animation::LOOP_NONE: {
1821- loop->set_icon (get_editor_theme_icon (SNAME (" Loop" )));
1821+ loop->set_button_icon (get_editor_theme_icon (SNAME (" Loop" )));
18221822 loop->set_pressed (false );
18231823 } break ;
18241824 case Animation::LOOP_LINEAR: {
1825- loop->set_icon (get_editor_theme_icon (SNAME (" Loop" )));
1825+ loop->set_button_icon (get_editor_theme_icon (SNAME (" Loop" )));
18261826 loop->set_pressed (true );
18271827 } break ;
18281828 case Animation::LOOP_PINGPONG: {
1829- loop->set_icon (get_editor_theme_icon (SNAME (" PingPongLoop" )));
1829+ loop->set_button_icon (get_editor_theme_icon (SNAME (" PingPongLoop" )));
18301830 loop->set_pressed (true );
18311831 } break ;
18321832 default :
@@ -3313,7 +3313,7 @@ Variant AnimationTrackEdit::get_drag_data(const Point2 &p_point) {
33133313 Button *tb = memnew (Button);
33143314 tb->set_flat (true );
33153315 tb->set_text (path_cache);
3316- tb->set_icon (icon_cache);
3316+ tb->set_button_icon (icon_cache);
33173317 tb->set_auto_translate_mode (AUTO_TRANSLATE_MODE_DISABLED);
33183318 tb->add_theme_constant_override (" icon_max_width" , get_theme_constant (" class_icon_size" , EditorStringName (Editor)));
33193319 set_drag_preview (tb);
@@ -5112,18 +5112,18 @@ void AnimationTrackEditor::_notification(int p_what) {
51125112 }
51135113 case NOTIFICATION_THEME_CHANGED: {
51145114 zoom_icon->set_texture (get_editor_theme_icon (SNAME (" Zoom" )));
5115- bezier_edit_icon->set_icon (get_editor_theme_icon (SNAME (" EditBezier" )));
5116- snap_timeline->set_icon (get_editor_theme_icon (SNAME (" SnapTimeline" )));
5117- snap_keys->set_icon (get_editor_theme_icon (SNAME (" SnapKeys" )));
5118- view_group->set_icon (get_editor_theme_icon (view_group->is_pressed () ? SNAME (" AnimationTrackList" ) : SNAME (" AnimationTrackGroup" )));
5119- selected_filter->set_icon (get_editor_theme_icon (SNAME (" AnimationFilter" )));
5120- imported_anim_warning->set_icon (get_editor_theme_icon (SNAME (" NodeWarning" )));
5121- dummy_player_warning->set_icon (get_editor_theme_icon (SNAME (" NodeWarning" )));
5122- inactive_player_warning->set_icon (get_editor_theme_icon (SNAME (" NodeWarning" )));
5115+ bezier_edit_icon->set_button_icon (get_editor_theme_icon (SNAME (" EditBezier" )));
5116+ snap_timeline->set_button_icon (get_editor_theme_icon (SNAME (" SnapTimeline" )));
5117+ snap_keys->set_button_icon (get_editor_theme_icon (SNAME (" SnapKeys" )));
5118+ view_group->set_button_icon (get_editor_theme_icon (view_group->is_pressed () ? SNAME (" AnimationTrackList" ) : SNAME (" AnimationTrackGroup" )));
5119+ selected_filter->set_button_icon (get_editor_theme_icon (SNAME (" AnimationFilter" )));
5120+ imported_anim_warning->set_button_icon (get_editor_theme_icon (SNAME (" NodeWarning" )));
5121+ dummy_player_warning->set_button_icon (get_editor_theme_icon (SNAME (" NodeWarning" )));
5122+ inactive_player_warning->set_button_icon (get_editor_theme_icon (SNAME (" NodeWarning" )));
51235123 main_panel->add_theme_style_override (SceneStringName (panel), get_theme_stylebox (SceneStringName (panel), SNAME (" Tree" )));
51245124 edit->get_popup ()->set_item_icon (edit->get_popup ()->get_item_index (EDIT_APPLY_RESET), get_editor_theme_icon (SNAME (" Reload" )));
5125- auto_fit->set_icon (get_editor_theme_icon (SNAME (" AnimationAutoFit" )));
5126- auto_fit_bezier->set_icon (get_editor_theme_icon (SNAME (" AnimationAutoFitBezier" )));
5125+ auto_fit->set_button_icon (get_editor_theme_icon (SNAME (" AnimationAutoFit" )));
5126+ auto_fit_bezier->set_button_icon (get_editor_theme_icon (SNAME (" AnimationAutoFitBezier" )));
51275127
51285128 const int timeline_separation = get_theme_constant (SNAME (" timeline_v_separation" ), SNAME (" AnimationTrackEditor" ));
51295129 timeline_vbox->add_theme_constant_override (" separation" , timeline_separation);
@@ -7279,7 +7279,7 @@ void AnimationTrackEditor::_cleanup_animation(Ref<Animation> p_animation) {
72797279
72807280void AnimationTrackEditor::_view_group_toggle () {
72817281 _update_tracks ();
7282- view_group->set_icon (get_editor_theme_icon (view_group->is_pressed () ? SNAME (" AnimationTrackList" ) : SNAME (" AnimationTrackGroup" )));
7282+ view_group->set_button_icon (get_editor_theme_icon (view_group->is_pressed () ? SNAME (" AnimationTrackList" ) : SNAME (" AnimationTrackGroup" )));
72837283 bezier_edit->set_filtered (selected_filter->is_pressed ());
72847284}
72857285
0 commit comments