Implement history, show operations, implement trash

This commit is contained in:
Jeremy Soller 2024-01-30 10:47:41 -07:00
parent 004fd617ea
commit 12a2a39a9f
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
6 changed files with 344 additions and 119 deletions

View file

@ -13,7 +13,7 @@ use cosmic::{
};
use std::collections::HashMap;
use crate::{fl, KeyBind, tab, Action, ContextPage, Location, Message, Tab};
use crate::{fl, tab, Action, ContextPage, KeyBind, Location, Message, Tab};
macro_rules! menu_button {
($($x:expr),+ $(,)?) => (
@ -144,19 +144,10 @@ pub fn menu_bar<'a>(key_binds: &HashMap<KeyBind, Action>) -> Element<'a, Message
MenuTree::with_children(
menu_root(fl!("view")),
vec![
menu_item(
fl!("grid-view"),
Action::TabViewGrid
),
menu_item(
fl!("list-view"),
Action::TabViewList
),
menu_item(fl!("grid-view"), Action::TabViewGrid),
menu_item(fl!("list-view"), Action::TabViewList),
MenuTree::new(horizontal_rule(1)),
menu_item(
fl!("menu-settings"),
Action::Settings,
),
menu_item(fl!("menu-settings"), Action::Settings),
],
),
])