diff --git a/src/components/setting/mods/layout-viewer.tsx b/src/components/setting/mods/layout-viewer.tsx index 2a707b17..3f68689e 100644 --- a/src/components/setting/mods/layout-viewer.tsx +++ b/src/components/setting/mods/layout-viewer.tsx @@ -1,9 +1,16 @@ import { forwardRef, useEffect, useImperativeHandle, useState } from "react"; import { useTranslation } from "react-i18next"; -import { List, Button, Select, MenuItem } from "@mui/material"; +import { + List, + Button, + Select, + MenuItem, + styled, + ListItem, + ListItemText, +} from "@mui/material"; import { useVerge } from "@/hooks/use-verge"; import { BaseDialog, DialogRef, Notice, Switch } from "@/components/base"; -import { SettingItem } from "./setting-comp"; import { GuardState } from "./guard-state"; import { open as openDialog } from "@tauri-apps/api/dialog"; import { convertFileSrc } from "@tauri-apps/api/tauri"; @@ -77,7 +84,8 @@ export const LayoutViewer = forwardRef((props, ref) => { onCancel={() => setOpen(false)} > - + + ((props, ref) => { > - + - + + ((props, ref) => { > - + - + + ((props, ref) => { > - + - + + ((props, ref) => { {t("Disable")} - + + {OS === "macos" && ( - + + ((props, ref) => { {t("Colorful")} - + )} - + + ((props, ref) => { {verge?.common_tray_icon ? t("Clear") : t("Browse")} - + - + + ((props, ref) => { {verge?.sysproxy_tray_icon ? t("Clear") : t("Browse")} - + - + + ((props, ref) => { {verge?.tun_tray_icon ? t("Clear") : t("Browse")} - + ); }); + +const Item = styled(ListItem)(() => ({ + padding: "5px 2px", +}));