mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Use controlAccent color for unread indicator in timeline.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user