diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-09-19 18:03:10 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-09-19 22:36:29 +0200 |
commit | 4bd569be95f0e8ba34813b0d8fc53bab1125ccaa (patch) | |
tree | fd74d6aacd1f1fa8d92fa61acd36d96023504579 /editor/plugins/skeleton_3d_editor_plugin.cpp | |
parent | 571cd0eb791b37e9a8adda9f909251138170f6b7 (diff) | |
download | redot-engine-4bd569be95f0e8ba34813b0d8fc53bab1125ccaa.tar.gz |
Replace flat buttons with flat-styled buttons with a visible pressed state
Diffstat (limited to 'editor/plugins/skeleton_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/skeleton_3d_editor_plugin.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/editor/plugins/skeleton_3d_editor_plugin.cpp b/editor/plugins/skeleton_3d_editor_plugin.cpp index 4a44cea5ba..5865c18663 100644 --- a/editor/plugins/skeleton_3d_editor_plugin.cpp +++ b/editor/plugins/skeleton_3d_editor_plugin.cpp @@ -717,6 +717,8 @@ void Skeleton3DEditor::create_editors() { // Create Skeleton Option in Top Menu Bar. skeleton_options = memnew(MenuButton); + skeleton_options->set_flat(false); + skeleton_options->set_theme_type_variation("FlatMenuButton"); topmenu_bar->add_child(skeleton_options); skeleton_options->set_text(TTR("Skeleton3D")); @@ -738,7 +740,7 @@ void Skeleton3DEditor::create_editors() { edit_mode_button = memnew(Button); topmenu_bar->add_child(edit_mode_button); - edit_mode_button->set_flat(true); + edit_mode_button->set_theme_type_variation("FlatButton"); edit_mode_button->set_toggle_mode(true); edit_mode_button->set_focus_mode(FOCUS_NONE); edit_mode_button->set_tooltip_text(TTR("Edit Mode\nShow buttons on joints.")); @@ -758,7 +760,7 @@ void Skeleton3DEditor::create_editors() { animation_hb->hide(); key_loc_button = memnew(Button); - key_loc_button->set_flat(true); + key_loc_button->set_theme_type_variation("FlatButton"); key_loc_button->set_toggle_mode(true); key_loc_button->set_pressed(false); key_loc_button->set_focus_mode(FOCUS_NONE); @@ -766,7 +768,7 @@ void Skeleton3DEditor::create_editors() { animation_hb->add_child(key_loc_button); key_rot_button = memnew(Button); - key_rot_button->set_flat(true); + key_rot_button->set_theme_type_variation("FlatButton"); key_rot_button->set_toggle_mode(true); key_rot_button->set_pressed(true); key_rot_button->set_focus_mode(FOCUS_NONE); @@ -774,7 +776,7 @@ void Skeleton3DEditor::create_editors() { animation_hb->add_child(key_rot_button); key_scale_button = memnew(Button); - key_scale_button->set_flat(true); + key_scale_button->set_theme_type_variation("FlatButton"); key_scale_button->set_toggle_mode(true); key_scale_button->set_pressed(false); key_scale_button->set_focus_mode(FOCUS_NONE); @@ -782,7 +784,7 @@ void Skeleton3DEditor::create_editors() { animation_hb->add_child(key_scale_button); key_insert_button = memnew(Button); - key_insert_button->set_flat(true); + key_insert_button->set_theme_type_variation("FlatButton"); key_insert_button->set_focus_mode(FOCUS_NONE); key_insert_button->connect("pressed", callable_mp(this, &Skeleton3DEditor::insert_keys).bind(false)); key_insert_button->set_tooltip_text(TTR("Insert key of bone poses already exist track.")); @@ -790,7 +792,7 @@ void Skeleton3DEditor::create_editors() { animation_hb->add_child(key_insert_button); key_insert_all_button = memnew(Button); - key_insert_all_button->set_flat(true); + key_insert_all_button->set_theme_type_variation("FlatButton"); key_insert_all_button->set_focus_mode(FOCUS_NONE); key_insert_all_button->connect("pressed", callable_mp(this, &Skeleton3DEditor::insert_keys).bind(true)); key_insert_all_button->set_tooltip_text(TTR("Insert key of all bone poses.")); |