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_state_machine_editor.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_state_machine_editor.cpp')
-rw-r--r-- | editor/plugins/animation_state_machine_editor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editor/plugins/animation_state_machine_editor.cpp b/editor/plugins/animation_state_machine_editor.cpp index 8a1c4ec61e..998276329b 100644 --- a/editor/plugins/animation_state_machine_editor.cpp +++ b/editor/plugins/animation_state_machine_editor.cpp @@ -1676,7 +1676,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() { bg.instantiate(); tool_select = memnew(Button); - tool_select->set_flat(true); + tool_select->set_theme_type_variation("FlatButton"); top_hb->add_child(tool_select); tool_select->set_toggle_mode(true); tool_select->set_button_group(bg); @@ -1685,7 +1685,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() { tool_select->connect("pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_update_mode), CONNECT_DEFERRED); tool_create = memnew(Button); - tool_create->set_flat(true); + tool_create->set_theme_type_variation("FlatButton"); top_hb->add_child(tool_create); tool_create->set_toggle_mode(true); tool_create->set_button_group(bg); @@ -1693,7 +1693,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() { tool_create->connect("pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_update_mode), CONNECT_DEFERRED); tool_connect = memnew(Button); - tool_connect->set_flat(true); + tool_connect->set_theme_type_variation("FlatButton"); top_hb->add_child(tool_connect); tool_connect->set_toggle_mode(true); tool_connect->set_button_group(bg); @@ -1706,7 +1706,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() { selection_tools_hb->add_child(memnew(VSeparator)); tool_erase = memnew(Button); - tool_erase->set_flat(true); + tool_erase->set_theme_type_variation("FlatButton"); tool_erase->set_tooltip_text(TTR("Remove selected node or transition.")); tool_erase->connect("pressed", callable_mp(this, &AnimationNodeStateMachineEditor::_erase_selected).bind(false)); tool_erase->set_disabled(true); @@ -1721,7 +1721,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() { transition_tools_hb->add_child(switch_mode); auto_advance = memnew(Button); - auto_advance->set_flat(true); + auto_advance->set_theme_type_variation("FlatButton"); auto_advance->set_tooltip_text(TTR("New Transitions Should Auto Advance")); auto_advance->set_toggle_mode(true); auto_advance->set_pressed(true); |