Make smart feed icon color configurable

This commit is contained in:
Maurice Parker 2019-04-28 15:11:02 -05:00
parent 00cb29c5c1
commit a5cfeb1f12
5 changed files with 30 additions and 5 deletions

View File

@ -40,7 +40,7 @@ protocol PseudoFeed: class, DisplayNameProvider, UnreadCountProvider, SmallIconP
}
private var smartFeedIcon: UIImage = {
return AppAssets.cogImage
return AppAssets.smartFeedImage
}()
extension PseudoFeed {

View File

@ -32,10 +32,6 @@ struct AppAssets {
return image.maskWithColor(color: AppAssets.chevronDisclosureColor)!
}()
static var cogImage: RSImage = {
return RSImage(named: "cogImage")!
}()
static var feedImage: RSImage = {
return RSImage(named: "rssImage")!
}()
@ -57,6 +53,15 @@ struct AppAssets {
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 = {
return UIColor(named: "starColor")!
}()

View File

@ -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"
}
}
}
]
}