2018-02-17 18:19:25 -08:00
|
|
|
//
|
2019-05-21 05:42:40 -05:00
|
|
|
// AppAssets.swift
|
2018-08-28 22:18:24 -07:00
|
|
|
// NetNewsWire
|
2018-02-17 18:19:25 -08:00
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 2/17/18.
|
|
|
|
// Copyright © 2018 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import AppKit
|
2019-04-15 15:03:05 -05:00
|
|
|
import RSCore
|
2018-02-17 18:19:25 -08:00
|
|
|
|
|
|
|
extension NSImage.Name {
|
2018-12-09 12:32:33 -08:00
|
|
|
static let star = NSImage.Name("star")
|
|
|
|
static let timelineStar = NSImage.Name("timelineStar")
|
2018-02-17 18:19:25 -08:00
|
|
|
}
|
|
|
|
|
2019-05-21 05:42:40 -05:00
|
|
|
struct AppAssets {
|
2018-02-17 18:19:25 -08:00
|
|
|
|
2019-04-15 15:03:05 -05:00
|
|
|
static var genericFeedImage: RSImage? = {
|
2018-02-17 18:19:25 -08:00
|
|
|
let path = "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns"
|
2019-04-15 15:03:05 -05:00
|
|
|
let image = RSImage(contentsOfFile: path)
|
2018-02-17 18:19:25 -08:00
|
|
|
return image
|
|
|
|
}()
|
2018-02-17 22:23:36 -08:00
|
|
|
|
2019-04-15 15:03:05 -05:00
|
|
|
static var timelineStar: RSImage! = {
|
|
|
|
return RSImage(named: .timelineStar)
|
2018-02-17 22:23:36 -08:00
|
|
|
}()
|
2019-05-01 06:49:50 -05:00
|
|
|
|
|
|
|
static var accountLocal: RSImage! = {
|
2019-05-01 12:37:13 -05:00
|
|
|
return RSImage(named: "accountLocal")
|
2019-05-01 06:49:50 -05:00
|
|
|
}()
|
|
|
|
|
2019-05-01 10:28:13 -05:00
|
|
|
static var accountFeedbin: RSImage! = {
|
2019-05-01 12:37:13 -05:00
|
|
|
return RSImage(named: "accountFeedbin")
|
2019-05-01 10:28:13 -05:00
|
|
|
}()
|
|
|
|
|
2019-06-20 07:22:51 -05:00
|
|
|
static var accountFreshRSS: RSImage! = {
|
|
|
|
return RSImage(named: "accountFreshRSS")
|
2019-06-19 15:40:03 -05:00
|
|
|
}()
|
|
|
|
|
2019-05-21 05:42:40 -05:00
|
|
|
static var faviconTemplateImage: RSImage = {
|
|
|
|
return RSImage(named: "faviconTemplateImage")!
|
|
|
|
}()
|
2019-06-14 15:33:13 -05:00
|
|
|
|
2019-06-14 15:35:12 -05:00
|
|
|
static var avatarLightBackgroundColor: NSColor = {
|
|
|
|
return NSColor(named: NSColor.Name("avatarLightBackgroundColor"))!
|
2019-06-14 15:33:13 -05:00
|
|
|
}()
|
|
|
|
|
|
|
|
static var avatarDarkBackgroundColor: NSColor = {
|
|
|
|
return NSColor(named: NSColor.Name("avatarDarkBackgroundColor"))!
|
|
|
|
}()
|
2019-09-17 20:26:49 -05:00
|
|
|
|
|
|
|
static var searchFeedImage: RSImage = {
|
|
|
|
return RSImage(named: NSImage.smartBadgeTemplateName)!
|
|
|
|
}()
|
|
|
|
|
|
|
|
static var starredFeedImage: RSImage = {
|
|
|
|
return RSImage(named: NSImage.smartBadgeTemplateName)!
|
|
|
|
}()
|
|
|
|
|
|
|
|
static var todayFeedImage: RSImage = {
|
|
|
|
return RSImage(named: NSImage.smartBadgeTemplateName)!
|
|
|
|
}()
|
|
|
|
|
|
|
|
static var unreadFeedImage: RSImage = {
|
|
|
|
return RSImage(named: NSImage.smartBadgeTemplateName)!
|
|
|
|
}()
|
|
|
|
|
2018-02-17 18:19:25 -08:00
|
|
|
}
|