From 0c2f79f1b595a44e00d8d618876f840745269678 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Tue, 6 Apr 2021 17:31:42 -0400 Subject: [PATCH] Update read/unread swipe images to be SF Symbols on Big Sur --- Mac/AppAssets.swift | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Mac/AppAssets.swift b/Mac/AppAssets.swift index deef57b28..e9a1ed05d 100644 --- a/Mac/AppAssets.swift +++ b/Mac/AppAssets.swift @@ -292,11 +292,23 @@ struct AppAssets { }() static var swipeMarkReadImage: RSImage = { - return RSImage(named: "swipeMarkRead")! + if #available(OSX 11.0, *) { + return RSImage(systemSymbolName: "circle", accessibilityDescription: "Mark Read")! + .withSymbolConfiguration(.init(scale: .large))! + } else { + // TODO: remove swipeMarkRead asset when dropping support for macOS 10.15 + return RSImage(named: "swipeMarkRead")! + } }() static var swipeMarkUnreadImage: RSImage = { - return RSImage(named: "swipeMarkUnread")! + if #available(OSX 11.0, *) { + return RSImage(systemSymbolName: "largecircle.fill.circle", accessibilityDescription: "Mark Unread")! + .withSymbolConfiguration(.init(scale: .large))! + } else { + // TODO: remove swipeMarkUnread asset when dropping support for macOS 10.15 + return RSImage(named: "swipeMarkUnread")! + } }() static var swipeMarkStarredImage: RSImage = {