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:
icarus 2025-09-10 22:13:35 +08:00
parent cf008ca22e
commit eaf4bd18a3
2 changed files with 8 additions and 1 deletions

View File

@ -4615,6 +4615,7 @@
"paintings": "绘画",
"settings": "设置",
"store": "助手库",
"terminal": "终端",
"translate": "翻译"
},
"trace": {

View File

@ -1,7 +1,7 @@
import App from '@renderer/components/MinApp/MinApp'
import { useMinapps } from '@renderer/hooks/useMinapps'
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 { useMemo } from 'react'
import { useTranslation } from 'react-i18next'
@ -57,6 +57,12 @@ const LaunchpadPage: FC = () => {
path: '/code',
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" />,
text: t('title.notes'),