Skip to content

Commit bb812e2

Browse files
authored
Merge pull request #256 from kirilldakhniuk/add/hide-traffic-lights
2 parents 0d48dd9 + aeb47f7 commit bb812e2

File tree

1 file changed

+11
-0
lines changed
  • resources/views/docs/desktop/2/the-basics

1 file changed

+11
-0
lines changed

resources/views/docs/desktop/2/the-basics/windows.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,17 @@ In order to keep the window draggable, you should add an HTML element with the f
469469
</div>
470470
```
471471

472+
### Hidden Traffic Lights (macOS only)
473+
474+
On macOS, you may use the `trafficLightsHidden()` method to hide the window control buttons (red, yellow, green) while keeping the title bar visible.
475+
476+
```php
477+
Window::open()
478+
->trafficLightsHidden();
479+
```
480+
481+
This is useful when you want to create a custom window appearance on macOS while maintaining the title bar for dragging. Unlike `titleBarHidden()` which hides the entire title bar, this method only hides the control buttons.
482+
472483
### Setting webpage features
473484

474485
You may control various web page features by passing an optional `webPreferences` configuration array. This allows you to customize how the Electron window behaves and what features are available to the web content.

0 commit comments

Comments
 (0)