Partial trash implementation
This commit is contained in:
parent
174fc53e45
commit
1ba5be1116
6 changed files with 228 additions and 87 deletions
|
|
@ -33,6 +33,7 @@ pub fn context_menu<'a>(entity: segmented_button::Entity) -> Element<'a, Message
|
|||
menu_button!(widget::text(label)).on_press(Message::TabContextAction(entity, action))
|
||||
};
|
||||
|
||||
//TODO: change items based on selection
|
||||
widget::container(column!(
|
||||
menu_action(fl!("new-file"), Action::NewFile),
|
||||
menu_action(fl!("new-folder"), Action::NewFolder),
|
||||
|
|
@ -41,6 +42,8 @@ pub fn context_menu<'a>(entity: segmented_button::Entity) -> Element<'a, Message
|
|||
menu_action(fl!("paste"), Action::Paste),
|
||||
menu_action(fl!("select-all"), Action::SelectAll),
|
||||
horizontal_rule(1),
|
||||
menu_action(fl!("move-to-trash"), Action::MoveToTrash),
|
||||
horizontal_rule(1),
|
||||
menu_action(fl!("properties"), Action::Properties),
|
||||
))
|
||||
.padding(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue