Settings fixes

This commit is contained in:
jeffvli
2022-11-08 03:56:59 -08:00
parent dbba5f9f95
commit b2cc85d368
3 changed files with 11 additions and 5 deletions
@@ -5,24 +5,28 @@ export const GeneralTab = () => {
const options = [ const options = [
{ {
control: <Select disabled data={[]} />, control: <Select disabled data={[]} />,
description: 'Primary application language ', description: 'Sets the application language',
isHidden: false,
title: 'Language', title: 'Language',
}, },
{ {
control: <Select disabled data={[]} />, control: <Select disabled data={[]} />,
description: 'Theme for the application', description: 'Sets the default theme',
isHidden: false,
title: 'Theme', title: 'Theme',
}, },
{ {
control: <Select disabled data={[]} />, control: <Select disabled data={[]} />,
description: 'Font for the application', description: 'Sets the default font',
isHidden: false,
title: 'Font', title: 'Font',
}, },
{ {
control: ( control: (
<Select disabled data={['Windows', 'macOS']} defaultValue="Windows" /> <Select disabled data={['Windows', 'macOS']} defaultValue="Windows" />
), ),
description: 'Font for the application', description: 'Adjust the style of the titlebar',
isHidden: false,
title: 'Titlebar style', title: 'Titlebar style',
}, },
]; ];
@@ -226,6 +226,7 @@ export const PlaybackTab = () => {
<Tooltip label="Backward"> <Tooltip label="Backward">
<NumberInput <NumberInput
defaultValue={settings.skipButtons.skipBackwardSeconds} defaultValue={settings.skipButtons.skipBackwardSeconds}
min={0}
width={75} width={75}
onBlur={(e) => onBlur={(e) =>
update({ update({
@@ -243,6 +244,7 @@ export const PlaybackTab = () => {
<Tooltip label="Forward"> <Tooltip label="Forward">
<NumberInput <NumberInput
defaultValue={settings.skipButtons.skipForwardSeconds} defaultValue={settings.skipButtons.skipForwardSeconds}
min={0}
width={75} width={75}
onBlur={(e) => onBlur={(e) =>
update({ update({
@@ -8,7 +8,7 @@ export const Settings = () => {
const currentTab = useSettingsStore((state) => state.tab); const currentTab = useSettingsStore((state) => state.tab);
const update = useSettingsStore((state) => state.setSettings); const update = useSettingsStore((state) => state.setSettings);
return ( return (
<Box px="1rem" sx={{ height: '800px', maxHeight: '50vh' }}> <Box pr={15} sx={{ height: '800px', maxHeight: '50vh' }}>
<Tabs <Tabs
orientation="horizontal" orientation="horizontal"
styles={{ styles={{