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) {
|
override func draw(_ dirtyRect: NSRect) {
|
||||||
|
|
||||||
let color = isEmphasized && isSelected ? NSColor.white : UnreadIndicatorView.unreadCircleColor
|
if #available(OSX 10.14, *) {
|
||||||
|
let color = isEmphasized && isSelected ? NSColor.white : NSColor.controlAccent
|
||||||
color.setFill()
|
color.setFill()
|
||||||
|
} else {
|
||||||
|
let color = isEmphasized && isSelected ? NSColor.white : NSColor.systemBlue
|
||||||
|
color.setFill()
|
||||||
|
}
|
||||||
UnreadIndicatorView.bezierPath.fill()
|
UnreadIndicatorView.bezierPath.fill()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user