Replace flat buttons with flat-styled buttons with a visible pressed state
This commit is contained in:
parent
571cd0eb79
commit
4bd569be95
40 changed files with 291 additions and 212 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue