summaryrefslogtreecommitdiffstats
path: root/editor/plugins/control_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-25 17:18:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-25 17:18:29 +0200
commit8ddf73c74dfa6ca51462a4721d77ba84e813b51a (patch)
tree22887982e518ef8753d27933e3b29a8462e52afb /editor/plugins/control_editor_plugin.cpp
parent3e15c8f28597df4354b40ba85056e87cfac56845 (diff)
parent4bd569be95f0e8ba34813b0d8fc53bab1125ccaa (diff)
downloadredot-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/control_editor_plugin.cpp')
-rw-r--r--editor/plugins/control_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/control_editor_plugin.cpp b/editor/plugins/control_editor_plugin.cpp
index 8401f6c0b6..a0539c401d 100644
--- a/editor/plugins/control_editor_plugin.cpp
+++ b/editor/plugins/control_editor_plugin.cpp
@@ -520,7 +520,7 @@ void ControlEditorPopupButton::_notification(int p_what) {
}
ControlEditorPopupButton::ControlEditorPopupButton() {
- set_flat(true);
+ set_theme_type_variation("FlatButton");
set_toggle_mode(true);
set_focus_mode(FOCUS_NONE);
@@ -1000,7 +1000,7 @@ ControlEditorToolbar::ControlEditorToolbar() {
keep_ratio_button->connect("pressed", callable_mp(this, &ControlEditorToolbar::_anchors_to_current_ratio));
anchor_mode_button = memnew(Button);
- anchor_mode_button->set_flat(true);
+ anchor_mode_button->set_theme_type_variation("FlatButton");
anchor_mode_button->set_toggle_mode(true);
anchor_mode_button->set_tooltip_text(TTR("When active, moving Control nodes changes their anchors instead of their offsets."));
add_child(anchor_mode_button);