mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 05:00:16 +00:00
Give the contact panel's filter editor some placeholder text
Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
14ec3c86e5
commit
de9a7b1927
1 changed files with 4 additions and 2 deletions
|
@ -62,10 +62,12 @@ pub fn init(cx: &mut MutableAppContext) {
|
|||
impl ContactsPanel {
|
||||
pub fn new(app_state: Arc<AppState>, cx: &mut ViewContext<Self>) -> Self {
|
||||
let user_query_editor = cx.add_view(|cx| {
|
||||
Editor::single_line(
|
||||
let mut editor = Editor::single_line(
|
||||
Some(|theme| theme.contacts_panel.user_query_editor.clone()),
|
||||
cx,
|
||||
)
|
||||
);
|
||||
editor.set_placeholder_text("Filter contacts", cx);
|
||||
editor
|
||||
});
|
||||
|
||||
cx.subscribe(&user_query_editor, |this, _, event, cx| {
|
||||
|
|
Loading…
Reference in a new issue