mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 23:10:20 +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 { useLocation, useNavigate } from 'react-router-dom'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
|
|
||||||
import { McpLogo } from '../Icons'
|
|
||||||
import MinAppIcon from '../Icons/MinAppIcon'
|
import MinAppIcon from '../Icons/MinAppIcon'
|
||||||
import MinAppTabsPool from '../MinApp/MinAppTabsPool'
|
import MinAppTabsPool from '../MinApp/MinAppTabsPool'
|
||||||
import WindowControls from '../WindowControls'
|
import WindowControls from '../WindowControls'
|
||||||
@ -99,8 +98,6 @@ const getTabIcon = (
|
|||||||
return <NotepadText size={14} />
|
return <NotepadText size={14} />
|
||||||
case 'knowledge':
|
case 'knowledge':
|
||||||
return <FileSearch size={14} />
|
return <FileSearch size={14} />
|
||||||
case 'mcp':
|
|
||||||
return <McpLogo width={14} height={14} />
|
|
||||||
case 'files':
|
case 'files':
|
||||||
return <Folder size={14} />
|
return <Folder size={14} />
|
||||||
case 'settings':
|
case 'settings':
|
||||||
|
|||||||
@ -137,7 +137,7 @@ const MCPToolsSection = ({ tools, server, onToggleTool, onToggleAutoApprove }: M
|
|||||||
{
|
{
|
||||||
title: (
|
title: (
|
||||||
<Flex align="center" justify="center" gap={4}>
|
<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>
|
<Typography.Text strong>{t('settings.mcp.tools.enable')}</Typography.Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
),
|
),
|
||||||
|
|||||||
@ -86,7 +86,7 @@ const MCPSettings: FC = () => {
|
|||||||
title={t('settings.mcp.servers', 'MCP Servers')}
|
title={t('settings.mcp.servers', 'MCP Servers')}
|
||||||
active={activeView === 'servers'}
|
active={activeView === 'servers'}
|
||||||
onClick={() => navigate('/settings/mcp/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 }}
|
titleStyle={{ fontWeight: 500 }}
|
||||||
/>
|
/>
|
||||||
<DividerWithText text={t('settings.mcp.discover', 'Discover')} style={{ margin: '10px 0 8px 0' }} />
|
<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')}
|
{t('settings.tool.preprocess.title')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
</MenuItemLink>
|
</MenuItemLink>
|
||||||
<MenuItemLink to="/settings/notes">
|
|
||||||
<MenuItem className={isRoute('/settings/notes')}>
|
|
||||||
<NotebookPen size={18} />
|
|
||||||
{t('notes.settings.title')}
|
|
||||||
</MenuItem>
|
|
||||||
</MenuItemLink>
|
|
||||||
<MenuItemLink to="/settings/quickphrase">
|
<MenuItemLink to="/settings/quickphrase">
|
||||||
<MenuItem className={isRoute('/settings/quickphrase')}>
|
<MenuItem className={isRoute('/settings/quickphrase')}>
|
||||||
<Zap size={18} />
|
<Zap size={18} />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user