feat: change window style

This commit is contained in:
GyDi
2022-02-20 23:46:13 +08:00
parent e12e3a3f2d
commit 97ec5eabf7
5 changed files with 51 additions and 24 deletions

View File

@@ -39,8 +39,8 @@ const SettingVerge = ({ onError }: Props) => {
onCatch={onError}
onFormat={onSwitchFormat}
onChange={(e) => onChangeData({ theme_mode: e ? "dark" : "light" })}
onGuard={(c) =>
patchVergeConfig({ theme_mode: c ? "dark" : "light" })
onGuard={(e) =>
patchVergeConfig({ theme_mode: e ? "dark" : "light" })
}
>
<PaletteSwitch edge="end" />