diff --git a/src/components/settings/SettingsModal.tsx b/src/components/settings/SettingsModal.tsx index cd232ad..86a12c2 100644 --- a/src/components/settings/SettingsModal.tsx +++ b/src/components/settings/SettingsModal.tsx @@ -4,6 +4,7 @@ import { useState, useEffect, useCallback } from 'react'; import { Dialog, DialogContent, DialogTitle, Button, TextField, Select, MenuItem, Tabs, Tab, Checkbox, Box, Typography, Stack, Divider, FormControlLabel, InputLabel, FormControl, IconButton, Chip, Switch, Alert, CircularProgress } from '@mui/material'; +import { alpha } from '@mui/material/styles'; import { X, Settings, Bot, Wrench, Server, Palette, FileText, Eye, EyeOff, FolderOpen, Globe } from 'lucide-react'; import { useUIStore, type ThemeMode } from '@renderer/stores/ui-store'; import { useAgentStore } from '@renderer/stores/agent-store'; @@ -482,12 +483,38 @@ function ToolsSettings() { ) : ( autoExecToolDetails.map((t) => ( - + ({ + py: 1, px: 1.5, borderRadius: 1.5, + // 用主题 success 色的 12% 透明度做底,文字和按钮保持不透明 + bgcolor: alpha(theme.palette.success.main, 0.12), + // 左侧绿色状态条,强化"已自动执行"视觉 + boxShadow: `inset 3px 0 0 ${theme.palette.success.main}`, + justifyContent: 'space-between', alignItems: 'center', + })} + > - {t.name} + + + {t.name} + - @@ -503,10 +530,10 @@ function ToolsSettings() { {pendingConfirmTools.map((t) => ( - {t.name} + {t.name} -