@ -26,6 +26,7 @@ class UpcomingEventViewItem: NSCollectionViewItem {
zoomButton.image=nil
zoomButton.image=nil
eventTitleLabel.stringValue=""
eventTitleLabel.stringValue=""
eventSubtitleButton.stringValue=""
eventSubtitleButton.stringValue=""
meetingLink=nil
}
}
overridevaracceptsFirstResponder:Bool{
overridevaracceptsFirstResponder:Bool{
@ -85,8 +86,10 @@ class UpcomingEventViewItem: NSCollectionViewItem {
}
}
funcsetupEmptyState(){
funcsetupEmptyState(){
letsubtitle=NSCalendar.autoupdatingCurrent.isDateInWeekend(Date())?NSLocalizedString("Happy Weekend.",comment:"Button Title for no upcoming event"):NSLocalizedString("Great going.",comment:"Button Title for no upcoming event")
setAlternateState(NSLocalizedString("No upcoming events for today!",comment:"Next Event Label with no upcoming event"),
setAlternateState(NSLocalizedString("No upcoming events for today!",comment:"Next Event Label with no upcoming event"),
NSLocalizedString("Great going.",comment:"Button Title for no upcoming event"),
subtitle,
NSColor.systemGreen,
NSColor.systemGreen,
nil)
nil)
}
}
@ -121,7 +124,9 @@ class UpcomingEventViewItem: NSCollectionViewItem {