NetNewsWire/iOS/AppAssets.swift

114 lines
3.9 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
import Images
struct AppAssets {
2024-04-20 07:30:37 +02:00
@MainActor 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-04-20 07:30:37 +02:00
@MainActor 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 folderOutlinePlus = UIImage(systemName: "folder.badge.plus")!
static let fullScreenBackgroundColor = UIColor(named: "fullScreenBackgroundColor")!
static let infoImage = UIImage(systemName: "info.circle")!
static let markBelowAsReadImage = UIImage(systemName: "arrowtriangle.down.circle")!
static let markAboveAsReadImage = UIImage(systemName: "arrowtriangle.up.circle")!
@MainActor static let folderImage = IconImage(UIImage(systemName: "folder.fill")!, isSymbol: true, isBackgroundSupressed: true, preferredColor: AppAssets.secondaryAccentColor.cgColor)
2024-03-20 04:33:54 +01:00
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")!
@MainActor static let searchFeedImage = IconImage(UIImage(systemName: "magnifyingglass")!, isSymbol: true)
2024-03-20 04:33:54 +01:00
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")!
@MainActor 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)
}()
@MainActor 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")!
@MainActor 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")!
}