Skip to content

Commit

Permalink
feat(macOS): Auto hide toolbar on fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
edeuss authored Nov 2, 2024
1 parent 8c3acfc commit 85edf4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/window_manager/macos/Classes/WindowManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,10 @@ public class WindowManager: NSObject, NSWindowDelegate {
}

// NSWindowDelegate

public func window(_ window: NSWindow, willUseFullScreenPresentationOptions proposedOptions: NSApplication.PresentationOptions = []) -> NSApplication.PresentationOptions {
return [.autoHideToolbar, .autoHideMenuBar, .fullScreen]
}

public func windowShouldClose(_ sender: NSWindow) -> Bool {
_emitEvent("close")
Expand Down

0 comments on commit 85edf4d

Please sign in to comment.