Replace flat buttons with flat-styled buttons with a visible pressed state

This commit is contained in:
Yuri Sizov 2023-09-19 18:03:10 +02:00
parent 571cd0eb79
commit 4bd569be95
40 changed files with 291 additions and 212 deletions

View file

@ -240,7 +240,7 @@ ThemeEditorPreview::ThemeEditorPreview() {
picker_button = memnew(Button);
preview_toolbar->add_child(picker_button);
picker_button->set_flat(true);
picker_button->set_theme_type_variation("FlatButton");
picker_button->set_toggle_mode(true);
picker_button->set_tooltip_text(TTR("Toggle the control picker, allowing to visually select control types for edit."));
picker_button->connect("pressed", callable_mp(this, &ThemeEditorPreview::_picker_button_cbk));