Skip to content

Commit 8f50628

Browse files
committed
♻️ Disable transparent tool bar for example app.
1 parent 71c3c58 commit 8f50628

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

packages/flutter_box_transform/example/macos/Runner/MainFlutterWindow.swift

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,6 @@ class MainFlutterWindow: NSWindow {
1010

1111
RegisterGeneratedPlugins(registry: flutterViewController)
1212

13-
if #available(macOS 10.13, *) {
14-
// set defult tool bar for better spacing.
15-
self.toolbar = NSToolbar()
16-
self.toolbar?.displayMode = NSToolbar.DisplayMode.iconOnly
17-
// self.toolbar?.isVisible = false
18-
19-
var localStyle = self.styleMask;
20-
localStyle.insert(.fullSizeContentView)
21-
self.styleMask = localStyle;
22-
self.titlebarAppearsTransparent = true
23-
self.titleVisibility = .hidden
24-
self.isOpaque = false
25-
self.isMovable = true
26-
self.setIsZoomed(true)
27-
28-
// Disable full screen button.
29-
// let button = self.standardWindowButton(NSWindow.ButtonType.zoomButton)
30-
// button?.isEnabled = false
31-
32-
}
33-
3413
super.awakeFromNib()
3514
}
3615
}

0 commit comments

Comments
 (0)