NetNewsWire/iOS/AppAssets.swift

178 lines
6.0 KiB
Swift
Raw Normal View History

//
// AppAssets.swift
// NetNewsWire
//
// Created by Maurice Parker on 4/8/19.
// Copyright © 2019 Ranchero Software. All rights reserved.
//
import UIKit
import Account
import Core
struct AppAssets {
2024-03-20 04:33:54 +01:00
static let accountBazQuxImage = UIImage(named: "accountBazQux")!
2024-03-20 04:33:54 +01:00
static let accountCloudKitImage = UIImage(named: "accountCloudKit")!
2024-03-20 04:33:54 +01:00
static let accountFeedbinImage = UIImage(named: "accountFeedbin")!
2024-03-20 04:33:54 +01:00
static let accountFeedlyImage = UIImage(named: "accountFeedly")!
2024-03-20 04:33:54 +01:00
static let accountFreshRSSImage = UIImage(named: "accountFreshRSS")!
2024-03-20 04:33:54 +01:00
static let accountInoreaderImage = UIImage(named: "accountInoreader")!
2024-03-20 04:33:54 +01:00
static let accountLocalPadImage = UIImage(named: "accountLocalPad")!
2024-03-20 04:33:54 +01:00
static let accountLocalPhoneImage = UIImage(named: "accountLocalPhone")!
2020-03-09 23:39:58 +01:00
2024-03-20 04:33:54 +01:00
static let accountNewsBlurImage = UIImage(named: "accountNewsBlur")!
2024-03-20 04:33:54 +01:00
static let accountTheOldReaderImage = UIImage(named: "accountTheOldReader")!
2019-09-24 23:34:11 +02:00
2024-03-20 04:33:54 +01:00
static let articleExtractorError = UIImage(named: "articleExtractorError")!
2019-09-24 23:34:11 +02:00
2024-03-20 04:33:54 +01:00
static let articleExtractorOff = UIImage(named: "articleExtractorOff")!
2024-03-20 04:33:54 +01:00
static let articleExtractorOffSF = UIImage(systemName: "doc.plaintext")!
static let articleExtractorOffTinted: UIImage = {
2019-09-24 23:34:11 +02:00
let image = UIImage(named: "articleExtractorOff")!
return image.tinted(color: AppAssets.primaryAccentColor)!
2019-09-24 23:34:11 +02:00
}()
2024-03-20 04:33:54 +01:00
static let articleExtractorOn = UIImage(named: "articleExtractorOn")!
2019-09-24 23:34:11 +02:00
2024-03-20 04:33:54 +01:00
static let articleExtractorOnSF = UIImage(named: "articleExtractorOnSF")!
2024-03-20 04:33:54 +01:00
static let articleExtractorOnTinted: UIImage = {
2019-09-24 23:34:11 +02:00
let image = UIImage(named: "articleExtractorOn")!
return image.tinted(color: AppAssets.primaryAccentColor)!
2019-09-24 23:34:11 +02:00
}()
2024-03-20 04:33:54 +01:00
static let iconBackgroundColor = UIColor(named: "iconBackgroundColor")!
2024-03-20 04:33:54 +01:00
static let circleClosedImage = UIImage(systemName: "largecircle.fill.circle")!
2024-03-20 04:33:54 +01:00
static let circleOpenImage = UIImage(systemName: "circle")!
static let disclosureImage = UIImage(named: "disclosure")!
static let copyImage = UIImage(systemName: "doc.on.doc")!
static let deactivateImage = UIImage(systemName: "minus.circle")!
static let editImage = UIImage(systemName: "square.and.pencil")!
static let faviconTemplateImage = RSImage(named: "faviconTemplateImage")!
static let filterInactiveImage = UIImage(systemName: "line.horizontal.3.decrease.circle")!
2024-03-20 04:33:54 +01:00
static let filterActiveImage = UIImage(systemName: "line.horizontal.3.decrease.circle.fill")!
static let folderOutlinePlus = UIImage(systemName: "folder.badge.plus")!
static let fullScreenBackgroundColor = UIColor(named: "fullScreenBackgroundColor")!
static let infoImage = UIImage(systemName: "info.circle")!
static let markAllAsReadImage = UIImage(named: "markAllAsRead")!
static let markBelowAsReadImage = UIImage(systemName: "arrowtriangle.down.circle")!
static let markAboveAsReadImage = UIImage(systemName: "arrowtriangle.up.circle")!
static let folderImage = IconImage(UIImage(systemName: "folder.fill")!, isSymbol: true, isBackgroundSupressed: true, preferredColor: AppAssets.secondaryAccentColor.cgColor)
static let folderImageNonIcon = UIImage(systemName: "folder.fill")!.withRenderingMode(.alwaysOriginal).withTintColor(.secondaryLabel)
static let moreImage = UIImage(systemName: "ellipsis.circle")!
static let nextArticleImage = UIImage(systemName: "chevron.down")!
2024-03-20 04:33:54 +01:00
static let nextUnreadArticleImage = UIImage(systemName: "chevron.down.circle")!
static let plus = UIImage(systemName: "plus")!
static let prevArticleImage = UIImage(systemName: "chevron.up")!
static let openInSidebarImage = UIImage(systemName: "arrow.turn.down.left")!
static let primaryAccentColor = UIColor(named: "primaryAccentColor")!
static let safariImage = UIImage(systemName: "safari")!
static let searchFeedImage = IconImage(UIImage(systemName: "magnifyingglass")!, isSymbol: true)
static let secondaryAccentColor = UIColor(named: "secondaryAccentColor")!
static let sectionHeaderColor = UIColor(named: "sectionHeaderColor")!
static let shareImage = UIImage(systemName: "square.and.arrow.up")!
static let smartFeedImage = UIImage(systemName: "gear")!
static let starColor = UIColor(named: "starColor")!
static let starClosedImage = UIImage(systemName: "star.fill")!
static let starOpenImage = UIImage(systemName: "star")!
static let starredFeedImage: IconImage = {
let image = UIImage(systemName: "star.fill")!
return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: AppAssets.starColor.cgColor)
}()
2024-03-20 04:33:54 +01:00
static let tickMarkColor = UIColor(named: "tickMarkColor")!
static let timelineStarImage: UIImage = {
let image = UIImage(systemName: "star.fill")!
return image.withTintColor(AppAssets.starColor, renderingMode: .alwaysOriginal)
}()
2024-03-20 04:33:54 +01:00
static let todayFeedImage: IconImage = {
let image = UIImage(systemName: "sun.max.fill")!
return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: UIColor.systemOrange.cgColor)
}()
2024-03-20 04:33:54 +01:00
static let trashImage = UIImage(systemName: "trash")!
static let unreadFeedImage: IconImage = {
let image = UIImage(systemName: "largecircle.fill.circle")!
return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: AppAssets.secondaryAccentColor.cgColor)
}()
2024-03-20 04:33:54 +01:00
static let vibrantTextColor = UIColor(named: "vibrantTextColor")!
2024-03-20 04:33:54 +01:00
static let controlBackgroundColor = UIColor(named: "controlBackgroundColor")!
2021-02-01 01:25:34 +01:00
static func image(for accountType: AccountType) -> UIImage? {
switch accountType {
case .onMyMac:
2019-10-23 20:52:07 +02:00
if UIDevice.current.userInterfaceIdiom == .pad {
return AppAssets.accountLocalPadImage
} else {
return AppAssets.accountLocalPhoneImage
}
case .cloudKit:
return AppAssets.accountCloudKitImage
case .feedbin:
return AppAssets.accountFeedbinImage
2019-11-11 01:04:21 +01:00
case .feedly:
return AppAssets.accountFeedlyImage
case .freshRSS:
return AppAssets.accountFreshRSSImage
2020-03-09 23:39:58 +01:00
case .newsBlur:
return AppAssets.accountNewsBlurImage
2020-10-24 21:23:48 +02:00
case .inoreader:
return AppAssets.accountInoreaderImage
2020-10-24 21:23:48 +02:00
case .bazQux:
return AppAssets.accountBazQuxImage
2020-10-24 21:23:48 +02:00
case .theOldReader:
return AppAssets.accountTheOldReaderImage
}
}
}