From a9b0e48726ea2a423eb95b7ce2f04c66a13932ef Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Thu, 5 Nov 2026 19:39:35 -0800 Subject: [PATCH] Remove background color from thumbnails. --- Mac/MainWindow/Timeline/Cell/ThumbnailView.swift | 15 +-------------- .../Timeline/Cell/TimelineTableCellView.swift | 1 - 2 files changed, 1 insertion(+), 15 deletions(-) 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 } }