11import { LogicalSize } from "@tauri-apps/api/dpi" ;
22import { useAtom } from "jotai" ;
3- import { ChevronDown , ChevronLeft , ChevronUp , Cpu , Diamond , Menu , SquareArrowUp , Tag , X , Zap } from "lucide-react" ;
3+ import { ChevronLeft , Copy , Cpu , Menu , Minus , PanelTop , Square , Tag , X , Zap } from "lucide-react" ;
44import React from "react" ;
55import { useTranslation } from "react-i18next" ;
66import { Outlet , useLocation , useNavigate } from "react-router-dom" ;
@@ -404,7 +404,7 @@ export default function App() {
404404 } }
405405 tooltip = { isWindowCollapsing ? "展开并取消顶置窗口" : "进入迷你窗口模式" }
406406 >
407- < SquareArrowUp className = { cn ( "cursor-pointer" , isWindowCollapsing ? "rotate-180 scale-125" : "" ) } />
407+ < PanelTop className = { cn ( "cursor-pointer" , isWindowCollapsing ? "rotate-180 scale-125" : "" ) } />
408408 </ IconButton >
409409 ) }
410410
@@ -413,23 +413,26 @@ export default function App() {
413413 < Button
414414 className = { cn ( "right-4 top-4 flex items-center gap-1 active:scale-100" , isClassroomMode && "opacity-0" ) }
415415 >
416- < ChevronDown
416+ { /* 最小化 */ }
417+ < Minus
417418 onClick = { ( ) => getCurrentWindow ( ) . minimize ( ) }
418419 className = "transition hover:opacity-80 active:scale-75"
419420 />
421+ { /* 最大化/取消窗口最大化 */ }
420422 { maxmized ? (
421- < Diamond
423+ < Copy
422424 onClick = { ( ) => setMaxmized ( false ) }
423425 size = { 16 }
424426 strokeWidth = { 3 }
425427 className = "transition hover:opacity-80 active:scale-75"
426428 />
427429 ) : (
428- < ChevronUp
430+ < Square
429431 onClick = { ( ) => setMaxmized ( true ) }
430- className = "transition hover:opacity-80 active:scale-75"
432+ className = "scale-75 transition hover:opacity-80 active:scale-75"
431433 />
432434 ) }
435+ { /* 退出 */ }
433436 < X onClick = { ( ) => getCurrentWindow ( ) . close ( ) } className = "transition hover:opacity-80 active:scale-75" />
434437 </ Button >
435438 ) }
0 commit comments