diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-25 17:18:29 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-25 17:18:29 +0200 |
commit | 8ddf73c74dfa6ca51462a4721d77ba84e813b51a (patch) | |
tree | 22887982e518ef8753d27933e3b29a8462e52afb /editor/plugins/animation_player_editor_plugin.cpp | |
parent | 3e15c8f28597df4354b40ba85056e87cfac56845 (diff) | |
parent | 4bd569be95f0e8ba34813b0d8fc53bab1125ccaa (diff) | |
download | redot-engine-8ddf73c74dfa6ca51462a4721d77ba84e813b51a.tar.gz |
Merge pull request #81939 from YuriSizov/gui-flat-and-depressed
Replace flat buttons with flat-styled buttons with a visible pressed state
Diffstat (limited to 'editor/plugins/animation_player_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/animation_player_editor_plugin.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/editor/plugins/animation_player_editor_plugin.cpp b/editor/plugins/animation_player_editor_plugin.cpp index 05e189290d..51d195e0e1 100644 --- a/editor/plugins/animation_player_editor_plugin.cpp +++ b/editor/plugins/animation_player_editor_plugin.cpp @@ -1682,27 +1682,27 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug add_child(hb); play_bw_from = memnew(Button); - play_bw_from->set_flat(true); + play_bw_from->set_theme_type_variation("FlatButton"); play_bw_from->set_tooltip_text(TTR("Play selected animation backwards from current pos. (A)")); hb->add_child(play_bw_from); play_bw = memnew(Button); - play_bw->set_flat(true); + play_bw->set_theme_type_variation("FlatButton"); play_bw->set_tooltip_text(TTR("Play selected animation backwards from end. (Shift+A)")); hb->add_child(play_bw); stop = memnew(Button); - stop->set_flat(true); + stop->set_theme_type_variation("FlatButton"); hb->add_child(stop); stop->set_tooltip_text(TTR("Pause/stop animation playback. (S)")); play = memnew(Button); - play->set_flat(true); + play->set_theme_type_variation("FlatButton"); play->set_tooltip_text(TTR("Play selected animation from start. (Shift+D)")); hb->add_child(play); play_from = memnew(Button); - play_from->set_flat(true); + play_from->set_theme_type_variation("FlatButton"); play_from->set_tooltip_text(TTR("Play selected animation from current pos. (D)")); hb->add_child(play_from); @@ -1753,7 +1753,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug animation->set_auto_translate(false); autoplay = memnew(Button); - autoplay->set_flat(true); + autoplay->set_theme_type_variation("FlatButton"); hb->add_child(autoplay); autoplay->set_tooltip_text(TTR("Autoplay on Load")); @@ -1766,7 +1766,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug hb->add_child(memnew(VSeparator)); onion_toggle = memnew(Button); - onion_toggle->set_flat(true); + onion_toggle->set_theme_type_variation("FlatButton"); onion_toggle->set_toggle_mode(true); onion_toggle->set_tooltip_text(TTR("Enable Onion Skinning")); onion_toggle->connect("pressed", callable_mp(this, &AnimationPlayerEditor::_onion_skinning_menu).bind(ONION_SKINNING_ENABLE)); @@ -1804,7 +1804,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug hb->add_child(memnew(VSeparator)); pin = memnew(Button); - pin->set_flat(true); + pin->set_theme_type_variation("FlatButton"); pin->set_toggle_mode(true); pin->set_tooltip_text(TTR("Pin AnimationPlayer")); hb->add_child(pin); |