Browse Source

Update color quickly for compact mode.

pull/92/head
Abhishek 5 years ago
parent
commit
e7b8af2918
  1. 6
      Clocker/Menu Bar/StatusItemView.swift

6
Clocker/Menu Bar/StatusItemView.swift

@ -109,6 +109,12 @@ class StatusItemView: NSView {
]) ])
} }
@available(OSX 10.14, *)
override func viewDidChangeEffectiveAppearance() {
super.viewDidChangeEffectiveAppearance()
updateTimeInMenubar()
}
func updateTimeInMenubar() { func updateTimeInMenubar() {
locationView.attributedStringValue = NSAttributedString(string: operationsObject.compactMenuTitle(), attributes: textFontAttributes) locationView.attributedStringValue = NSAttributedString(string: operationsObject.compactMenuTitle(), attributes: textFontAttributes)
timeView.attributedStringValue = NSAttributedString(string: operationsObject.compactMenuSubtitle(), attributes: timeAttributes) timeView.attributedStringValue = NSAttributedString(string: operationsObject.compactMenuSubtitle(), attributes: timeAttributes)

Loading…
Cancel
Save