8000 Merge pull request #84 from ShaneShipston/patch-1 · NativePHP/laravel@1107a8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 1107a8e

Browse files
authored
Merge pull request #84 from ShaneShipston/patch-1
Option to show/hide menu on Windows / Linux
2 parents f6352d7 + 1fbd0ce commit 1107a8e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Windows/Window.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class Window
1313
use HasDimensions;
1414
use HasUrl;
1515

16+
protected bool $autoHideMenuBar = false;
17+
1618
protected bool $fullscreen = false;
1719

1820
protected bool $kiosk = false;
@@ -184,6 +186,13 @@ public function invisibleFrameless(): self
184186
->hasShadow(false);
185187
}
186188

189+
public function hideMenu($autoHideMenuBar = true): static
190+
{
191+
$this->autoHideMenuBar = $autoHideMenuBar;
192+
193+
return $this;
194+
}
195+
187196
public function fullscreen($fullscreen = false): static
188197
{
189198
$this->fullscreen = $fullscreen;
@@ -229,6 +238,7 @@ public function toArray()
229238
'title' => $this->title,
230239
'fullscreen' => $this->fullscreen,
231240
'kiosk' => $this->kiosk,
241+
'autoHideMenuBar' => $this->autoHideMenuBar,
232242
];
233243
}
234244
}

0 commit comments

Comments
 (0)
0