diff --git a/iOS/AppAssets.swift b/iOS/AppAssets.swift index 77219db2c..88d50df7a 100644 --- a/iOS/AppAssets.swift +++ b/iOS/AppAssets.swift @@ -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: diff --git a/iOS/MasterFeed/Cell/MasterFeedUnreadCountView.swift b/iOS/MasterFeed/Cell/MasterFeedUnreadCountView.swift index 733187341..a5093a6bb 100644 --- a/iOS/MasterFeed/Cell/MasterFeedUnreadCountView.swift +++ b/iOS/MasterFeed/Cell/MasterFeedUnreadCountView.swift @@ -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 } diff --git a/iOS/Resources/Assets.xcassets/unreadCountBackgroundColor.colorset/Contents.json b/iOS/Resources/Assets.xcassets/unreadCountBackgroundColor.colorset/Contents.json new file mode 100644 index 000000000..fab921c40 --- /dev/null +++ b/iOS/Resources/Assets.xcassets/unreadCountBackgroundColor.colorset/Contents.json @@ -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" + } + } + ] +} \ No newline at end of file