Make smart feed icon color configurable
This commit is contained in:
parent
00cb29c5c1
commit
a5cfeb1f12
|
@ -40,7 +40,7 @@ protocol PseudoFeed: class, DisplayNameProvider, UnreadCountProvider, SmallIconP
|
||||||
}
|
}
|
||||||
|
|
||||||
private var smartFeedIcon: UIImage = {
|
private var smartFeedIcon: UIImage = {
|
||||||
return AppAssets.cogImage
|
return AppAssets.smartFeedImage
|
||||||
}()
|
}()
|
||||||
|
|
||||||
extension PseudoFeed {
|
extension PseudoFeed {
|
||||||
|
|
|
@ -32,10 +32,6 @@ struct AppAssets {
|
||||||
return image.maskWithColor(color: AppAssets.chevronDisclosureColor)!
|
return image.maskWithColor(color: AppAssets.chevronDisclosureColor)!
|
||||||
}()
|
}()
|
||||||
|
|
||||||
static var cogImage: RSImage = {
|
|
||||||
return RSImage(named: "cogImage")!
|
|
||||||
}()
|
|
||||||
|
|
||||||
static var feedImage: RSImage = {
|
static var feedImage: RSImage = {
|
||||||
return RSImage(named: "rssImage")!
|
return RSImage(named: "rssImage")!
|
||||||
}()
|
}()
|
||||||
|
@ -57,6 +53,15 @@ struct AppAssets {
|
||||||
return UIColor(named: "selectionBackgroundColor")!
|
return UIColor(named: "selectionBackgroundColor")!
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
static var smartFeedColor: UIColor = {
|
||||||
|
return UIColor(named: "smartFeedColor")!
|
||||||
|
}()
|
||||||
|
|
||||||
|
static var smartFeedImage: RSImage = {
|
||||||
|
let image = RSImage(named: "smartFeedImage")!
|
||||||
|
return image.maskWithColor(color: AppAssets.smartFeedColor)!
|
||||||
|
}()
|
||||||
|
|
||||||
static var starColor: UIColor = {
|
static var starColor: UIColor = {
|
||||||
return UIColor(named: "starColor")!
|
return UIColor(named: "starColor")!
|
||||||
}()
|
}()
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
},
|
||||||
|
"colors" : [
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"color" : {
|
||||||
|
"color-space" : "srgb",
|
||||||
|
"components" : {
|
||||||
|
"red" : "85",
|
||||||
|
"alpha" : "1.000",
|
||||||
|
"blue" : "85",
|
||||||
|
"green" : "85"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue