This commit is contained in:
Bryan Hyland 2026-04-18 11:18:03 -07:00 committed by GitHub
commit 847df89f71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 288 additions and 83 deletions

View file

@ -160,23 +160,26 @@ pub fn menu_bar<'a>(config: &Config, key_binds: &HashMap<KeyBind, Action>) -> El
menu::items(
key_binds,
vec![
menu::Item::Button(
menu::Item::button(
"New window",
Some(cosmic::widget::icon::from_name("screenshot-window-symbolic").into()),
Action::WindowNew,
),
menu::Item::Divider,
menu::Item::Folder(
menu::Item::divider(),
menu::Item::folder(
"View",
vec![menu::Item::CheckBox(
vec![menu::Item::checkbox(
"Hide content",
Some(cosmic::widget::icon::from_name("view-conceal-symbolic").into()),
config.hide_content,
Action::ToggleHideContent,
)],
),
menu::Item::Divider,
menu::Item::Button(
)
.width(280)
.min_width(200)
.max_width(300),
menu::Item::divider(),
menu::Item::button(
"Quit",
Some(cosmic::widget::icon::from_name("window-close-symbolic").into()),
Action::WindowClose,