Move colour dropdown under theme setting

This commit is contained in:
Ben Grant 2022-08-20 23:47:10 +10:00
parent 6083fc556a
commit cc998f1bc9

View file

@ -126,19 +126,6 @@ const Settings = () => {
onChange={value => store.setTheme(value)} onChange={value => store.setTheme(value)}
/> />
<ToggleField
label={t('options.highlight.label')}
name="highlight"
id="highlight"
title={t('options.highlight.title')}
options={{
'Off': t('options.highlight.options.Off'),
'On': t('options.highlight.options.On'),
}}
value={store.highlight ? 'On' : 'Off'}
onChange={value => store.setHighlight(value === 'On')}
/>
<SelectField <SelectField
label={t('options.colormap.label')} label={t('options.colormap.label')}
name="colormap" name="colormap"
@ -157,6 +144,19 @@ const Settings = () => {
onChange={event => store.setColormap(event.target.value)} onChange={event => store.setColormap(event.target.value)}
/> />
<ToggleField
label={t('options.highlight.label')}
name="highlight"
id="highlight"
title={t('options.highlight.title')}
options={{
'Off': t('options.highlight.options.Off'),
'On': t('options.highlight.options.On'),
}}
value={store.highlight ? 'On' : 'Off'}
onChange={value => store.setHighlight(value === 'On')}
/>
<SelectField <SelectField
label={t('options.language.label')} label={t('options.language.label')}
name="language" name="language"