feat: change window style

This commit is contained in:
GyDi
2022-02-20 23:46:13 +08:00
parent 3b54eeb1c5
commit 489ae6c9b6
5 changed files with 51 additions and 24 deletions

View File

@@ -54,7 +54,7 @@ const LayoutTraffic = () => {
};
return (
<Box data-windrag width="110px" position="relative" onClick={toggleStyle}>
<Box width="110px" position="relative" onClick={toggleStyle}>
{trafficGraph && (
<canvas
ref={canvasRef}

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" />