Skip to content

Commit 0a1a405

Browse files
committed
style(ui): 优化界面颜色和文字样式
- 在App视图中取消撤销提示框的草稿状态 - 修改DropdownMenu标题颜色为#229ac3,增强视觉统一 - 精简McpStatusList的状态文本样式,去除加粗效果 - 将UndoSelector中的标题文字颜色改为#229ac3,提升界面一致性
1 parent 2dd9794 commit 0a1a405

4 files changed

Lines changed: 7 additions & 16 deletions

File tree

src/ui/components/DropdownMenu/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const DropdownMenu = React.memo(function DropdownMenu({
6464
maxVisible = 8,
6565
width,
6666
title,
67-
titleColor = "magenta",
67+
titleColor = "#229ac3",
6868
activeColor = "cyanBright",
6969
helpText,
7070
emptyText = "No items found",

src/ui/views/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ function App({ projectRoot, initialPrompt, onRestart }: AppProps): React.ReactEl
751751
targets={undoTargets}
752752
onSelect={(target, restoreMode) => void handleUndoRestore(target, restoreMode)}
753753
onCancel={() => {
754+
setPromptDraft(null);
754755
setView("chat");
755756
setShowWelcome(true);
756757
}}

src/ui/views/McpStatusList.tsx

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -195,20 +195,10 @@ function ServerListView({
195195
</Text>
196196
<Box gap={1}>
197197
<Text dimColor>(</Text>
198-
<Text color="green" bold>
199-
{readyCount} ready,
200-
</Text>
201-
<Text color="yellow" bold>
202-
{startingCount} starting,
203-
</Text>
204-
{reconnectingCount > 0 && (
205-
<Text color="#ff9900" bold>
206-
{reconnectingCount} reconnecting,
207-
</Text>
208-
)}
209-
<Text color="red" bold>
210-
{failedCount} failed
211-
</Text>
198+
<Text color="green">{readyCount} ready,</Text>
199+
<Text color="yellow">{startingCount} starting,</Text>
200+
{reconnectingCount > 0 && <Text color="#ff9900">{reconnectingCount} reconnecting,</Text>}
201+
<Text color="red">{failedCount} failed</Text>
212202
<Text dimColor>)</Text>
213203
</Box>
214204
</Box>

src/ui/views/UndoSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function UndoSelector({ targets, onSelect, onCancel }: Props): React.Reac
9999
>
100100
<Box flexDirection="column" borderStyle="round" borderDimColor flexGrow={1} overflow="hidden">
101101
<Box paddingX={1}>
102-
<Text bold color="cyanBright">
102+
<Text bold color="#229ac3">
103103
Undo
104104
</Text>
105105
<Text dimColor> restore to the point before a prompt</Text>

0 commit comments

Comments
 (0)