chore: unified icon style

This commit is contained in:
MystiPanda
2024-07-13 19:01:16 +08:00
parent 48f7c15035
commit c14a33444b
13 changed files with 56 additions and 41 deletions

View File

@@ -5,7 +5,10 @@ import { useTranslation } from "react-i18next";
import { useVerge } from "@/hooks/use-verge";
import { useLockFn } from "ahooks";
import { LoadingButton } from "@mui/lab";
import { SwitchAccessShortcut, RestartAlt } from "@mui/icons-material";
import {
SwitchAccessShortcutRounded,
RestartAltRounded,
} from "@mui/icons-material";
import {
Box,
Button,
@@ -85,7 +88,7 @@ export const ClashCoreViewer = forwardRef<DialogRef>((props, ref) => {
<LoadingButton
variant="contained"
size="small"
startIcon={<SwitchAccessShortcut />}
startIcon={<SwitchAccessShortcutRounded />}
loadingPosition="start"
loading={upgrading}
sx={{ marginRight: "8px" }}
@@ -97,7 +100,7 @@ export const ClashCoreViewer = forwardRef<DialogRef>((props, ref) => {
variant="contained"
size="small"
onClick={onRestart}
startIcon={<RestartAlt />}
startIcon={<RestartAltRounded />}
>
{t("Restart")}
</Button>

View File

@@ -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<DialogRef>((props, ref) => {
sx={{ padding: "3px 0" }}
/>
<Button
startIcon={<Edit />}
startIcon={<EditRounded />}
variant="outlined"
onClick={() => {
setEditorOpen(true);

View File

@@ -14,7 +14,7 @@ import { useVerge } from "@/hooks/use-verge";
import { defaultTheme, defaultDarkTheme } from "@/pages/_theme";
import { BaseDialog, DialogRef, Notice } from "@/components/base";
import { EditorViewer } from "@/components/profile/editor-viewer";
import { Edit } from "@mui/icons-material";
import { EditRounded } from "@mui/icons-material";
export const ThemeViewer = forwardRef<DialogRef>((props, ref) => {
const { t } = useTranslation();
@@ -115,7 +115,7 @@ export const ThemeViewer = forwardRef<DialogRef>((props, ref) => {
<Item>
<ListItemText primary={t("CSS Injection")} />
<Button
startIcon={<Edit />}
startIcon={<EditRounded />}
variant="outlined"
onClick={() => {
setEditorOpen(true);

View File

@@ -1,7 +1,7 @@
import useSWR from "swr";
import { useRef } from "react";
import { useTranslation } from "react-i18next";
import { PrivacyTipRounded, Settings } from "@mui/icons-material";
import { PrivacyTipRounded, SettingsRounded } from "@mui/icons-material";
import { checkService } from "@/services/cmds";
import { useVerge } from "@/hooks/use-verge";
import { DialogRef, Switch } from "@/components/base";
@@ -56,7 +56,7 @@ const SettingSystem = ({ onError }: Props) => {
extra={
<TooltipIcon
title={t("Tun Mode Info")}
icon={Settings}
icon={SettingsRounded}
onClick={() => tunRef.current?.open()}
/>
}
@@ -106,7 +106,7 @@ const SettingSystem = ({ onError }: Props) => {
<>
<TooltipIcon
title={t("System Proxy Info")}
icon={Settings}
icon={SettingsRounded}
onClick={() => sysproxyRef.current?.open()}
/>
</>