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
1 changed files with 16 additions and 10 deletions

View File

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