mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 01:28:12 +08:00
Desktop: Add fullscreen window mode (#3625)
This commit is contained in:
@@ -621,6 +621,13 @@ impl LayoutHolder for MenuBarMessageHandler {
|
||||
.label("Window")
|
||||
.flush(true)
|
||||
.menu_list_children(vec![
|
||||
vec![
|
||||
MenuListEntry::new("Fullscreen")
|
||||
.label("Fullscreen")
|
||||
.icon("FullscreenEnter")
|
||||
.tooltip_shortcut(action_shortcut!(AppWindowMessageDiscriminant::Fullscreen))
|
||||
.on_commit(|_| AppWindowMessage::Fullscreen.into()),
|
||||
],
|
||||
vec![
|
||||
MenuListEntry::new("Properties")
|
||||
.label("Properties")
|
||||
@@ -632,8 +639,6 @@ impl LayoutHolder for MenuBarMessageHandler {
|
||||
.icon(if self.layers_panel_open { "CheckboxChecked" } else { "CheckboxUnchecked" })
|
||||
.tooltip_shortcut(action_shortcut!(PortfolioMessageDiscriminant::ToggleLayersPanelOpen))
|
||||
.on_commit(|_| PortfolioMessage::ToggleLayersPanelOpen.into()),
|
||||
],
|
||||
vec![
|
||||
MenuListEntry::new("Data")
|
||||
.label("Data")
|
||||
.icon(if self.data_panel_open { "CheckboxChecked" } else { "CheckboxUnchecked" })
|
||||
|
||||
Reference in New Issue
Block a user