move editor theme selector into settings tab

This commit is contained in:
Víctor Losada Hernández
2026-08-27 20:14:21 +02:00
parent a9c0429302
commit 821d2afcf7
3 changed files with 43 additions and 64 deletions
@@ -1,7 +1,7 @@
import '../uiEditor.less';
import React, { useState } from 'react';
const SettingsEditor = ({ settings, updateSettings = ()=>{} })=>{
const SettingsEditor = ({ settings, updateSettings = ()=>{}, EditorThemeNameList })=>{
const [currentSettings, setCurrentSettings] = useState(settings);
const validations = {
@@ -52,6 +52,20 @@ const SettingsEditor = ({ settings, updateSettings = ()=>{} })=>{
return (
<div className='settingsEditor ui-editor'>
<h1>Editor Settings</h1>
<div className='field'>
<label htmlFor='changeEditorTheme'>
Automatically close brackets
</label>
<div className='value'>
<select value={currentSettings.editorTheme} onChange={(e)=>handleFieldChange('editorTheme', e)} >
{EditorThemeNameList.map((theme, key)=>{
return <option key={key} value={theme}>{theme}</option>;
})}
</select>
</div>
</div>
{/*
<div className='field title'>
<label htmlFor='blockShading'>