mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 20:16:54 +01:00
Fix timeline bug where vibrancy could be lost
This commit is contained in:
parent
21d5c321b4
commit
44533399e6
@ -142,19 +142,19 @@ private extension MasterTimelineTableViewCell {
|
|||||||
|
|
||||||
func updateTitleView() {
|
func updateTitleView() {
|
||||||
titleView.font = MasterTimelineDefaultCellLayout.titleFont
|
titleView.font = MasterTimelineDefaultCellLayout.titleFont
|
||||||
titleView.textColor = .label
|
titleView.textColor = labelColor
|
||||||
updateTextFieldText(titleView, cellData?.title)
|
updateTextFieldText(titleView, cellData?.title)
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateSummaryView() {
|
func updateSummaryView() {
|
||||||
summaryView.font = MasterTimelineDefaultCellLayout.summaryFont
|
summaryView.font = MasterTimelineDefaultCellLayout.summaryFont
|
||||||
summaryView.textColor = .label
|
summaryView.textColor = labelColor
|
||||||
updateTextFieldText(summaryView, cellData?.summary)
|
updateTextFieldText(summaryView, cellData?.summary)
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateDateView() {
|
func updateDateView() {
|
||||||
dateView.font = MasterTimelineDefaultCellLayout.dateFont
|
dateView.font = MasterTimelineDefaultCellLayout.dateFont
|
||||||
dateView.textColor = .secondaryLabel
|
dateView.textColor = secondaryLabelColor
|
||||||
updateTextFieldText(dateView, cellData.dateString)
|
updateTextFieldText(dateView, cellData.dateString)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ private extension MasterTimelineTableViewCell {
|
|||||||
if cellData.showFeedName {
|
if cellData.showFeedName {
|
||||||
showView(feedNameView)
|
showView(feedNameView)
|
||||||
feedNameView.font = MasterTimelineDefaultCellLayout.feedNameFont
|
feedNameView.font = MasterTimelineDefaultCellLayout.feedNameFont
|
||||||
feedNameView.textColor = .secondaryLabel
|
feedNameView.textColor = secondaryLabelColor
|
||||||
updateTextFieldText(feedNameView, cellData.feedName)
|
updateTextFieldText(feedNameView, cellData.feedName)
|
||||||
} else {
|
} else {
|
||||||
hideView(feedNameView)
|
hideView(feedNameView)
|
||||||
|
@ -14,6 +14,10 @@ class VibrantTableViewCell: UITableViewCell {
|
|||||||
return isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.label
|
return isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.label
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var secondaryLabelColor: UIColor {
|
||||||
|
return isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.secondaryLabel
|
||||||
|
}
|
||||||
|
|
||||||
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
||||||
super.init(style: style, reuseIdentifier: reuseIdentifier)
|
super.init(style: style, reuseIdentifier: reuseIdentifier)
|
||||||
commonInit()
|
commonInit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user