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:
Brent Simmons 2019-10-26 21:30:44 -07:00
parent 0581d94935
commit 596d3e1101
3 changed files with 33 additions and 1 deletions

View File

@ -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:

View File

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

View File

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