From ae34d83d4b7231c7b95894879f584df13d67fc4a Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 21 Jul 2018 19:17:20 -0700 Subject: [PATCH] Use controlAccent color for unread indicator in timeline. --- .../MainWindow/Timeline/Cell/UnreadIndicatorView.swift | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Evergreen/MainWindow/Timeline/Cell/UnreadIndicatorView.swift b/Evergreen/MainWindow/Timeline/Cell/UnreadIndicatorView.swift index 55aa123f1..c139c8d10 100644 --- a/Evergreen/MainWindow/Timeline/Cell/UnreadIndicatorView.swift +++ b/Evergreen/MainWindow/Timeline/Cell/UnreadIndicatorView.swift @@ -37,8 +37,13 @@ class UnreadIndicatorView: NSView { override func draw(_ dirtyRect: NSRect) { - let color = isEmphasized && isSelected ? NSColor.white : UnreadIndicatorView.unreadCircleColor - color.setFill() + if #available(OSX 10.14, *) { + let color = isEmphasized && isSelected ? NSColor.white : NSColor.controlAccent + color.setFill() + } else { + let color = isEmphasized && isSelected ? NSColor.white : NSColor.systemBlue + color.setFill() + } UnreadIndicatorView.bezierPath.fill() }