mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-17 23:09:36 +00:00
非移动端修改为左侧导航
This commit is contained in:
parent
87d15c71d1
commit
0b71777b41
5 changed files with 213 additions and 73 deletions
|
|
@ -10,4 +10,14 @@ class AppDelegate: FlutterAppDelegate {
|
|||
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
override func applicationDidFinishLaunching(_ notification: Notification) {
|
||||
guard let window = NSApplication.shared.windows.first else {
|
||||
return
|
||||
}
|
||||
window.setContentSize(NSSize(width: 1280, height: 720)) // 设置初始大小
|
||||
// window.minSize = NSSize(width: 640, height: 480) // 最小尺寸
|
||||
// window?.maxSize = NSSize(width: 1200, height: 900) // 最大尺寸(可选)
|
||||
window.setFrameOrigin(NSPoint(x: 50, y: NSScreen.main?.frame.height ?? 1080 - (window.frame.height - 50)))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue