Merge pull request #16328 from bcr3ative/issue_16278

Fix UX with project settings search functionality
This commit is contained in:
Rémi Verschelde 2018-02-12 07:59:27 +01:00 committed by GitHub
commit 5b58040d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1595,7 +1595,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
hbc->set_h_size_flags(Control::SIZE_EXPAND_FILL);
props_base->add_child(hbc);
search_button = memnew(ToolButton);
search_button = memnew(Button);
search_button->set_toggle_mode(true);
search_button->set_pressed(false);
search_button->set_text(TTR("Search"));

View File

@ -67,7 +67,7 @@ class ProjectSettingsEditor : public AcceptDialog {
SectionedPropertyEditor *globals_editor;
HBoxContainer *search_bar;
ToolButton *search_button;
Button *search_button;
LineEdit *search_box;
ToolButton *clear_button;