|
|
@ -74,7 +74,7 @@ class UpcomingEventStatusItemView: NSView { |
|
|
|
nextEventField.attributedStringValue = NSAttributedString(string: dataObject.event.title, attributes: textFontAttributes) |
|
|
|
nextEventField.attributedStringValue = NSAttributedString(string: dataObject.event.title, attributes: textFontAttributes) |
|
|
|
etaField.attributedStringValue = NSAttributedString(string: dataObject.metadataForMeeting(), attributes: timeAttributes) |
|
|
|
etaField.attributedStringValue = NSAttributedString(string: dataObject.metadataForMeeting(), attributes: timeAttributes) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@available(OSX 10.14, *) |
|
|
|
@available(OSX 10.14, *) |
|
|
|
override func viewDidChangeEffectiveAppearance() { |
|
|
|
override func viewDidChangeEffectiveAppearance() { |
|
|
|
super.viewDidChangeEffectiveAppearance() |
|
|
|
super.viewDidChangeEffectiveAppearance() |
|
|
@ -97,14 +97,12 @@ class UpcomingEventStatusItemView: NSView { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
extension UpcomingEventStatusItemView: StatusItemViewConforming { |
|
|
|
extension UpcomingEventStatusItemView: StatusItemViewConforming { |
|
|
|
|
|
|
|
|
|
|
|
func statusItemViewSetNeedsDisplay() { |
|
|
|
func statusItemViewSetNeedsDisplay() { |
|
|
|
nextEventField.attributedStringValue = NSAttributedString(string: dataObject.event.title, attributes: textFontAttributes) |
|
|
|
nextEventField.attributedStringValue = NSAttributedString(string: dataObject.event.title, attributes: textFontAttributes) |
|
|
|
etaField.attributedStringValue = NSAttributedString(string: dataObject.metadataForMeeting(), attributes: timeAttributes) |
|
|
|
etaField.attributedStringValue = NSAttributedString(string: dataObject.metadataForMeeting(), attributes: timeAttributes) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func statusItemViewIdentifier() -> String { |
|
|
|
func statusItemViewIdentifier() -> String { |
|
|
|
return "upcoming_event_view" |
|
|
|
return "upcoming_event_view" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|