Merge branch 'mac-candidate' of https://github.com/Ranchero-Software/NetNewsWire into mac-candidate

This commit is contained in:
Maurice Parker 2020-08-21 17:27:14 -05:00
commit d7b8822587
1 changed files with 15 additions and 0 deletions

View File

@ -34,6 +34,21 @@ class TimelineTableRowView : NSTableRowView {
super.init(coder: coder)
}
override func drawBackground(in dirtyRect: NSRect) {
NSColor.controlBackgroundColor.setFill()
dirtyRect.fill()
}
override func drawSelection(in dirtyRect: NSRect) {
if isEmphasized {
NSColor.selectedContentBackgroundColor.setFill()
dirtyRect.fill()
} else {
NSColor.unemphasizedSelectedContentBackgroundColor.setFill()
dirtyRect.fill()
}
}
private var cellView: TimelineTableCellView? {
for oneSubview in subviews {
if let foundView = oneSubview as? TimelineTableCellView {