Update read/unread swipe images to be SF Symbols on Big Sur

This commit is contained in:
Jed Fox 2021-04-06 17:31:42 -04:00
parent b8aca6b89a
commit 0c2f79f1b5
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 14 additions and 2 deletions

View File

@ -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 = {