From 1179ba46de006088f6cdf2d8ba36d62a4b97a433 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Fri, 13 Nov 2020 15:02:27 -0600 Subject: [PATCH] Remove hard-coded white color. --- Clocker/Menu Bar/StatusItemView.swift | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Clocker/Menu Bar/StatusItemView.swift b/Clocker/Menu Bar/StatusItemView.swift index 1c7bee9..0b3f5bb 100644 --- a/Clocker/Menu Bar/StatusItemView.swift +++ b/Clocker/Menu Bar/StatusItemView.swift @@ -43,11 +43,7 @@ class StatusItemView: NSView { } private var timeAttributes: [NSAttributedString.Key: AnyObject] { - var textColor = hasDarkAppearance ? NSColor.white : NSColor.black - - if #available(OSX 11.0, *) { - textColor = NSColor.white - } + let textColor = hasDarkAppearance ? NSColor.white : NSColor.black let attributes = [ NSAttributedString.Key.font: compactModeTimeFont, @@ -59,11 +55,7 @@ class StatusItemView: NSView { } private var textFontAttributes: [NSAttributedString.Key: Any] { - var textColor = hasDarkAppearance ? NSColor.white : NSColor.black - - if #available(OSX 11.0, *) { - textColor = NSColor.white - } + let textColor = hasDarkAppearance ? NSColor.white : NSColor.black let textFontAttributes = [ NSAttributedString.Key.font: NSFont.boldSystemFont(ofSize: 10),