File tree Expand file tree Collapse file tree 2 files changed +3
-27
lines changed Expand file tree Collapse file tree 2 files changed +3
-27
lines changed Original file line number Diff line number Diff line change @@ -432,32 +432,6 @@ export function generateGetColorOptionsTsCode(colorOptions: ColorOption[]) {
432432 req ( obj , colorOption . themePath ) ;
433433 } ) ;
434434
435- Object . values ( obj ) . forEach ( ( obj : any ) => {
436- /*
437- obj=
438- {
439- "sun113_625": {
440- "default": isDark ? "#a00000" : "#00000d",
441- "active": isDark ? "#b00000" : "#00000e"
442- },
443- "main525": {
444- "default": "#00000f"
445- }
446- }
447- */
448-
449- Object . entries ( obj as any ) . forEach ( ( [ key , subObj ] : any ) => {
450- //key = main525
451- //subObj = { "default": "#00000f" }
452-
453- const keys = Object . keys ( subObj as any ) ;
454-
455- if ( keys . length === 1 && keys [ 0 ] === "default" ) {
456- obj [ key ] = subObj . default ;
457- }
458- } ) ;
459- } ) ;
460-
461435 return [
462436 `export function getColorOptions(colorScheme: ColorScheme) {` ,
463437 ` const isDark: boolean = (() => {` ,
Original file line number Diff line number Diff line change @@ -121,7 +121,9 @@ export function getColorOptions(colorScheme: ColorScheme) {
121121 "default": isDark ? "#a00000" : "#00000d",
122122 "active": isDark ? "#b00000" : "#00000e"
123123 },
124- "main525": "#00000f"
124+ "main525": {
125+ "default": "#00000f"
126+ }
125127 },
126128 "purpleGlycine": {
127129 "sun319moon630": {
You can’t perform that action at this time.
0 commit comments