mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-05 13:27:45 +01:00
Use controlAccent color for unread indicator in timeline.
This commit is contained in:
parent
3e2d2d6560
commit
ae34d83d4b
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user