diff --git a/src/components/base/base-notice.tsx b/src/components/base/base-notice.tsx index a7ca695..ec60d9c 100644 --- a/src/components/base/base-notice.tsx +++ b/src/components/base/base-notice.tsx @@ -1,7 +1,11 @@ import { createRoot } from "react-dom/client"; import { ReactNode, useState, useEffect } from "react"; import { Box, IconButton, Slide, Snackbar, Typography } from "@mui/material"; -import { Close, CheckCircleRounded, ErrorRounded } from "@mui/icons-material"; +import { + CloseRounded, + CheckCircleRounded, + ErrorRounded, +} from "@mui/icons-material"; import { useVerge } from "@/hooks/use-verge"; import { appWindow } from "@tauri-apps/api/window"; interface InnerProps { @@ -81,7 +85,7 @@ const NoticeInner = (props: InnerProps) => { transitionDuration={200} action={ - + } /> diff --git a/src/components/layout/layout-traffic.tsx b/src/components/layout/layout-traffic.tsx index 5ea8068..fdadf48 100644 --- a/src/components/layout/layout-traffic.tsx +++ b/src/components/layout/layout-traffic.tsx @@ -1,9 +1,9 @@ import { useEffect, useRef, useState } from "react"; import { Box, Typography } from "@mui/material"; import { - ArrowDownward, - ArrowUpward, - MemoryOutlined, + ArrowDownwardRounded, + ArrowUpwardRounded, + MemoryRounded, } from "@mui/icons-material"; import { useClashInfo } from "@/hooks/use-clash"; import { useVerge } from "@/hooks/use-verge"; @@ -153,7 +153,7 @@ export const LayoutTraffic = () => { - 0 ? "secondary" : "disabled"} /> @@ -164,7 +164,7 @@ export const LayoutTraffic = () => { - 0 ? "primary" : "disabled"} /> @@ -184,7 +184,7 @@ export const LayoutTraffic = () => { isDebug && (await gc()); }} > - + {inuse} {inuseUnit} diff --git a/src/components/profile/editor-viewer.tsx b/src/components/profile/editor-viewer.tsx index 6010914..74e297c 100644 --- a/src/components/profile/editor-viewer.tsx +++ b/src/components/profile/editor-viewer.tsx @@ -10,9 +10,11 @@ import { DialogTitle, IconButton, } from "@mui/material"; -import FormatPaintIcon from "@mui/icons-material/FormatPaint"; -import OpenInFullIcon from "@mui/icons-material/OpenInFull"; -import CloseFullscreenIcon from "@mui/icons-material/CloseFullscreen"; +import { + FormatPaintRounded, + OpenInFullRounded, + CloseFullscreenRounded, +} from "@mui/icons-material"; import { useThemeMode } from "@/services/states"; import { Notice } from "@/components/base"; import { nanoid } from "nanoid"; @@ -223,7 +225,7 @@ export const EditorViewer = (props: Props) => { ?.run() } > - + (props: Props) => { title={t(isMaximized ? "Minimize" : "Maximize")} onClick={() => appWindow.toggleMaximize().then(editorResize)} > - {isMaximized ? : } + {isMaximized ? : } diff --git a/src/components/profile/groups-editor-viewer.tsx b/src/components/profile/groups-editor-viewer.tsx index 6de1b44..f3cf7a8 100644 --- a/src/components/profile/groups-editor-viewer.tsx +++ b/src/components/profile/groups-editor-viewer.tsx @@ -30,8 +30,10 @@ import { TextField, styled, } from "@mui/material"; -import VerticalAlignTopIcon from "@mui/icons-material/VerticalAlignTop"; -import VerticalAlignBottomIcon from "@mui/icons-material/VerticalAlignBottom"; +import { + VerticalAlignTopRounded, + VerticalAlignBottomRounded, +} from "@mui/icons-material"; import { GroupItem } from "@/components/profile/group-item"; import { getNetworkInterfaces, @@ -712,7 +714,7 @@ export const GroupsEditorViewer = (props: Props) => { diff --git a/src/components/setting/mods/sysproxy-viewer.tsx b/src/components/setting/mods/sysproxy-viewer.tsx index 05bfcbd..1517612 100644 --- a/src/components/setting/mods/sysproxy-viewer.tsx +++ b/src/components/setting/mods/sysproxy-viewer.tsx @@ -14,7 +14,7 @@ import { import { useVerge } from "@/hooks/use-verge"; import { getSystemProxy, getAutotemProxy } from "@/services/cmds"; import { BaseDialog, DialogRef, Notice, Switch } from "@/components/base"; -import { Edit } from "@mui/icons-material"; +import { EditRounded } from "@mui/icons-material"; import { EditorViewer } from "@/components/profile/editor-viewer"; import { BaseFieldset } from "@/components/base/base-fieldset"; import getSystem from "@/utils/get-system"; @@ -253,7 +253,7 @@ export const SysproxyViewer = forwardRef((props, ref) => { sx={{ padding: "3px 0" }} />