Skip to content

Commit

Permalink
Merge pull request #84 from ShaneShipston/patch-1
Browse files Browse the repository at this point in the history
Option to show/hide menu on Windows / Linux
  • Loading branch information
mpociot authored Jul 29, 2023
2 parents f6352d7 + 1fbd0ce commit 1107a8e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Windows/Window.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Window
use HasDimensions;
use HasUrl;

protected bool $autoHideMenuBar = false;

protected bool $fullscreen = false;

protected bool $kiosk = false;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -229,6 +238,7 @@ public function toArray()
'title' => $this->title,
'fullscreen' => $this->fullscreen,
'kiosk' => $this->kiosk,
'autoHideMenuBar' => $this->autoHideMenuBar,
];
}
}

0 comments on commit 1107a8e

Please sign in to comment.