feat: add customed titlebar

This commit is contained in:
Kingtous
2022-05-29 19:55:50 +08:00
parent 708801bdf6
commit 7b3bbdf964
9 changed files with 296 additions and 170 deletions

View File

@@ -1,7 +1,8 @@
import Cocoa
import FlutterMacOS
import bitsdojo_window_macos
class MainFlutterWindow: NSWindow {
class MainFlutterWindow: BitsdojoWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController.init()
let windowFrame = self.frame
@@ -12,4 +13,8 @@ class MainFlutterWindow: NSWindow {
super.awakeFromNib()
}
override func bitsdojo_window_configure() -> UInt {
return BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP
}
}