mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Remove background color from thumbnails.
This commit is contained in:
1 parent
257edf35fd
commit
a9b0e48726
2 files changed
+1
-15
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user