Fix UX with project settings search functionality

(cherry picked from commit e7b98119df)
This commit is contained in:
Paolo Perkovic 2018-02-02 17:38:45 +01:00 committed by Hein-Pieter van Braam
parent 9173819b71
commit 79b931d093
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); hbc->set_h_size_flags(Control::SIZE_EXPAND_FILL);
props_base->add_child(hbc); props_base->add_child(hbc);
search_button = memnew(ToolButton); search_button = memnew(Button);
search_button->set_toggle_mode(true); search_button->set_toggle_mode(true);
search_button->set_pressed(false); search_button->set_pressed(false);
search_button->set_text(TTR("Search")); search_button->set_text(TTR("Search"));

View File

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