From 7fec1081b79bd02fa8b17e45152141b24f13cffe Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Sat, 9 Dec 2023 17:27:41 +0100 Subject: [PATCH] feat: changed positioning of windows from the center to 25% higher than the center --- Stats/Views/Settings.swift | 2 +- Stats/Views/Setup.swift | 2 +- Stats/Views/Update.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Stats/Views/Settings.swift b/Stats/Views/Settings.swift index 6bc0cf82..c060f4fe 100644 --- a/Stats/Views/Settings.swift +++ b/Stats/Views/Settings.swift @@ -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) )) } } diff --git a/Stats/Views/Setup.swift b/Stats/Views/Setup.swift index 10dc17d9..9dc1868f 100644 --- a/Stats/Views/Setup.swift +++ b/Stats/Views/Setup.swift @@ -60,7 +60,7 @@ internal class SetupWindow: NSWindow, NSWindowDelegate { private func positionCenter() { self.setFrameOrigin(NSPoint( x: (NSScreen.main!.frame.width - self.view.frame.width)/2, - y: (NSScreen.main!.frame.height - self.view.frame.height)/2 + y: (NSScreen.main!.frame.height - self.view.frame.height)/1.75 )) } } diff --git a/Stats/Views/Update.swift b/Stats/Views/Update.swift index 4d9bab70..19a8c50c 100644 --- a/Stats/Views/Update.swift +++ b/Stats/Views/Update.swift @@ -50,7 +50,7 @@ class UpdateWindow: NSWindow, NSWindowDelegate { private func positionCenter() { self.setFrameOrigin(NSPoint( x: (NSScreen.main!.frame.width - self.viewController.view.frame.width)/2, - y: (NSScreen.main!.frame.height - self.viewController.view.frame.height)/2 + y: (NSScreen.main!.frame.height - self.viewController.view.frame.height)/1.75 )) } }