Use the SF star for the timeline on Big Sur

This commit is contained in:
Maurice Parker 2020-08-09 20:05:38 -05:00
parent 1eb21b1da1
commit 58498ef33e
2 changed files with 8 additions and 2 deletions

View File

@ -167,7 +167,13 @@ struct AppAssets {
}()
static var timelineStar: RSImage! = {
if #available(macOS 10.16, *) {
let image = NSImage(systemSymbolName: "star.fill", accessibilityDescription: nil)!
let coloredImage = image.tinted(with: NSColor(named: "StarColor")!)
return coloredImage
} else {
return RSImage(named: .timelineStar)
}
}()
static var todayFeedImage: IconImage = {

View File

@ -20,7 +20,7 @@ class TimelineTableCellView: NSTableCellView {
private lazy var iconView = IconView()
private let starView = TimelineTableCellView.imageView(with: AppAssets.timelineStar, scaling: .scaleNone)
private let starView = TimelineTableCellView.imageView(with: AppAssets.timelineStar, scaling: .scaleProportionallyUpOrDown)
private let separatorView = TimelineTableCellView.separatorView()
private lazy var textFields = {