From 43964754dcabd6b5eeaae9ea68ab20bd6bb2c8ce Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 29 Nov 2026 07:58:05 -0800 Subject: [PATCH] Fix bug where marking selected row as read would draw the unread indicator in blue (which made it blue on blue) instead of white. --- Mac/MainWindow/Timeline/TimelineTableRowView.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Mac/MainWindow/Timeline/TimelineTableRowView.swift b/Mac/MainWindow/Timeline/TimelineTableRowView.swift index bc4c739a8..e07907427 100644 --- a/Mac/MainWindow/Timeline/TimelineTableRowView.swift +++ b/Mac/MainWindow/Timeline/TimelineTableRowView.swift @@ -47,6 +47,15 @@ final class TimelineTableRowView: NSTableRowView { super.init(coder: coder) } + /// The table may set selection and emphasis before adding the cell view. + override func didAddSubview(_ subview: NSView) { + super.didAddSubview(subview) + if let cellView = subview as? TimelineTableCellView { + cellView.isEmphasized = isEmphasized + cellView.isSelected = isSelected + } + } + private var cellView: TimelineTableCellView? { for oneSubview in subviews { if let foundView = oneSubview as? TimelineTableCellView {