diff --git a/src/screens/message/components/ChatScreen/SegmentRenderer.tsx b/src/screens/message/components/ChatScreen/SegmentRenderer.tsx index 0f52db0..6fc85a1 100644 --- a/src/screens/message/components/ChatScreen/SegmentRenderer.tsx +++ b/src/screens/message/components/ChatScreen/SegmentRenderer.tsx @@ -847,7 +847,7 @@ function createSegmentStyles(colors: AppColors) { marginTop: 2, }, - // 文本 - 柔和风格:深灰色文字 + 正常字重 + // 文本 - 适配暗色模式 textContent: { fontSize: 17.5, lineHeight: 25, @@ -855,10 +855,10 @@ function createSegmentStyles(colors: AppColors) { fontWeight: '400', }, textMe: { - color: '#2A2A2A', + color: colors.chat.textPrimary, }, textOther: { - color: '#2A2A2A', + color: colors.chat.textPrimary, }, // @提及 - 微信/QQ 风格:更精致的高亮 diff --git a/src/screens/message/components/ChatScreen/styles.ts b/src/screens/message/components/ChatScreen/styles.ts index b3e87b6..8b8766a 100644 --- a/src/screens/message/components/ChatScreen/styles.ts +++ b/src/screens/message/components/ChatScreen/styles.ts @@ -227,7 +227,7 @@ export function createChatScreenStyles(colors: AppColors) { }, senderName: { fontSize: 14, - color: '#555555', // 柔和的深灰色 + color: colors.chat.textSecondary, // 使用主题次要文字颜色 marginBottom: 4, marginLeft: 4, fontWeight: '600', @@ -272,14 +272,14 @@ export function createChatScreenStyles(colors: AppColors) { borderStyle: 'dashed', }, myBubbleText: { - color: '#2A2A2A', - fontSize: 18, // 更大字体 - lineHeight: 25, // 相应调大行高 + color: colors.chat.textPrimary, // 使用主题文字颜色 + fontSize: 18, + lineHeight: 25, letterSpacing: 0.1, fontWeight: '400', }, theirBubbleText: { - color: '#2A2A2A', + color: colors.chat.textPrimary, // 使用主题文字颜色 fontSize: 18, lineHeight: 25, letterSpacing: 0.1, diff --git a/src/theme/palettes.ts b/src/theme/palettes.ts index c9f68b9..9a14cc3 100644 --- a/src/theme/palettes.ts +++ b/src/theme/palettes.ts @@ -168,8 +168,8 @@ export const darkColors = { link: '#5AC8FA', success: '#32D74B', danger: '#FF453A', - bubbleOutgoing: '#3A3A3C', - bubbleIncoming: '#2C2C2E', + bubbleOutgoing: '#2E5A8C', // 暗色模式:深蓝气泡 + bubbleIncoming: '#2C2C2E', // 暗色模式:灰色气泡 replyTint: '#1A3A52', replyTintActive: '#224060', replyBorder: '#4A88C7',