Change disclosure triangles to be gray instead of blue. Issue #1200

This commit is contained in:
Maurice Parker 2019-10-28 15:16:56 -05:00
parent 498bb365b2
commit 456abc965f
4 changed files with 9 additions and 6 deletions

View File

@ -182,8 +182,8 @@ struct AppAssets {
return UIColor(named: "vibrantTextColor")!
}()
static var unreadCountBackgroundColor: UIColor = {
return UIColor(named: "unreadCountBackgroundColor")!
static var controlBackgroundColor: UIColor = {
return UIColor(named: "controlBackgroundColor")!
}()
static func image(for accountType: AccountType) -> UIImage? {

View File

@ -199,11 +199,14 @@ private extension MasterFeedTableViewCell {
}
func updateVibrancy(animated: Bool) {
let tintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : AppAssets.secondaryAccentColor
let faviconTintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : AppAssets.secondaryAccentColor
let disclosureTintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : AppAssets.controlBackgroundColor
let duration = animated ? 0.6 : 0.0
UIView.animate(withDuration: duration) {
self.disclosureButton?.tintColor = tintColor
self.faviconImageView.tintColor = tintColor
self.disclosureButton?.tintColor = disclosureTintColor
self.faviconImageView.tintColor = faviconTintColor
}
}

View File

@ -15,7 +15,7 @@ class MasterFeedUnreadCountView : UIView {
}
let cornerRadius = 8.0
let bgColor = AppAssets.unreadCountBackgroundColor
let bgColor = AppAssets.controlBackgroundColor
var textColor: UIColor {
return UIColor.white
}