diff --git a/src/components/HeaderBar/Settings/SettingsItem.tsx b/src/components/HeaderBar/Settings/SettingsItem.tsx index eb0eeac..f72b2fd 100644 --- a/src/components/HeaderBar/Settings/SettingsItem.tsx +++ b/src/components/HeaderBar/Settings/SettingsItem.tsx @@ -31,7 +31,7 @@ export const SettingsItem: FC = ({ defaultText, description, width: "60%", }} > - {description} + {description} {defaultText && ( = ({ sx }) => { const handleSettingsStyleValueChange = (settingKey: string, settingValue: boolean | number | string | number[]) => { const newSettings = { ...stagedSettings, - display: { + style: { ...stagedSettings.style, [settingKey]: settingValue, }, @@ -33,10 +33,8 @@ export const SettingsTabStyle: FC = ({ sx }) => { defaultText="On" description={ <> - - - Dark mode - + + Dark mode } input={ @@ -51,11 +49,7 @@ export const SettingsTabStyle: FC = ({ sx }) => { /> - Accent color - - } + description="Accent color" input={ = ({ sx }) => { /> - Font family - - } + description="Font family" inputLong={ = ({ sx }) => { /> - Font scaling - - } + description="Font scaling" inputBottom={ = ({ sx }) => { defaultText="200ms" description={ <> - - - Transition duration - + + Transition duration } input={ @@ -176,26 +160,11 @@ export const SettingsTabStyle: FC = ({ sx }) => { } /> - - - Radius - - - Default: 8px - + + Radius } input={ @@ -219,26 +188,11 @@ export const SettingsTabStyle: FC = ({ sx }) => { } /> - - - Window height - - - Default: 60% - + + Window height } input={ @@ -262,26 +216,11 @@ export const SettingsTabStyle: FC = ({ sx }) => { } /> - - - Window width - - - Default: 400px - + + Window width } input={ diff --git a/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabWindow.tsx b/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabWindow.tsx index ac6b893..13b3373 100644 --- a/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabWindow.tsx +++ b/src/components/HeaderBar/Settings/SettingsTabs/SettingsTabWindow.tsx @@ -28,17 +28,8 @@ export const SettingsTabWindow: FC = ({ sx }) => { - Fullscreen on startup - - Default: On - - - } + defaultText="On" + description="Fullscreen on startup" input={ = ({ sx }) => { /> - Minimize button - - Default: On - - - } + defaultText="Off" + description="Minimize button" input={ = ({ sx }) => { } /> - Maximize button - - } + defaultText="Off" + description="Maximize button" input={