Add desktop context menu items, part of #547

This commit is contained in:
Jeremy Soller 2024-10-03 15:41:27 -06:00
parent 7f60a0c710
commit afa7c30857
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
3 changed files with 39 additions and 0 deletions

View file

@ -168,6 +168,22 @@ pub fn context_menu<'a>(
children.push(menu_item(fl!("select-all"), Action::SelectAll).into());
}
children.push(menu_item(fl!("paste"), Action::Paste).into());
//TODO: only show if cosmic-settings is found?
if matches!(tab.mode, tab::Mode::Desktop) {
children.push(divider::horizontal::light().into());
children.push(
menu_item(fl!("change-wallpaper"), Action::CosmicSettingsWallpaper).into(),
);
children.push(
menu_item(fl!("desktop-appearance"), Action::CosmicSettingsAppearance)
.into(),
);
children.push(
menu_item(fl!("display-settings"), Action::CosmicSettingsDisplays).into(),
);
}
children.push(divider::horizontal::light().into());
// TODO: Nested menu
children.push(sort_item(fl!("sort-by-name"), HeadingOptions::Name));