|
|
@ -43,11 +43,7 @@ class StatusItemView: NSView { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private var timeAttributes: [NSAttributedString.Key: AnyObject] { |
|
|
|
private var timeAttributes: [NSAttributedString.Key: AnyObject] { |
|
|
|
var textColor = hasDarkAppearance ? NSColor.white : NSColor.black |
|
|
|
let textColor = hasDarkAppearance ? NSColor.white : NSColor.black |
|
|
|
|
|
|
|
|
|
|
|
if #available(OSX 11.0, *) { |
|
|
|
|
|
|
|
textColor = NSColor.white |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let attributes = [ |
|
|
|
let attributes = [ |
|
|
|
NSAttributedString.Key.font: compactModeTimeFont, |
|
|
|
NSAttributedString.Key.font: compactModeTimeFont, |
|
|
@ -59,11 +55,7 @@ class StatusItemView: NSView { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private var textFontAttributes: [NSAttributedString.Key: Any] { |
|
|
|
private var textFontAttributes: [NSAttributedString.Key: Any] { |
|
|
|
var textColor = hasDarkAppearance ? NSColor.white : NSColor.black |
|
|
|
let textColor = hasDarkAppearance ? NSColor.white : NSColor.black |
|
|
|
|
|
|
|
|
|
|
|
if #available(OSX 11.0, *) { |
|
|
|
|
|
|
|
textColor = NSColor.white |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let textFontAttributes = [ |
|
|
|
let textFontAttributes = [ |
|
|
|
NSAttributedString.Key.font: NSFont.boldSystemFont(ofSize: 10), |
|
|
|
NSAttributedString.Key.font: NSFont.boldSystemFont(ofSize: 10), |
|
|
|