Merge pull request #18989 from YeldhamDev/filter_fancy
Small visual changes for some filter bars
This commit is contained in:
commit
11fd889b0e
2 changed files with 5 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
// }
|
Loading…
Reference in a new issue