Refine project panel, list
This commit is contained in:
parent
b6a9c58994
commit
0d8c743dfe
7 changed files with 199 additions and 185 deletions
|
@ -14,9 +14,9 @@ impl<S: 'static + Send + Sync + Clone> ContextMenuItem<S> {
|
|||
fn to_list_item(self) -> ListItem<S> {
|
||||
match self {
|
||||
ContextMenuItem::Header(label) => ListSubHeader::new(label).into(),
|
||||
ContextMenuItem::Entry(label) => {
|
||||
ListEntry::new(label).variant(ListItemVariant::Inset).into()
|
||||
}
|
||||
ContextMenuItem::Entry(label) => ListEntry::new(label)
|
||||
.set_variant(ListItemVariant::Inset)
|
||||
.into(),
|
||||
ContextMenuItem::Separator => ListSeparator::new().into(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue