@@ -292,6 +292,7 @@ function playground_text(playground, hidden = true) {
292
292
var stylesheets = {
293
293
ayuHighlight : document . querySelector ( "[href$='ayu-highlight.css']" ) ,
294
294
solversLightHighlight : document . querySelector ( "[href$='solvers-light-highlight.css']" ) ,
295
+ solversDarkHighlight : document . querySelector ( "[href$='solvers-dark-highlight.css']" ) ,
295
296
tomorrowNight : document . querySelector ( "[href$='tomorrow-night.css']" ) ,
296
297
highlight : document . querySelector ( "[href$='highlight.css']" ) ,
297
298
} ;
@@ -333,13 +334,15 @@ function playground_text(playground, hidden = true) {
333
334
stylesheets . tomorrowNight . disabled = false ;
334
335
stylesheets . highlight . disabled = true ;
335
336
stylesheets . solversLightHighlight . disabled = true ;
337
+ stylesheets . solversDarkHighlight . disabled = true ;
336
338
337
339
ace_theme = "ace/theme/tomorrow_night" ;
338
340
} else if ( theme == 'ayu' ) {
339
341
stylesheets . ayuHighlight . disabled = false ;
340
342
stylesheets . tomorrowNight . disabled = true ;
341
343
stylesheets . highlight . disabled = true ;
342
344
stylesheets . solversLightHighlight . disabled = true ;
345
+ stylesheets . solversDarkHighlight . disabled = true ;
343
346
ace_theme = "ace/theme/tomorrow_night" ;
344
347
345
348
}
@@ -348,17 +351,29 @@ function playground_text(playground, hidden = true) {
348
351
stylesheets . tomorrowNight . disabled = true ;
349
352
stylesheets . highlight . disabled = false ;
350
353
stylesheets . solversLightHighlight . disabled = true ;
354
+ stylesheets . solversDarkHighlight . disabled = true ;
351
355
ace_theme = "ace/theme/dawn" ;
352
356
}
353
- else {
357
+ else if ( theme == 'solvers-light' ) {
354
358
stylesheets . ayuHighlight . disabled = true ;
355
359
stylesheets . tomorrowNight . disabled = true ;
356
360
stylesheets . highlight . disabled = false ;
357
361
stylesheets . solversLightHighlight . disabled = false ;
362
+ stylesheets . solversDarkHighlight . disabled = true ;
358
363
//ace_theme = "ace/theme/tomorrow_night";
359
364
ace_theme = "ace/theme/solvers-light" ;
360
365
}
361
366
367
+ else {
368
+ stylesheets . ayuHighlight . disabled = true ;
369
+ stylesheets . tomorrowNight . disabled = false ;
370
+ stylesheets . highlight . disabled = true ;
371
+ stylesheets . solversLightHighlight . disabled = true ;
372
+ stylesheets . solversDarkHighlight . disabled = false ;
373
+ //ace_theme = "ace/theme/tomorrow_night";
374
+ ace_theme = "ace/theme/solvers-dark" ;
375
+ }
376
+
362
377
setTimeout ( function ( ) {
363
378
themeColorMetaTag . content = getComputedStyle ( document . documentElement ) . backgroundColor ;
364
379
} , 1 ) ;
0 commit comments