mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Fix #4986
This commit is contained in:
2 files changed
+8
-4
No files matched your search
@@ -153,7 +153,7 @@ class MainTimelineFeedCell: UITableViewCell {
|
||||
}
|
||||
|
||||
func titleTextColor(for state: UICellConfigurationState) -> UIColor {
|
||||
let isSelected = state.isSelected || state.isHighlighted || state.isFocused || state.isSwiped
|
||||
let isSelected = state.isSelected || state.isHighlighted || state.isEditing || state.isSwiped
|
||||
if isSelected {
|
||||
return .white
|
||||
} else {
|
||||
@@ -200,8 +200,10 @@ class MainTimelineFeedCell: UITableViewCell {
|
||||
backgroundConfig.edgesAddingLayoutMarginsToBackgroundInsets = [.leading, .trailing]
|
||||
backgroundConfig.backgroundInsets = NSDirectionalEdgeInsets(top: 0, leading: !isPreview ? -4 : -12, bottom: 0, trailing: !isPreview ? -4 : -12)
|
||||
}
|
||||
|
||||
let isActive = state.isSelected || state.isHighlighted || state.isEditing || state.isSwiped
|
||||
|
||||
if state.isSelected || state.isHighlighted || state.isFocused || state.isSwiped {
|
||||
if isActive {
|
||||
backgroundConfig.backgroundColor = Assets.Colors.primaryAccent
|
||||
articleTitle.textColor = titleTextColor(for: state)
|
||||
articleDate.textColor = .lightText
|
||||
|
||||
@@ -210,7 +210,7 @@ class MainTimelineIconFeedCell: UITableViewCell {
|
||||
}
|
||||
|
||||
func titleTextColor(for state: UICellConfigurationState) -> UIColor {
|
||||
let isSelected = state.isSelected || state.isHighlighted || state.isFocused || state.isSwiped
|
||||
let isSelected = state.isSelected || state.isHighlighted || state.isEditing || state.isSwiped
|
||||
if isSelected {
|
||||
return .white
|
||||
} else {
|
||||
@@ -228,7 +228,9 @@ class MainTimelineIconFeedCell: UITableViewCell {
|
||||
backgroundConfig.backgroundInsets = NSDirectionalEdgeInsets(top: 0, leading: !isPreview ? -4 : -12, bottom: 0, trailing: !isPreview ? -4 : -12)
|
||||
}
|
||||
|
||||
if state.isSelected || state.isHighlighted || state.isFocused || state.isSwiped {
|
||||
let isActive = state.isSelected || state.isHighlighted || state.isEditing || state.isSwiped
|
||||
|
||||
if isActive {
|
||||
backgroundConfig.backgroundColor = Assets.Colors.primaryAccent
|
||||
articleTitle.textColor = titleTextColor(for: state)
|
||||
articleDate.textColor = .lightText
|
||||
|
||||
Reference in new issue
Block a user