NetNewsWire/Mac/AppAssets.swift

118 lines
2.9 KiB
Swift
Raw Normal View History

//
// AppAssets.swift
2018-08-29 07:18:24 +02:00
// NetNewsWire
//
// Created by Brent Simmons on 2/17/18.
// Copyright © 2018 Ranchero Software. All rights reserved.
//
import AppKit
import RSCore
extension NSImage.Name {
2018-12-09 21:32:33 +01:00
static let star = NSImage.Name("star")
static let timelineStar = NSImage.Name("timelineStar")
}
struct AppAssets {
static var genericFeedImage: IconImage? = {
let path = "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns"
let image = RSImage(contentsOfFile: path)
return image != nil ? IconImage(image!) : nil
}()
static var timelineStar: RSImage! = {
return RSImage(named: .timelineStar)
}()
2019-05-01 13:49:50 +02:00
static var accountLocal: RSImage! = {
2019-05-01 19:37:13 +02:00
return RSImage(named: "accountLocal")
2019-05-01 13:49:50 +02:00
}()
2019-05-01 17:28:13 +02:00
static var accountFeedbin: RSImage! = {
2019-05-01 19:37:13 +02:00
return RSImage(named: "accountFeedbin")
2019-05-01 17:28:13 +02:00
}()
2019-09-20 21:47:40 +02:00
static var accountFeedly: RSImage! = {
return RSImage(named: "accountFeedly")
}()
2019-06-20 14:22:51 +02:00
static var accountFreshRSS: RSImage! = {
return RSImage(named: "accountFreshRSS")
}()
static var articleExtractor: RSImage! = {
return RSImage(named: "articleExtractor")
}()
static var articleExtractorError: RSImage! = {
return RSImage(named: "articleExtractorError")
}()
static var articleExtractorProgress1: RSImage! = {
return RSImage(named: "articleExtractorProgress1")
}()
static var articleExtractorProgress2: RSImage! = {
return RSImage(named: "articleExtractorProgress2")
}()
static var articleExtractorProgress3: RSImage! = {
return RSImage(named: "articleExtractorProgress3")
}()
static var articleExtractorProgress4: RSImage! = {
return RSImage(named: "articleExtractorProgress4")
}()
static var faviconTemplateImage: RSImage = {
return RSImage(named: "faviconTemplateImage")!
}()
static var iconLightBackgroundColor: NSColor = {
return NSColor(named: NSColor.Name("iconLightBackgroundColor"))!
}()
static var iconDarkBackgroundColor: NSColor = {
return NSColor(named: NSColor.Name("iconDarkBackgroundColor"))!
}()
static var masterFolderImage: IconImage = {
return IconImage(RSImage(named: NSImage.folderName)!)
}()
static var searchFeedImage: IconImage = {
return IconImage(RSImage(named: NSImage.smartBadgeTemplateName)!)
}()
static var starredFeedImage: IconImage = {
return IconImage(RSImage(named: NSImage.smartBadgeTemplateName)!)
}()
static var todayFeedImage: IconImage = {
return IconImage(RSImage(named: NSImage.smartBadgeTemplateName)!)
}()
static var unreadFeedImage: IconImage = {
return IconImage(RSImage(named: NSImage.smartBadgeTemplateName)!)
}()
static var swipeMarkReadImage: RSImage = {
return RSImage(named: "swipeMarkRead")!
}()
static var swipeMarkUnreadImage: RSImage = {
return RSImage(named: "swipeMarkUnread")!
}()
static var swipeMarkStarredImage: RSImage = {
return RSImage(named: "swipeMarkStarred")!
}()
static var swipeMarkUnstarredImage: RSImage = {
return RSImage(named: "swipeMarkUnstarred")!
}()
}