Merge 7903ee12c0 into c423ad1bfc
This commit is contained in:
commit
847df89f71
9 changed files with 288 additions and 83 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue