chore: tooltips and locales

This commit is contained in:
dongchengjie
2024-06-26 05:33:06 +08:00
parent 04be747d52
commit 753395965a
21 changed files with 108 additions and 32 deletions

View File

@@ -9,7 +9,8 @@ import {
IconButton,
Tooltip,
} from "@mui/material";
import { Settings, Shuffle } from "@mui/icons-material";
import { InfoRounded, Settings, Shuffle } from "@mui/icons-material";
import { DialogRef, Notice, Switch } from "@/components/base";
import { useClash } from "@/hooks/use-clash";
import { GuardState } from "./mods/guard-state";
@@ -175,7 +176,22 @@ const SettingClash = ({ onError }: Props) => {
</SettingItem>
{isWIN && (
<SettingItem onClick={invoke_uwp_tool} label={t("Open UWP tool")} />
<SettingItem
onClick={invoke_uwp_tool}
label={t("Open UWP tool")}
extra={
<>
<Tooltip title={t("Open UWP tool Info")} placement="top">
<IconButton color="inherit" size="small">
<InfoRounded
fontSize="inherit"
style={{ cursor: "pointer", opacity: 0.75 }}
/>
</IconButton>
</Tooltip>
</>
}
/>
)}
<SettingItem onClick={onUpdateGeo} label={t("Update GeoData")} />