@@ -3,7 +3,6 @@ import SwiftUI
33@MainActor
44struct ChatCodeBlockView : View {
55 let block : ChatCodeBlock
6- let textColor : Color
76
87 var body : some View {
98 VStack ( alignment: . leading, spacing: 6 ) {
@@ -15,7 +14,7 @@ struct ChatCodeBlockView: View {
1514 ScrollView ( . horizontal, showsIndicators: false ) {
1615 Text ( self . attributedCode)
1716 . font ( OpenClawChatTypography . mono ( size: 13 , relativeTo: . footnote) )
18- . foregroundStyle ( self . textColor )
17+ . foregroundStyle ( OpenClawChatTheme . assistantText )
1918 . lineSpacing ( 2 )
2019 . textSelection ( . enabled)
2120 }
@@ -43,7 +42,6 @@ struct ChatCodeBlockView: View {
4342@MainActor
4443struct ChatMarkdownTableView : View {
4544 let table : ChatMarkdownTable
46- let textColor : Color
4745
4846 var body : some View {
4947 ScrollView ( . horizontal, showsIndicators: false ) {
@@ -78,7 +76,7 @@ struct ChatMarkdownTableView: View {
7876 private func cell( _ text: String , column: Int , isHeader: Bool ) -> some View {
7977 Text ( self . inlineMarkdown ( text) )
8078 . font ( isHeader ? OpenClawChatTypography . footnoteSemiBold : OpenClawChatTypography . footnote)
81- . foregroundStyle ( self . textColor )
79+ . foregroundStyle ( OpenClawChatTheme . assistantText )
8280 . textSelection ( . enabled)
8381 }
8482
0 commit comments