Skip to content

Commit 1e2ea16

Browse files
committed
Add resizable setting
1 parent bdef6a9 commit 1e2ea16

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/MenuBar/MenuBar.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class MenuBar
2222

2323
protected string $tooltip = '';
2424

25+
protected bool $resizable = true;
26+
2527
protected bool $onlyShowContextMenu = false;
2628

2729
protected ?Menu $contextMenu = null;
@@ -79,6 +81,13 @@ public function tooltip(string $tooltip = ''): self
7981
return $this;
8082
}
8183

84+
public function resizable(bool $resizable = true): static
85+
{
86+
$this->resizable = $resizable;
87+
88+
return $this;
89+
}
90+
8291
public function alwaysOnTop($alwaysOnTop = true): self
8392
{
8493
$this->alwaysOnTop = $alwaysOnTop;
@@ -103,6 +112,7 @@ public function toArray(): array
103112
'y' => $this->y,
104113
'label' => $this->label,
105114
'tooltip' => $this->tooltip,
115+
'resizable' => $this->resizable,
106116
'width' => $this->width,
107117
'height' => $this->height,
108118
'vibrancy' => $this->vibrancy,

0 commit comments

Comments
 (0)