diff --git a/Evergreen/Base.lproj/MainWindow.storyboard b/Evergreen/Base.lproj/MainWindow.storyboard index 855462a56..da1eb841d 100644 --- a/Evergreen/Base.lproj/MainWindow.storyboard +++ b/Evergreen/Base.lproj/MainWindow.storyboard @@ -1,8 +1,8 @@ - + - + @@ -236,7 +236,7 @@ - + @@ -351,11 +351,11 @@ - - + - - - - - - - + + + + + + + diff --git a/Evergreen/MainWindow/MainWindowSplitView.swift b/Evergreen/MainWindow/MainWindowSplitView.swift index 0af4bfe13..aac3c3c70 100644 --- a/Evergreen/MainWindow/MainWindowSplitView.swift +++ b/Evergreen/MainWindow/MainWindowSplitView.swift @@ -10,9 +10,9 @@ import AppKit class MainWindowSplitView: NSSplitView { - private let splitViewDividerColor = NSColor(calibratedWhite: 0.75, alpha: 1.0) - - override var dividerColor: NSColor { - return splitViewDividerColor - } +// private let splitViewDividerColor = NSColor(calibratedWhite: 0.75, alpha: 1.0) +// +// override var dividerColor: NSColor { +// return splitViewDividerColor +// } } diff --git a/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift b/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift index e5c5874a8..7112c0158 100644 --- a/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift +++ b/Evergreen/MainWindow/Timeline/Cell/TimelineTableCellView.swift @@ -48,13 +48,13 @@ class TimelineTableCellView: NSTableCellView { return true } - override var isOpaque: Bool { - return true - } - - override var wantsUpdateLayer: Bool { - return true - } +// override var isOpaque: Bool { +// return true +// } +// +// override var wantsUpdateLayer: Bool { +// return true +// } var isEmphasized = false { didSet { @@ -122,20 +122,20 @@ class TimelineTableCellView: NSTableCellView { starView.rs_setFrameIfNotEqual(layoutRects.starRect) } - override func updateLayer() { - - let color: NSColor - if isSelected { - color = isEmphasized ? NSColor.alternateSelectedControlColor : NSColor.secondarySelectedControlColor - } - else { - color = NSColor.white - } - - if layer?.backgroundColor != color.cgColor { - layer?.backgroundColor = color.cgColor - } - } +// override func updateLayer() { +// +// let color: NSColor +// if isSelected { +// color = isEmphasized ? NSColor.alternateSelectedControlColor : NSColor.secondarySelectedControlColor +// } +// else { +// color = NSColor.white +// } +// +// if layer?.backgroundColor != color.cgColor { +// layer?.backgroundColor = color.cgColor +// } +// } } // MARK: - Private @@ -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() {