From c4025f479a176bb8007a99ca89dc6cccb1d5273a Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Sat, 27 Jun 2026 14:16:58 -0700 Subject: [PATCH] Update quick command button to use plus icon and clearer label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the play icon with a plus icon and update the label from "Command" to "Add Quick Command…" (including localizations). This provides clearer visual and textual cues that the action creates a new command rather than running an existing one. --- .../src/components/tab-bar/TabBarQuickCommandsButton.tsx | 8 ++++---- .../src/components/tab-bar/TabBarQuickCommandsMenu.tsx | 6 +++--- src/renderer/src/i18n/locales/en.json | 2 +- src/renderer/src/i18n/locales/es.json | 2 +- src/renderer/src/i18n/locales/ja.json | 2 +- src/renderer/src/i18n/locales/ko.json | 2 +- src/renderer/src/i18n/locales/zh.json | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/renderer/src/components/tab-bar/TabBarQuickCommandsButton.tsx b/src/renderer/src/components/tab-bar/TabBarQuickCommandsButton.tsx index 389280cad53..b7c921962a7 100644 --- a/src/renderer/src/components/tab-bar/TabBarQuickCommandsButton.tsx +++ b/src/renderer/src/components/tab-bar/TabBarQuickCommandsButton.tsx @@ -1,5 +1,5 @@ import { useMemo, useState } from 'react' -import { Play } from 'lucide-react' +import { Plus } from 'lucide-react' import { useAppStore } from '@/store' import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' import { @@ -136,7 +136,7 @@ export function TabBarQuickCommandsButton({ return null } - // Empty state: single "+ Command" button that opens the dialog directly. + // Empty state: single add button that opens the dialog directly. if (!hasAnyCommands) { return ( <> @@ -151,11 +151,11 @@ export function TabBarQuickCommandsButton({ 'Add quick command' )} > - + {translate( 'auto.components.tab.bar.TabBarQuickCommandsButton.a2c7a33831', - 'Command' + 'Add Quick Command…' )} diff --git a/src/renderer/src/components/tab-bar/TabBarQuickCommandsMenu.tsx b/src/renderer/src/components/tab-bar/TabBarQuickCommandsMenu.tsx index 77b4173cb61..7605861bb33 100644 --- a/src/renderer/src/components/tab-bar/TabBarQuickCommandsMenu.tsx +++ b/src/renderer/src/components/tab-bar/TabBarQuickCommandsMenu.tsx @@ -1,5 +1,5 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react' -import { ChevronDown, Pencil, Play, Trash2 } from 'lucide-react' +import { ChevronDown, Pencil, Play, Plus, Trash2 } from 'lucide-react' import { Command, CommandEmpty, @@ -373,10 +373,10 @@ export function TabBarQuickCommandsMenu({ }} className="flex w-full items-center gap-2 rounded-[5px] px-2 py-1.5 text-[12px] text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring" > - + {translate( 'auto.components.tab.bar.TabBarQuickCommandsButton.a2c7a33831', - 'Command' + 'Add Quick Command…' )} diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.json index 86fadeaa74a..61e822e0d7f 100644 --- a/src/renderer/src/i18n/locales/en.json +++ b/src/renderer/src/i18n/locales/en.json @@ -2601,7 +2601,7 @@ "39676a184c": "Open any file, URL, agent, ..." }, "TabBarQuickCommandsButton": { - "a2c7a33831": "Command", + "a2c7a33831": "Add Quick Command…", "20bbd75896": "No commands", "b82e237a4b": "More quick commands", "85482c57bc": "Run quick command", diff --git a/src/renderer/src/i18n/locales/es.json b/src/renderer/src/i18n/locales/es.json index b3e36b78356..d52d7bbb308 100644 --- a/src/renderer/src/i18n/locales/es.json +++ b/src/renderer/src/i18n/locales/es.json @@ -2601,7 +2601,7 @@ "39676a184c": "Abra cualquier archivo, URL, agente, ..." }, "TabBarQuickCommandsButton": { - "a2c7a33831": "Comando", + "a2c7a33831": "Agregar comando rápido…", "20bbd75896": "Sin comandos", "b82e237a4b": "Comandos más rápidos", "85482c57bc": "Ejecutar comando rápido", diff --git a/src/renderer/src/i18n/locales/ja.json b/src/renderer/src/i18n/locales/ja.json index 90ae3692240..c6de483b70f 100644 --- a/src/renderer/src/i18n/locales/ja.json +++ b/src/renderer/src/i18n/locales/ja.json @@ -2601,7 +2601,7 @@ "39676a184c": "任意のファイル、URL、agent などを開きます..." }, "TabBarQuickCommandsButton": { - "a2c7a33831": "コマンド", + "a2c7a33831": "クイックコマンドを追加…", "20bbd75896": "コマンドはありません", "b82e237a4b": "よりクイックなコマンド", "85482c57bc": "クイックコマンドを実行する", diff --git a/src/renderer/src/i18n/locales/ko.json b/src/renderer/src/i18n/locales/ko.json index e4b35727536..2c7e5beb47e 100644 --- a/src/renderer/src/i18n/locales/ko.json +++ b/src/renderer/src/i18n/locales/ko.json @@ -2601,7 +2601,7 @@ "39676a184c": "모든 파일, URL, agent를 엽니다..." }, "TabBarQuickCommandsButton": { - "a2c7a33831": "명령", + "a2c7a33831": "빠른 명령 추가...", "20bbd75896": "명령 없음", "b82e237a4b": "빠른 명령 더 보기", "85482c57bc": "빠른 명령 실행", diff --git a/src/renderer/src/i18n/locales/zh.json b/src/renderer/src/i18n/locales/zh.json index 0c7560e9790..c95ce8fc541 100644 --- a/src/renderer/src/i18n/locales/zh.json +++ b/src/renderer/src/i18n/locales/zh.json @@ -2601,7 +2601,7 @@ "39676a184c": "打开任何文件、URL、智能体..." }, "TabBarQuickCommandsButton": { - "a2c7a33831": "命令", + "a2c7a33831": "添加快速命令...", "20bbd75896": "无命令", "b82e237a4b": "更快捷的命令", "85482c57bc": "运行快速命令",