diff --git a/Mac/MainWindow/Timeline/Cell/ThumbnailView.swift b/Mac/MainWindow/Timeline/Cell/ThumbnailView.swift index 99a15fc66..15ba8f48e 100644 --- a/Mac/MainWindow/Timeline/Cell/ThumbnailView.swift +++ b/Mac/MainWindow/Timeline/Cell/ThumbnailView.swift @@ -20,14 +20,6 @@ final class ThumbnailView: NSView { } } - var fillColor = NSColor.systemFill { - didSet { - if fillColor != oldValue { - needsDisplay = true - } - } - } - var cornerRadius: CGFloat = 0 { didSet { layer?.cornerRadius = cornerRadius @@ -57,12 +49,7 @@ final class ThumbnailView: NSView { } override func updateLayer() { - guard let layer else { - return - } - layer.contents = image?.cgImage(forProposedRect: nil, context: nil, hints: nil) - // Resolved here so the fill follows light and dark mode. - layer.backgroundColor = fillColor.cgColor + layer?.contents = image?.cgImage(forProposedRect: nil, context: nil, hints: nil) } } diff --git a/Mac/MainWindow/Timeline/Cell/TimelineTableCellView.swift b/Mac/MainWindow/Timeline/Cell/TimelineTableCellView.swift index 598a39cce..ae497f8dc 100644 --- a/Mac/MainWindow/Timeline/Cell/TimelineTableCellView.swift +++ b/Mac/MainWindow/Timeline/Cell/TimelineTableCellView.swift @@ -33,7 +33,6 @@ final class TimelineTableCellView: NSTableCellView { updateTextFieldFonts() iconView.layer?.cornerRadius = cellAppearance.iconCornerRadius thumbnailView.cornerRadius = cellAppearance.thumbnailCornerRadius - thumbnailView.fillColor = cellAppearance.showsLargeThumbnails ? .tertiarySystemFill : .systemFill needsLayout = true } }