Skip to content

Commit 42ce4e9

Browse files
committed
Merge branch 'main' of github.com:NativePHP/laravel
2 parents da62332 + f9accdf commit 42ce4e9

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

src/Commands/MigrateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Native\Laravel\Commands;
44

55
use Illuminate\Contracts\Events\Dispatcher;
6+
use Illuminate\Database\Console\Migrations\MigrateCommand as BaseMigrateCommand;
67
use Illuminate\Database\Migrations\Migrator;
78
use Native\Laravel\NativeServiceProvider;
8-
use Illuminate\Database\Console\Migrations\MigrateCommand as BaseMigrateCommand;
99

1010
class MigrateCommand extends BaseMigrateCommand
1111
{

src/Windows/Window.php

+20
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class Window
1313
use HasDimensions;
1414
use HasUrl;
1515

16+
protected bool $fullscreen = false;
17+
18+
protected bool $kiosk = false;
19+
1620
protected $rememberState = false;
1721

1822
protected bool $alwaysOnTop = false;
@@ -180,6 +184,20 @@ public function invisibleFrameless(): self
180184
->hasShadow(false);
181185
}
182186

187+
public function fullscreen($fullscreen = false): static
188+
{
189+
$this->fullscreen = $fullscreen;
190+
191+
return $this;
192+
}
193+
194+
public function kiosk($kiosk = false): static
195+
{
196+
$this->kiosk = $kiosk;
197+
198+
return $this;
199+
}
200+
183201
public function toArray()
184202
{
185203
return [
@@ -209,6 +227,8 @@ public function toArray()
209227
'maximizable' => $this->maximizable,
210228
'closable' => $this->closable,
211229
'title' => $this->title,
230+
'fullscreen' => $this->fullscreen,
231+
'kiosk' => $this->kiosk,
212232
];
213233
}
214234
}

src/Windows/WindowManager.php

+7
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,11 @@ public function alwaysOnTop($alwaysOnTop = true, $id = null): void
5757
'alwaysOnTop' => $alwaysOnTop,
5858
]);
5959
}
60+
61+
public function maximize($id = null): void
62+
{
63+
$this->client->post('window/maximize', [
64+
'id' => $id ?? $this->detectId(),
65+
]);
66+
}
6067
}

0 commit comments

Comments
 (0)