working
This commit is contained in:
parent
ac2e450e38
commit
52628920d9
5 changed files with 109 additions and 6 deletions
|
|
@ -2,6 +2,7 @@ import React from 'react';
|
|||
import { defaultSettings, settingsMap, useSettings } from '../../settings.mjs';
|
||||
import { themes } from '../themes.mjs';
|
||||
import { ButtonGroup } from './Forms.jsx';
|
||||
import { AudioDeviceSelector } from './AudioDeviceSelector.jsx';
|
||||
|
||||
function Checkbox({ label, value, onChange }) {
|
||||
return (
|
||||
|
|
@ -85,6 +86,7 @@ export function SettingsTab() {
|
|||
fontSize,
|
||||
fontFamily,
|
||||
panelPosition,
|
||||
audioDeviceName,
|
||||
} = useSettings();
|
||||
|
||||
return (
|
||||
|
|
@ -107,6 +109,12 @@ export function SettingsTab() {
|
|||
</button>
|
||||
</div>
|
||||
</FormItem> */}
|
||||
<FormItem label="Audio Device">
|
||||
<AudioDeviceSelector
|
||||
audioDeviceName={audioDeviceName}
|
||||
onChange={(audioDeviceName) => settingsMap.setKey('audioDeviceName', audioDeviceName)}
|
||||
/>
|
||||
</FormItem>
|
||||
<FormItem label="Theme">
|
||||
<SelectInput options={themeOptions} value={theme} onChange={(theme) => settingsMap.setKey('theme', theme)} />
|
||||
</FormItem>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue