mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
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
|
@ -210,7 +210,7 @@ EditorHelpSearch::EditorHelpSearch() {
|
|||
hbox->add_child(search_box);
|
||||
|
||||
case_sensitive_button = memnew(Button);
|
||||
case_sensitive_button->set_flat(true);
|
||||
case_sensitive_button->set_theme_type_variation("FlatButton");
|
||||
case_sensitive_button->set_tooltip_text(TTR("Case Sensitive"));
|
||||
case_sensitive_button->connect("pressed", callable_mp(this, &EditorHelpSearch::_update_results));
|
||||
case_sensitive_button->set_toggle_mode(true);
|
||||
|
@ -218,7 +218,7 @@ EditorHelpSearch::EditorHelpSearch() {
|
|||
hbox->add_child(case_sensitive_button);
|
||||
|
||||
hierarchy_button = memnew(Button);
|
||||
hierarchy_button->set_flat(true);
|
||||
hierarchy_button->set_theme_type_variation("FlatButton");
|
||||
hierarchy_button->set_tooltip_text(TTR("Show Hierarchy"));
|
||||
hierarchy_button->connect("pressed", callable_mp(this, &EditorHelpSearch::_update_results));
|
||||
hierarchy_button->set_toggle_mode(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue