Skip to content

Commit

Permalink
Merge pull request #965 from kiwix/964-fix-search-snippet-colour-for-…
Browse files Browse the repository at this point in the history
…dark-mode

Fix snippets' color
  • Loading branch information
kelson42 committed Sep 3, 2024
2 parents 58bfb76 + 58e02a8 commit 46c2726
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Views/BuildingBlocks/ArticleCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ struct ArticleCell: View {
Spacer().frame(height: 2)
Group {
if let snippet = snippet {
Text(AttributedString(snippet)).lineLimit(4)
Text(AttributedString(snippet)
.settingAttributes(AttributeContainer([.foregroundColor: Color.primary])))
.lineLimit(4)
}
}.font(.caption).multilineTextAlignment(.leading)
Spacer(minLength: 0)
Expand Down

0 comments on commit 46c2726

Please sign in to comment.