diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-18 12:46:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 12:46:48 +0200 |
commit | 11fd889b0eca1c8390749015bc08c4e805b4ae8c (patch) | |
tree | 858d46f3e4ce0fc18630d88d5dcef9cb075db49f | |
parent | 942e0c483247af1e84b7992be48f8ef6317d45c6 (diff) | |
parent | 03a6b0d926ca42ba12743211341182469754fe57 (diff) |
Merge pull request #18989 from YeldhamDev/filter_fancy
Small visual changes for some filter bars
-rw-r--r-- | editor/groups_editor.cpp | 3 | ||||
-rw-r--r-- | editor/inspector_dock.cpp | 11 |
2 files changed, 5 insertions, 9 deletions
diff --git a/editor/groups_editor.cpp b/editor/groups_editor.cpp index 8443311a54..e42f9780a6 100644 --- a/editor/groups_editor.cpp +++ b/editor/groups_editor.cpp @@ -286,6 +286,9 @@ void GroupDialog::_notification(int p_what) { case NOTIFICATION_ENTER_TREE: { add_button->set_icon(get_icon("Forward", "EditorIcons")); remove_button->set_icon(get_icon("Back", "EditorIcons")); + + add_filter->add_icon_override("right_icon", get_icon("Search", "EditorIcons")); + remove_filter->add_icon_override("right_icon", get_icon("Search", "EditorIcons")); } break; } } diff --git a/editor/inspector_dock.cpp b/editor/inspector_dock.cpp index 1967aac507..4159a3658e 100644 --- a/editor/inspector_dock.cpp +++ b/editor/inspector_dock.cpp @@ -523,6 +523,8 @@ InspectorDock::InspectorDock(EditorNode *p_editor, EditorData &p_editor_data) { search = memnew(LineEdit); search->set_h_size_flags(Control::SIZE_EXPAND_FILL); + search->set_placeholder(TTR("Filter properties")); + search->add_icon_override("right_icon", get_icon("Search", "EditorIcons")); add_child(search); warning = memnew(Button); @@ -560,12 +562,3 @@ InspectorDock::InspectorDock(EditorNode *p_editor, EditorData &p_editor_data) { InspectorDock::~InspectorDock() { } - -// void InspectorDock::_clear_search_box() { - -// if (search_box->get_text() == "") -// return; - -// search_box->clear(); -// inspector->update_tree(); -// }
\ No newline at end of file |