Rename Selector -> Picker in theme
This commit is contained in:
parent
79fad42424
commit
a60c75e343
18 changed files with 32 additions and 32 deletions
|
@ -57,17 +57,17 @@ impl<D: PickerDelegate> View for Picker<D> {
|
|||
.with_child(
|
||||
ChildView::new(&self.query_editor)
|
||||
.contained()
|
||||
.with_style(settings.theme.selector.input_editor.container)
|
||||
.with_style(settings.theme.picker.input_editor.container)
|
||||
.boxed(),
|
||||
)
|
||||
.with_child(
|
||||
if match_count == 0 {
|
||||
Label::new(
|
||||
"No matches".into(),
|
||||
settings.theme.selector.empty.label.clone(),
|
||||
settings.theme.picker.empty.label.clone(),
|
||||
)
|
||||
.contained()
|
||||
.with_style(settings.theme.selector.empty.container)
|
||||
.with_style(settings.theme.picker.empty.container)
|
||||
} else {
|
||||
UniformList::new(
|
||||
self.list_state.clone(),
|
||||
|
@ -95,7 +95,7 @@ impl<D: PickerDelegate> View for Picker<D> {
|
|||
.boxed(),
|
||||
)
|
||||
.contained()
|
||||
.with_style(settings.theme.selector.container)
|
||||
.with_style(settings.theme.picker.container)
|
||||
.constrained()
|
||||
.with_max_width(self.max_size.x())
|
||||
.with_max_height(self.max_size.y())
|
||||
|
@ -126,7 +126,7 @@ impl<D: PickerDelegate> Picker<D> {
|
|||
|
||||
pub fn new(delegate: WeakViewHandle<D>, cx: &mut ViewContext<Self>) -> Self {
|
||||
let query_editor = cx.add_view(|cx| {
|
||||
Editor::single_line(Some(|theme| theme.selector.input_editor.clone()), cx)
|
||||
Editor::single_line(Some(|theme| theme.picker.input_editor.clone()), cx)
|
||||
});
|
||||
cx.subscribe(&query_editor, Self::on_query_editor_event)
|
||||
.detach();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue