Skip to content

Commit 95be248

Browse files
committed
feat: 更新 UI 组件样式和提示文本
- 修改多个组件中的文本颜色为白色以提高可读性 - 更新消息前缀符号从 '❯ ' 和 '🤖 ' 为 '> ' 和 '• ' - 移除启动消息中的表情符号 - 统一 UI 中的文本颜色和样式
1 parent 1f5c4e4 commit 95be248

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/ui/components/ChatStatusBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const ChatStatusBar: React.FC<ChatStatusBarProps> = ({
2020
<Box flexDirection="row" justifyContent="space-between" paddingX={2} paddingY={0}>
2121
<Box flexDirection="row" gap={2}>
2222
{messageCount > 0 && (
23-
<Text color="gray" dimColor>
23+
<Text color="white">
2424
{messageCount} messages
2525
</Text>
2626
)}

src/ui/components/MessageArea.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ export const MessageArea: React.FC<MessageAreaProps> = ({
6262
{/* 使用提示 - 仿照 Gemini 的 Tips 风格 */}
6363
<Box flexDirection="column" marginBottom={2}>
6464
<Box marginBottom={1}>
65-
<Text color="gray" bold>
65+
<Text color="white" bold>
6666
使用指南:
6767
</Text>
6868
</Box>
69-
<Text color="gray">1. 输入问题、编辑文件或运行命令</Text>
70-
<Text color="gray">2. 使用 /init 创建项目配置文件</Text>
71-
<Text color="gray">3. 输入 /help 查看所有 slash 命令</Text>
72-
<Text color="gray">4. 按 Ctrl+C 退出应用</Text>
69+
<Text color="white">1. 输入问题、编辑文件或运行命令</Text>
70+
<Text color="white">2. 使用 /init 创建项目配置文件</Text>
71+
<Text color="white">3. 输入 /help 查看所有 slash 命令</Text>
72+
<Text color="white">4. 按 Ctrl+C 退出应用</Text>
7373
{!isInitialized && (
7474
<>
7575
<Text></Text>
@@ -102,11 +102,11 @@ export const MessageArea: React.FC<MessageAreaProps> = ({
102102

103103
{/* 使用指南(简化版) - 左对齐 */}
104104
<Box flexDirection="column" marginTop={2}>
105-
<Text color="gray">
105+
<Text color="white">
106106
输入问题开始对话 • 使用 /init 创建项目配置 • 输入 /help 查看 slash 命令
107107
</Text>
108108
<Box marginTop={1}>
109-
<Text color="gray" dimColor>
109+
<Text color="gray">
110110
{getCopyright()}
111111
</Text>
112112
</Box>

src/ui/components/MessageRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export const MessageRenderer: React.FC<MessageRendererProps> = ({
260260
terminalWidth,
261261
}) => {
262262
const blocks = parseMarkdown(content);
263-
const prefix = role === 'user' ? ' ' : '🤖 ';
263+
const prefix = role === 'user' ? '> ' : ' ';
264264

265265
return (
266266
<Box flexDirection="column" marginBottom={1}>

src/ui/components/ReplInterface.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const ReplInterface: React.FC<ReplInterfaceProps> = ({ onCommandSubmit })
7878

7979
{/* 帮助提示 */}
8080
<Box marginTop={1}>
81-
<Text color="gray">输入命令后按回车执行,Ctrl+C 退出,/help 查看帮助</Text>
81+
<Text color="white">输入命令后按回车执行,Ctrl+C 退出,/help 查看帮助</Text>
8282
</Box>
8383
</Box>
8484
);

src/ui/hooks/useAppInitializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const useAppInitializer = (
4343
setHasApiKey(true);
4444
setIsInitialized(true);
4545

46-
addAssistantMessage('🚀 Blade Code 助手已就绪!');
46+
addAssistantMessage('Blade Code 助手已就绪!');
4747
addAssistantMessage('请输入您的问题,我将为您提供帮助。');
4848

4949
console.log('Blade 应用初始化完成');

0 commit comments

Comments
 (0)