Browse Source

Minor.

pull/113/head
Abhishek 3 years ago
parent
commit
244cef4fba
  1. 20
      Clocker/Preferences/Menu Bar/StatusItemView.swift

20
Clocker/Preferences/Menu Bar/StatusItemView.swift

@ -105,12 +105,7 @@ class StatusItemView: NSView {
@available(OSX 10.14, *)
override func viewDidChangeEffectiveAppearance() {
super.viewDidChangeEffectiveAppearance()
updateTimeInMenubar()
}
func updateTimeInMenubar() {
locationView.attributedStringValue = NSAttributedString(string: operationsObject.compactMenuTitle(), attributes: textFontAttributes)
timeView.attributedStringValue = NSAttributedString(string: operationsObject.compactMenuSubtitle(), attributes: timeAttributes)
statusItemViewSetNeedsDisplay()
}
private func initialSetup() {
@ -132,3 +127,16 @@ class StatusItemView: NSView {
mainDelegate.togglePanel(event)
}
}
extension StatusItemView: StatusItemViewConforming {
func statusItemViewSetNeedsDisplay() {
locationView.attributedStringValue = NSAttributedString(string: operationsObject.compactMenuTitle(), attributes: textFontAttributes)
timeView.attributedStringValue = NSAttributedString(string: operationsObject.compactMenuSubtitle(), attributes: timeAttributes)
}
func statusItemViewIdentifier() -> String {
return "location_view"
}
}

Loading…
Cancel
Save