From a7f6b47f1a944ef1f6bfe072cfa4c66e31a52757 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 18 Jul 2018 13:34:44 -0700 Subject: [PATCH] Use semantic colors in the timeline text fields. --- .../Timeline/Cell/TimelineTableCellView.swift | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift b/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift index 6ab0e97cf..7112c0158 100644 --- a/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift +++ b/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift @@ -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() {