Browse Source

Empty state.

pull/101/head
Abhishek 3 years ago
parent
commit
6c45eff066
  1. 13
      Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift

13
Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift

@ -46,10 +46,21 @@ class UpcomingEventViewItem: NSCollectionViewItem {
eventTitleLabel.stringValue = NSLocalizedString("See your next Calendar event here.", comment: "Next Event Label for no Calendar access")
setCalendarButtonTitle(buttonTitle: NSLocalizedString("Click here to start.", comment: "Button Title for no Calendar access"))
calendarColorView.layer?.backgroundColor = NSColor.blue.cgColor
calendarColorView.layer?.backgroundColor = NSColor.systemBlue.cgColor
zoomButton.image = Themer.shared().removeImage()
panelDelegate = delegate
}
func setupEmptyState() {
if leadingConstraint.constant != 10 {
leadingConstraint.constant = 10
}
eventTitleLabel.stringValue = NSLocalizedString("No upcoming events for today!", comment: "Next Event Label with no upcoming event")
setCalendarButtonTitle(buttonTitle: NSLocalizedString("Inbox Zero!", comment: "Button Title for no upcoming event"))
calendarColorView.layer?.backgroundColor = NSColor.systemGreen.cgColor
zoomButton.image = Themer.shared().removeImage()
}
private func setCalendarButtonTitle(buttonTitle: String) {
let style = NSMutableParagraphStyle()

Loading…
Cancel
Save