From 8179c93e47d653679159139ed960adadcca8081d Mon Sep 17 00:00:00 2001 From: Abhishek Date: Fri, 2 Jul 2021 17:26:32 -0500 Subject: [PATCH] Bringing in some color! --- Clocker/Panel/ParentPanelController.swift | 3 +++ Clocker/Panel/UI/TimezoneDataSource.swift | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index 2c3341b5..35bdc560 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -614,6 +614,9 @@ class ParentPanelController: NSWindowController { cellView.relativeDate.stringValue = dataOperation.date(with: futureSliderValue, displayType: .panel) cellView.currentLocationIndicator.isHidden = !model.isSystemTimezone cellView.sunriseImage.image = model.isSunriseOrSunset ? Themer.shared().sunriseImage() : Themer.shared().sunsetImage() + if #available(macOS 10.14, *) { + cellView.sunriseImage.contentTintColor = model.isSunriseOrSunset ? NSColor.systemYellow : NSColor.systemOrange + } if let note = model.note, !note.isEmpty { cellView.noteLabel.stringValue = note } else if DataStore.shared().shouldDisplay(.dstTransitionInfo), diff --git a/Clocker/Panel/UI/TimezoneDataSource.swift b/Clocker/Panel/UI/TimezoneDataSource.swift index 94579031..ac42523f 100644 --- a/Clocker/Panel/UI/TimezoneDataSource.swift +++ b/Clocker/Panel/UI/TimezoneDataSource.swift @@ -55,6 +55,9 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate { cellView.sunriseSetTime.stringValue = operation.formattedSunriseTime(with: sliderValue) cellView.sunriseImage.image = currentModel.isSunriseOrSunset ? Themer.shared().sunriseImage() : Themer.shared().sunsetImage() + if #available(macOS 10.14, *) { + cellView.sunriseImage.contentTintColor = currentModel.isSunriseOrSunset ? NSColor.systemYellow : NSColor.systemOrange + } cellView.relativeDate.stringValue = operation.date(with: sliderValue, displayType: .panel) cellView.rowNumber = row cellView.customName.stringValue = currentModel.formattedTimezoneLabel()