Add extensions.

This commit is contained in:
Brent Simmons
2025-01-26 22:22:51 -08:00
parent 73e236f07c
commit ed6aa48a63

View File

@@ -54,15 +54,18 @@ struct AppImage {
static var articleExtractorOnTinted = articleExtractorOn.tinted(color: AppAssets.primaryAccentColor)!
#endif
// MARK: - Actions
// MARK: - Action Images
static var markAllAsRead = RSImage(named: "markAllAsRead")!
// MARK: - Misc.
static let nnwFeedIcon = RSImage(named: "nnwFeedIcon")!
}
// MARK: - Mac-only images
// MARK: - Mac-only images
extension AppImage {
#if os(macOS)
static var articleTheme = NSImage(systemSymbolName: "doc.richtext", accessibilityDescription: nil)!
@@ -70,8 +73,11 @@ struct AppImage {
static var marsEditIcon = RSImage(named: "MarsEditIcon")!
static var microblogIcon = RSImage(named: "MicroblogIcon")!
#endif
}
// MARK: - iOS-only images
// MARK: - iOS-only images
extension AppImage {
#if os(iOS)
static var markBelowAsRead = UIImage(systemName: "arrowtriangle.down.circle")!
@@ -92,6 +98,8 @@ struct AppImage {
private extension AppImage {
// MARK: - Account Images
static var accountBazQux = RSImage(named: "accountBazQux")!
static var accountCloudKit = RSImage(named: "accountCloudKit")!
static var accountFeedbin = RSImage(named: "accountFeedbin")!