Skip to content

Commit 0096f03

Browse files
authored
Set text color from palette in ChatChannelListItemView (#3629)
1 parent d3f24d8 commit 0096f03

File tree

7 files changed

+3
-0
lines changed

7 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1111
### StreamChatUI
1212
### 🐞 Fixed
1313
- Fix composer content not cleared when draft deleted event is triggered [#3626](https://github.com/GetStream/stream-chat-swift/pull/3626)
14+
- Set `ColorPalette.text` to `titleLabel` in `ChatChannelListItemView` [#3629](https://github.com/GetStream/stream-chat-swift/pull/3629)
1415

1516
# [4.74.0](https://github.com/GetStream/stream-chat-swift/releases/tag/4.74.0)
1617
_March 14, 2025_

Sources/StreamChatUI/ChatChannelList/ChatChannelListItemView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ open class ChatChannelListItemView: _View, ThemeProvider, SwiftUIRepresentable {
248248
super.setUpAppearance()
249249
backgroundColor = contentBackgroundColor
250250

251+
titleLabel.textColor = appearance.colorPalette.text
251252
titleLabel.font = appearance.fonts.bodyBold
252253

253254
subtitleLabel.textColor = appearance.colorPalette.subtitleText

Tests/StreamChatUITests/SnapshotTests/ChatChannelList/ChatChannelListItemView_Tests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,7 @@ final class ChatChannelListItemView_Tests: XCTestCase {
910910
var appearance = Appearance()
911911
appearance.fonts.bodyBold = .italicSystemFont(ofSize: 20)
912912
appearance.colorPalette.subtitleText = .cyan
913+
appearance.colorPalette.text = .red
913914

914915
let view = channelItemView(
915916
content: .init(
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)