mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-08 11:56:36 +00:00
ATL-936: Fixed the theme dropdown in the settings.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
01ef138d9a
commit
19613de1b4
@ -300,7 +300,7 @@ export class SettingsComponent extends React.Component<SettingsComponent.Props,
|
|||||||
<div className='flex-line'>
|
<div className='flex-line'>
|
||||||
<select
|
<select
|
||||||
className='theia-select'
|
className='theia-select'
|
||||||
value={ThemeService.get().getCurrentTheme().label}
|
value={ThemeService.get().getThemes().find(({ id }) => id === this.state.themeId)?.label || 'Unknown'}
|
||||||
onChange={this.themeDidChange}>
|
onChange={this.themeDidChange}>
|
||||||
{ThemeService.get().getThemes().map(({ id, label }) => <option key={id} value={label}>{label}</option>)}
|
{ThemeService.get().getThemes().map(({ id, label }) => <option key={id} value={label}>{label}</option>)}
|
||||||
</select>
|
</select>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user