Browse Source

Formatting.

pull/113/head
Abhishek 3 years ago
parent
commit
ad09ddac3f
  1. 4
      Clocker/Preferences/Menu Bar/StatusItemView.swift
  2. 6
      Clocker/Preferences/Menu Bar/UpcomingEventStatusItemView.swift

4
Clocker/Preferences/Menu Bar/StatusItemView.swift

@ -129,14 +129,12 @@ class StatusItemView: NSView {
} }
extension StatusItemView: StatusItemViewConforming { extension StatusItemView: StatusItemViewConforming {
func statusItemViewSetNeedsDisplay() { func statusItemViewSetNeedsDisplay() {
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)
} }
func statusItemViewIdentifier() -> String { func statusItemViewIdentifier() -> String {
return "location_view" return "location_view"
} }
} }

6
Clocker/Preferences/Menu Bar/UpcomingEventStatusItemView.swift

@ -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"
} }
} }

Loading…
Cancel
Save