mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 02:20:10 +08:00
refactor(settings): update MCP logo opacity and remove unused notes settings
- Adjust MCP logo opacity in MCPSettings and McpTool components for improved visual consistency. - Remove notes settings entry from SettingsPage to streamline the settings interface.
This commit is contained in:
parent
265934be5a
commit
e093a18deb
@ -39,7 +39,6 @@ import { useTranslation } from 'react-i18next'
|
||||
import { useLocation, useNavigate } from 'react-router-dom'
|
||||
import styled from 'styled-components'
|
||||
|
||||
import { McpLogo } from '../Icons'
|
||||
import MinAppIcon from '../Icons/MinAppIcon'
|
||||
import MinAppTabsPool from '../MinApp/MinAppTabsPool'
|
||||
import WindowControls from '../WindowControls'
|
||||
@ -99,8 +98,6 @@ const getTabIcon = (
|
||||
return <NotepadText size={14} />
|
||||
case 'knowledge':
|
||||
return <FileSearch size={14} />
|
||||
case 'mcp':
|
||||
return <McpLogo width={14} height={14} />
|
||||
case 'files':
|
||||
return <Folder size={14} />
|
||||
case 'settings':
|
||||
|
||||
@ -137,7 +137,7 @@ const MCPToolsSection = ({ tools, server, onToggleTool, onToggleAutoApprove }: M
|
||||
{
|
||||
title: (
|
||||
<Flex align="center" justify="center" gap={4}>
|
||||
<McpLogo width={14} height={14} />
|
||||
<McpLogo width={14} height={14} style={{ opacity: 0.8 }} />
|
||||
<Typography.Text strong>{t('settings.mcp.tools.enable')}</Typography.Text>
|
||||
</Flex>
|
||||
),
|
||||
|
||||
@ -86,7 +86,7 @@ const MCPSettings: FC = () => {
|
||||
title={t('settings.mcp.servers', 'MCP Servers')}
|
||||
active={activeView === 'servers'}
|
||||
onClick={() => navigate('/settings/mcp/servers')}
|
||||
icon={<McpLogo width={18} height={18} />}
|
||||
icon={<McpLogo width={18} height={18} style={{ opacity: 0.8 }} />}
|
||||
titleStyle={{ fontWeight: 500 }}
|
||||
/>
|
||||
<DividerWithText text={t('settings.mcp.discover', 'Discover')} style={{ margin: '10px 0 8px 0' }} />
|
||||
|
||||
@ -114,12 +114,6 @@ const SettingsPage: FC = () => {
|
||||
{t('settings.tool.preprocess.title')}
|
||||
</MenuItem>
|
||||
</MenuItemLink>
|
||||
<MenuItemLink to="/settings/notes">
|
||||
<MenuItem className={isRoute('/settings/notes')}>
|
||||
<NotebookPen size={18} />
|
||||
{t('notes.settings.title')}
|
||||
</MenuItem>
|
||||
</MenuItemLink>
|
||||
<MenuItemLink to="/settings/quickphrase">
|
||||
<MenuItem className={isRoute('/settings/quickphrase')}>
|
||||
<Zap size={18} />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user