mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Manually draw background and selection so that it encompasses the whole row. Issue #2363
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user