From 58498ef33e646d71de01728a13154780fc05b876 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 9 Aug 2020 20:05:38 -0500 Subject: [PATCH] Use the SF star for the timeline on Big Sur --- Mac/AppAssets.swift | 8 +++++++- Mac/MainWindow/Timeline/Cell/TimelineTableCellView.swift | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Mac/AppAssets.swift b/Mac/AppAssets.swift index 615dbbccd..5d7534cbb 100644 --- a/Mac/AppAssets.swift +++ b/Mac/AppAssets.swift @@ -167,7 +167,13 @@ struct AppAssets { }() static var timelineStar: RSImage! = { - return RSImage(named: .timelineStar) + 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 = { diff --git a/Mac/MainWindow/Timeline/Cell/TimelineTableCellView.swift b/Mac/MainWindow/Timeline/Cell/TimelineTableCellView.swift index cffc819a0..c8147bf29 100644 --- a/Mac/MainWindow/Timeline/Cell/TimelineTableCellView.swift +++ b/Mac/MainWindow/Timeline/Cell/TimelineTableCellView.swift @@ -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 = {