mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed settings widget control buttons position for macOS Monterey
This commit is contained in:
@@ -31,9 +31,9 @@ class SettingsWindow: NSWindow, NSWindowDelegate {
|
||||
if let close = self.standardWindowButton(.closeButton),
|
||||
let mini = self.standardWindowButton(.miniaturizeButton),
|
||||
let zoom = self.standardWindowButton(.zoomButton) {
|
||||
close.setFrameOrigin(NSPoint(x: 7, y: 1))
|
||||
mini.setFrameOrigin(NSPoint(x: 27, y: 1))
|
||||
zoom.setFrameOrigin(NSPoint(x: 47, y: 1))
|
||||
close.setFrameOrigin(NSPoint(x: 7, y: close.frame.origin.y))
|
||||
mini.setFrameOrigin(NSPoint(x: 27, y: close.frame.origin.y))
|
||||
zoom.setFrameOrigin(NSPoint(x: 47, y: close.frame.origin.y))
|
||||
}
|
||||
|
||||
self.contentViewController = self.viewController
|
||||
|
||||
Reference in New Issue
Block a user