@@ -17,6 +17,8 @@ class Window
17
17
18
18
protected bool $ alwaysOnTop = false ;
19
19
20
+ protected bool $ showDevTools = false ;
21
+
20
22
protected bool $ resizable = true ;
21
23
22
24
protected bool $ movable = true ;
@@ -46,6 +48,7 @@ public function __construct(string $id)
46
48
$ this ->id = $ id ;
47
49
$ this ->title = config ('app.name ' );
48
50
$ this ->url = url ('/ ' );
51
+ $ this ->showDevTools = config ('app.debug ' );
49
52
}
50
53
51
54
public function id (string $ id = 'main ' ): self
@@ -126,6 +129,13 @@ public function alwaysOnTop($alwaysOnTop = true): self
126
129
return $ this ;
127
130
}
128
131
132
+ public function showDevTools ($ showDevTools = true ): self
133
+ {
134
+ $ this ->showDevTools = $ showDevTools ;
135
+
136
+ return $ this ;
137
+ }
138
+
129
139
public function resizable ($ resizable = true ): static
130
140
{
131
141
$ this ->resizable = $ resizable ;
@@ -188,6 +198,7 @@ public function toArray()
188
198
'hasShadow ' => $ this ->hasShadow ,
189
199
'frame ' => $ this ->frame ,
190
200
'titleBarStyle ' => $ this ->titleBarStyle ,
201
+ 'showDevTools ' => $ this ->showDevTools ,
191
202
'vibrancy ' => $ this ->vibrancy ,
192
203
'transparency ' => $ this ->transparent ,
193
204
'backgroundColor ' => $ this ->backgroundColor ,
0 commit comments