diff --git a/README.md b/README.md index a756fd37..73a7928e 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ You can download latest version [here](https://github.com/exelban/stats/releases ### v1.2.2 - fully automated build and sign app process + - fixed update and about visibility window in dark mode - added name of the indicators in the Chart/Chart with value - added check for new version on start - removed charts and charts with value to Disk module diff --git a/Stats/AppDelegate.swift b/Stats/AppDelegate.swift index e74afeab..29c74897 100755 --- a/Stats/AppDelegate.swift +++ b/Stats/AppDelegate.swift @@ -15,7 +15,7 @@ extension Notification.Name { let modules: Observable<[Module]> = Observable([CPU(), Memory(), Disk(), Battery(), Network()]) let colors: Observable = Observable(true) -let labelForChart: Observable = Observable(false) +let labelForChart: Observable = Observable(true) let updater = macAppUpdater(user: "exelban", repo: "stats") @@ -65,6 +65,11 @@ class AppDelegate: NSObject, NSApplicationDelegate { self.defaults.set(true, forKey: "runAtLogin") } + if defaults.object(forKey: "labelForChart") == nil { + self.defaults.set(true, forKey: "labelForChart") + labelForChart << true + } + if isRunning { DistributedNotificationCenter.default().post(name: .killLauncher, object: Bundle.main.bundleIdentifier!) } @@ -97,9 +102,7 @@ class AboutVC: NSViewController { override func awakeFromNib() { if self.view.layer != nil { - self.view.window?.backgroundColor = .white - self.view.layer?.backgroundColor = .white - + self.view.window?.backgroundColor = .windowBackgroundColor let versionNumber = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String versionLabel.stringValue = "Version \(versionNumber)" } @@ -156,8 +159,7 @@ class UpdatesVC: NSViewController { override func awakeFromNib() { if self.view.layer != nil { - self.view.window?.backgroundColor = .white - self.view.layer?.backgroundColor = .white + self.view.window?.backgroundColor = .windowBackgroundColor } } diff --git a/Stats/Supporting Files/About.storyboard b/Stats/Supporting Files/About.storyboard index 4f811814..27b3fca6 100644 --- a/Stats/Supporting Files/About.storyboard +++ b/Stats/Supporting Files/About.storyboard @@ -59,8 +59,8 @@ - - + +