diff --git a/src/components/FooterBar.tsx b/src/components/FooterBar.tsx index ec4951f..c226a16 100644 --- a/src/components/FooterBar.tsx +++ b/src/components/FooterBar.tsx @@ -4,16 +4,14 @@ import { useRouter } from "next/router"; import { WindowButtons } from "./HeaderBar/WindowButtons"; export const FooterBar = () => { - const router = useRouter(); - return ( { data-tauri-drag-region="true" sx={{ alignItems: "center", + // backdropFilter: "blur(10px)", + // backgroundColor: "rgba(0, 0, 0, 0.5)", // TODO: remove when done - borderBottom: "1px solid red", + // borderBottom: "1px solid red", display: "flex", flexDirection: "row", height: "48px", diff --git a/src/components/HeaderBar/Settings/Settings.tsx b/src/components/HeaderBar/Settings/Settings.tsx index 0cd92a8..108503d 100644 --- a/src/components/HeaderBar/Settings/Settings.tsx +++ b/src/components/HeaderBar/Settings/Settings.tsx @@ -27,8 +27,6 @@ export const Settings = () => { const [saveLoading, setSaveLoading] = useState(false); const toggleSettings = () => { - // reset the settings maximised state - setSettingsMaximisedState(false); setSettingsOpenState((prevState) => !prevState); }; diff --git a/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabBackground.tsx b/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabBackground.tsx new file mode 100644 index 0000000..41b5dfe --- /dev/null +++ b/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabBackground.tsx @@ -0,0 +1,72 @@ +import { Box, Switch } from "@mui/material"; +import { useAtom } from "jotai"; +import { FC } from "react"; +import { stagedSettingsAtom } from "../../../../lib/store/jotai/settings"; +import { CategoryTitle } from "../CategoryTitle"; +import { SettingsItem } from "../SettingsItem"; + +interface SettingsTabWindowProps { + sx?: any; +} + +export const SettingsTabWindow: FC = ({ sx }) => { + // atoms + const [stagedSettings, setStagedSettings] = useAtom(stagedSettingsAtom); + + const handleSettingsWindowValueChange = (settingKey: string, settingValue: boolean | number | string | number[]) => { + const newSettings = { + ...stagedSettings, + window: { + ...stagedSettings.window, + [settingKey]: settingValue, + }, + }; + setStagedSettings(newSettings); + }; + + return ( + + + { + handleSettingsWindowValueChange(e.target.name, e.target.checked); + }} + /> + } + /> + + { + handleSettingsWindowValueChange(e.target.name, e.target.checked); + }} + /> + } + /> + { + handleSettingsWindowValueChange(e.target.name, e.target.checked); + }} + /> + } + /> + + ); +}; diff --git a/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabWindow.tsx b/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabWindow.tsx index 13b3373..41b5dfe 100644 --- a/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabWindow.tsx +++ b/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabWindow.tsx @@ -1,4 +1,4 @@ -import { Box, Chip, InputAdornment, MenuItem, Slider, Switch, TextField, Typography } from "@mui/material"; +import { Box, Switch } from "@mui/material"; import { useAtom } from "jotai"; import { FC } from "react"; import { stagedSettingsAtom } from "../../../../lib/store/jotai/settings";