You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Replace flat buttons with flat-styled buttons with a visible pressed state
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user