Make the unread count color in the Feeds list a little lighter. Set up the colors as an app asset.
This commit is contained in:
parent
0581d94935
commit
596d3e1101
|
@ -182,6 +182,10 @@ struct AppAssets {
|
|||
return UIColor(named: "vibrantTextColor")!
|
||||
}()
|
||||
|
||||
static var unreadCountBackgroundColor: UIColor = {
|
||||
return UIColor(named: "unreadCountBackgroundColor")!
|
||||
}()
|
||||
|
||||
static func image(for accountType: AccountType) -> UIImage? {
|
||||
switch accountType {
|
||||
case .onMyMac:
|
||||
|
|
|
@ -15,7 +15,7 @@ class MasterFeedUnreadCountView : UIView {
|
|||
}
|
||||
|
||||
let cornerRadius = 8.0
|
||||
let bgColor = UIColor.darkGray
|
||||
let bgColor = AppAssets.unreadCountBackgroundColor
|
||||
var textColor: UIColor {
|
||||
return UIColor.white
|
||||
}
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
},
|
||||
"colors" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"color" : {
|
||||
"platform" : "ios",
|
||||
"reference" : "systemGray2Color"
|
||||
}
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"platform" : "ios",
|
||||
"reference" : "systemGray2Color"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue