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