Use semantic colors in the timeline text fields.

This commit is contained in:
Brent Simmons 2018-07-18 13:34:44 -07:00
parent f736275c73
commit a7f6b47f1a

View File

@ -189,16 +189,22 @@ private extension TimelineTableCellView {
updateTitleView() updateTitleView()
if isEmphasized && isSelected { titleView.textColor = NSColor.labelColor
textFields.forEach { $0.textColor = NSColor.white } feedNameView.textColor = NSColor.secondaryLabelColor
} dateView.textColor = NSColor.secondaryLabelColor
else { summaryView.textColor = NSColor.secondaryLabelColor
feedNameView.textColor = cellAppearance.feedNameColor textView.textColor = NSColor.labelColor
dateView.textColor = cellAppearance.dateColor
titleView.textColor = cellAppearance.titleColor // if isEmphasized && isSelected {
summaryView.textColor = cellAppearance.textColor // textFields.forEach { $0.textColor = NSColor.white }
textView.textColor = cellAppearance.textOnlyColor // }
} // else {
// feedNameView.textColor = cellAppearance.feedNameColor
// dateView.textColor = cellAppearance.dateColor
// titleView.textColor = cellAppearance.titleColor
// summaryView.textColor = cellAppearance.textColor
// textView.textColor = cellAppearance.textOnlyColor
// }
} }
func updateTextFieldFonts() { func updateTextFieldFonts() {