@@ -15,7 +15,7 @@ import {
1515} from "@mui/material" ;
1616import ReactMarkdown from "react-markdown" ;
1717import remarkGfm from "remark-gfm" ;
18- import SmartToyOutlinedIcon from "@mui/icons-material/SmartToyOutlined " ;
18+ import AutoAwesomeIcon from "@mui/icons-material/AutoAwesome " ;
1919import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown" ;
2020import ShortTextIcon from "@mui/icons-material/ShortText" ;
2121import CloseIcon from "@mui/icons-material/Close" ;
@@ -305,6 +305,13 @@ export default function Article({
305305 overflow : "visible" ,
306306 } }
307307 >
308+ < svg width = { 0 } height = { 0 } style = { { position : 'absolute' , visibility : 'hidden' } } >
309+ < linearGradient id = "geminiGradient" x1 = "0%" y1 = "0%" x2 = "100%" y2 = "100%" >
310+ < stop offset = "0%" stopColor = "#4facfe" />
311+ < stop offset = "50%" stopColor = "#a18cd1" />
312+ < stop offset = "100%" stopColor = "#fbc2eb" />
313+ </ linearGradient >
314+ </ svg >
308315 { /* 左侧区域:快捷指令菜单按钮 */ }
309316 < Box
310317 sx = { {
@@ -323,7 +330,7 @@ export default function Article({
323330 id = "shortcut-menu-button"
324331 variant = "outlined"
325332 size = "small"
326- startIcon = { < SmartToyOutlinedIcon /> }
333+ startIcon = { < AutoAwesomeIcon sx = { { fill : "url(#geminiGradient)" } } /> }
327334 onClick = { handleShortcutMenuOpen }
328335 aria-controls = { shortcutMenuOpen ? "shortcut-menu" : undefined }
329336 aria-haspopup = "true"
@@ -334,32 +341,16 @@ export default function Article({
334341 fontSize : "12px" ,
335342 height : "32px" ,
336343 textTransform : "none" ,
337- background : "linear-gradient(135deg, #667eea 0%, #764ba2 100%)" ,
338- color : "white" ,
339- boxShadow : "0 4px 12px rgba(102, 126, 234, 0.3)" ,
340- border : "1px solid rgba(255, 255, 255, 0.2)" ,
341- transition : "all 0.2s ease-in-out" ,
344+ color : "#1976d2" ,
345+ borderColor : "rgba(25, 118, 210, 0.5)" ,
346+ background : "transparent" ,
342347 "&:hover" : {
343- background : "linear-gradient(135deg, #667eea 0%, #764ba2 100%)" ,
344- boxShadow : "0 4px 12px rgba(102, 126, 234, 0.3)" ,
345- transform : "none" ,
346- filter : "none" ,
347- opacity : 1 ,
348- "@media (hover: hover)" : {
349- backgroundColor : "transparent" ,
350- background : "linear-gradient(135deg, #667eea 0%, #764ba2 100%)" ,
351- } ,
352- } ,
353- "&:focus" : {
354- background : "linear-gradient(135deg, #667eea 0%, #764ba2 100%)" ,
355- boxShadow : "0 4px 12px rgba(102, 126, 234, 0.3)" ,
356- } ,
357- "& .MuiButton-startIcon" : {
358- color : "white" ,
348+ background : "rgba(25, 118, 210, 0.04)" ,
349+ borderColor : "#1976d2" ,
359350 } ,
360351 } }
361352 >
362- { isSnippetMode ? "Snippet AI Shortcuts" : "Article AI Shortcuts" }
353+ AI Shortcuts
363354 </ Button >
364355
365356 < Menu
0 commit comments