From 1fbd0ceeb0b7e3c34e2142aa6e5d07fdf5fc6f0d Mon Sep 17 00:00:00 2001 From: Shane Shipston Date: Sat, 29 Jul 2023 13:39:39 -0400 Subject: [PATCH] Option to show/hide menu on Windows / Linux --- src/Windows/Window.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Windows/Window.php b/src/Windows/Window.php index 28047fd..fc57058 100644 --- a/src/Windows/Window.php +++ b/src/Windows/Window.php @@ -13,6 +13,8 @@ class Window use HasDimensions; use HasUrl; + protected bool $autoHideMenuBar = false; + protected bool $fullscreen = false; protected bool $kiosk = false; @@ -184,6 +186,13 @@ public function invisibleFrameless(): self ->hasShadow(false); } + public function hideMenu($autoHideMenuBar = true): static + { + $this->autoHideMenuBar = $autoHideMenuBar; + + return $this; + } + public function fullscreen($fullscreen = false): static { $this->fullscreen = $fullscreen; @@ -229,6 +238,7 @@ public function toArray() 'title' => $this->title, 'fullscreen' => $this->fullscreen, 'kiosk' => $this->kiosk, + 'autoHideMenuBar' => $this->autoHideMenuBar, ]; } }