From e7b98119df4a4ddf8476d4b6f255f674c85be12c Mon Sep 17 00:00:00 2001 From: Paolo Perkovic Date: Fri, 2 Feb 2018 17:38:45 +0100 Subject: [PATCH] Fix UX with project settings search functionality --- editor/project_settings_editor.cpp | 2 +- editor/project_settings_editor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index 058f517ae9c..9625bc19c04 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -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")); diff --git a/editor/project_settings_editor.h b/editor/project_settings_editor.h index d6c2c0f5a87..452cf5b060d 100644 --- a/editor/project_settings_editor.h +++ b/editor/project_settings_editor.h @@ -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;