mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: changed positioning of windows from the center to 25% higher than the center
This commit is contained in:
@@ -221,7 +221,7 @@ class SettingsWindow: NSWindow, NSWindowDelegate, NSToolbarDelegate {
|
||||
private func positionCenter() {
|
||||
self.setFrameOrigin(NSPoint(
|
||||
x: (NSScreen.main!.frame.width - SettingsWindow.size.width)/2,
|
||||
y: (NSScreen.main!.frame.height - SettingsWindow.size.height)/2
|
||||
y: ((NSScreen.main!.frame.height - SettingsWindow.size.height)/1.75)
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user