@@ -112,14 +112,14 @@ const ChainEditor: React.FC<ChainEditorProps> = ({
112112 const color = getBlockColor ( blockKey ) ;
113113 if ( enabled ) {
114114 return {
115- backgroundColor : hexToRgba ( color , 0.1 ) , // 10% прозрачности
116- borderColor : hexToRgba ( color , 0.3 ) , // 30% прозрачности
115+ backgroundColor : hexToRgba ( color , 0.25 ) ,
116+ borderColor : hexToRgba ( color , 0.6 ) ,
117117 borderWidth : "2px" ,
118118 } ;
119119 }
120120 return {
121- backgroundColor : "#f9fafb " ,
122- borderColor : "#e5e7eb " ,
121+ backgroundColor : "#26282c " ,
122+ borderColor : "rgba(255, 255, 255, 0.2) " ,
123123 borderWidth : "1px" ,
124124 } ;
125125 } ;
@@ -144,7 +144,7 @@ const ChainEditor: React.FC<ChainEditorProps> = ({
144144 style = { {
145145 backgroundColor : blockData . enabled
146146 ? getBlockColor ( blockKey )
147- : "#9ca3af " , // серый для выключенных блоков
147+ : "#474b54 " , // серый для выключенных блоков
148148 } }
149149 >
150150 { blockKey . toUpperCase ( ) }
@@ -160,30 +160,30 @@ const ChainEditor: React.FC<ChainEditorProps> = ({
160160 ) ;
161161 } }
162162 disabled = { readonly }
163- className = "rounded border-gray-300 text-blue-600 focus:ring-blue-500 disabled:opacity-50 "
163+ className = "rounded border-gray-600 bg-gray-800 text-blue-400 focus:ring-blue-500 disabled:opacity-80 "
164164 />
165- < span className = "ml-2 text-sm text-gray-700 " >
166- { blockData . enabled ? "Включен " : "Выключен " }
165+ < span className = "ml-2 text-sm text-white " >
166+ { blockData . enabled ? "Enabled " : "Disabled " }
167167 </ span >
168168 </ label >
169169 </ div >
170170
171171 { /* Type Selector */ }
172172 { blockData . enabled && (
173173 < div className = "mb-4" >
174- < label className = "block text-sm font-medium text-gray-700 mb-2" >
175- Тип
174+ < label className = "block text-sm font-medium text-white mb-2" >
175+ Type
176176 </ label >
177177 < select
178178 value = { blockData . type }
179179 onChange = { ( e ) => {
180180 updateBlockType ( blockKey as keyof Chain , e . target . value ) ;
181181 } }
182- className = "w-full p-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500 disabled:opacity-50 disabled:bg-gray-100 "
182+ className = "w-full p-2 bg-gray-800 border border-gray-600 rounded-md focus:ring-blue-500 focus:border-blue-500 disabled:opacity-80 text-white "
183183 disabled = { readonly }
184184 >
185185 { blockTypes . map ( ( type ) => (
186- < option key = { type } value = { type } >
186+ < option key = { type } value = { type } className = "bg-gray-900" >
187187 { getTypeDisplayName ( blockKey as Blocks , type ) }
188188 </ option >
189189 ) ) }
@@ -194,15 +194,15 @@ const ChainEditor: React.FC<ChainEditorProps> = ({
194194 { /* Parameters */ }
195195 { blockData . enabled && blockParams . length > 0 && (
196196 < div className = "space-y-3" >
197- < h4 className = "text-sm font-medium text-gray-700" > Параметры </ h4 >
197+ < h4 className = "text-sm font-medium text-white" > Parameters </ h4 >
198198 < div className = "grid grid-cols-1 sm:grid-cols-2 gap-3" >
199199 { blockParams . map ( ( param ) => {
200200 const params = blockData . params as Record < string , number > ;
201201 const currentValue = params [ param . label ] || 0 ;
202202
203203 return (
204204 < div key = { param . label } >
205- < label className = "block text-xs font-medium text-gray-600 mb-1" >
205+ < label className = "block text-xs font-medium text-white mb-1" >
206206 { param . label }
207207 </ label >
208208 < div className = "flex items-center space-x-2" >
@@ -218,7 +218,7 @@ const ChainEditor: React.FC<ChainEditorProps> = ({
218218 parseInt ( e . target . value )
219219 ) ;
220220 } }
221- className = "flex-1 h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer disabled:opacity-50 "
221+ className = "flex-1 h-2 bg-gray-800 rounded-lg appearance-none cursor-pointer disabled:opacity-80 "
222222 disabled = { ! blockData . enabled || readonly }
223223 />
224224 < input
@@ -233,7 +233,7 @@ const ChainEditor: React.FC<ChainEditorProps> = ({
233233 parseInt ( e . target . value ) || 0
234234 ) ;
235235 } }
236- className = "w-16 p-1 text-xs border border-gray-300 rounded text-center disabled:opacity-50 disabled:bg-gray-100 "
236+ className = "w-16 p-1 text-xs bg-gray-800 border border-gray-600 rounded text-center text-white disabled:opacity-80 "
237237 disabled = { ! blockData . enabled || readonly }
238238 />
239239 </ div >
0 commit comments