From adc634e5ea66efa7dcf51f845a0ea88766179117 Mon Sep 17 00:00:00 2001 From: GyDi Date: Sun, 12 Dec 2021 01:13:08 +0800 Subject: [PATCH] feat: new setting page --- src/pages/setting.tsx | 79 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 69 insertions(+), 10 deletions(-) diff --git a/src/pages/setting.tsx b/src/pages/setting.tsx index f367828..002dea4 100644 --- a/src/pages/setting.tsx +++ b/src/pages/setting.tsx @@ -1,22 +1,81 @@ -import { Box } from "@mui/system"; import { useRecoilState } from "recoil"; +import { + Box, + List, + ListItem, + ListItemText, + ListSubheader, + Typography, + TextField, + styled, + Switch, + Select, + MenuItem, +} from "@mui/material"; import { atomPaletteMode } from "../states/setting"; import PaletteSwitch from "../components/palette-switch"; +const MiniListItem = styled(ListItem)(({ theme }) => ({ + paddingTop: 5, + paddingBottom: 5, +})); + const SettingPage = () => { const [mode, setMode] = useRecoilState(atomPaletteMode); return ( - -

Setting

+ + + Setting + - - setMode(c ? "dark" : "light")} - inputProps={{ "aria-label": "controlled" }} - /> - + + 通用设置 + + + + setMode(c ? "dark" : "light")} + /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); };