mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 16:20:53 +01:00
Change disclosure triangles to be gray instead of blue. Issue #1200
This commit is contained in:
parent
498bb365b2
commit
456abc965f
@ -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? {
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user