mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 23:10:20 +08:00
feat(launchpad): add terminal entry to launchpad menu
Add new terminal option to the launchpad with corresponding icon and route. The terminal entry uses a dark gradient background to match its command-line interface theme.
This commit is contained in:
parent
cf008ca22e
commit
eaf4bd18a3
@ -4615,6 +4615,7 @@
|
|||||||
"paintings": "绘画",
|
"paintings": "绘画",
|
||||||
"settings": "设置",
|
"settings": "设置",
|
||||||
"store": "助手库",
|
"store": "助手库",
|
||||||
|
"terminal": "终端",
|
||||||
"translate": "翻译"
|
"translate": "翻译"
|
||||||
},
|
},
|
||||||
"trace": {
|
"trace": {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import App from '@renderer/components/MinApp/MinApp'
|
import App from '@renderer/components/MinApp/MinApp'
|
||||||
import { useMinapps } from '@renderer/hooks/useMinapps'
|
import { useMinapps } from '@renderer/hooks/useMinapps'
|
||||||
import { useSettings } from '@renderer/hooks/useSettings'
|
import { useSettings } from '@renderer/hooks/useSettings'
|
||||||
import { Code, FileSearch, Folder, Languages, LayoutGrid, NotepadText, Palette, Sparkle } from 'lucide-react'
|
import { Code, FileSearch, Folder, Languages, LayoutGrid, NotepadText, Palette, Sparkle, Terminal } from 'lucide-react'
|
||||||
import type { FC } from 'react'
|
import type { FC } from 'react'
|
||||||
import { useMemo } from 'react'
|
import { useMemo } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
@ -57,6 +57,12 @@ const LaunchpadPage: FC = () => {
|
|||||||
path: '/code',
|
path: '/code',
|
||||||
bgColor: 'linear-gradient(135deg, #1F2937, #374151)' // Code CLI:高级暗黑色,代表专业和技术
|
bgColor: 'linear-gradient(135deg, #1F2937, #374151)' // Code CLI:高级暗黑色,代表专业和技术
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: <Terminal size={32} className="icon" />,
|
||||||
|
text: t('title.terminal'),
|
||||||
|
path: '/terminal',
|
||||||
|
bgColor: 'linear-gradient(135deg, #000000, #1F2937)' // Terminal:纯黑渐变,代表命令行界面
|
||||||
|
},
|
||||||
{
|
{
|
||||||
icon: <NotepadText size={32} className="icon" />,
|
icon: <NotepadText size={32} className="icon" />,
|
||||||
text: t('title.notes'),
|
text: t('title.notes'),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user