@@ -52,6 +52,7 @@ interface UnenforcedColors {
5252interface CustomPaletteColors {
5353 neutral : NeutralColors ;
5454 textHint : Color ;
55+ checkboxUnchecked : Color ;
5556 passed : StatusColors ;
5657 quarantined : StatusColors ;
5758 rejected : StatusColors ;
@@ -89,35 +90,36 @@ export default function createDefaultTheme(themeType: 'light' | 'dark'): Theme {
8990 dark : themeType === 'dark' ? '#151515' : '#fff' ,
9091 } ,
9192 textHint : 'rgba(0, 0, 0, 0.38)' ,
93+ checkboxUnchecked : themeType === 'dark' ? 'rgba(255, 255, 255, 0.23)' : 'rgba(0, 0, 0, 0.23)' ,
9294 passed : {
93- dark : ' #2e5c32',
94- light : ' #a5d6a7',
95+ dark : themeType === 'dark' ? ' #2e5c32' : '#4db052 ',
96+ light : themeType === 'dark' ? ' #a5d6a7' : '#c8e6c9 ',
9597 } ,
9698 quarantined : {
97- dark : ' #8e5518',
98- light : ' #ffcc80',
99+ dark : themeType === 'dark' ? ' #8e5518' : '#e09030 ',
100+ light : themeType === 'dark' ? ' #ffcc80' : '#ffe0b2 ',
99101 } ,
100102 rejected : {
101- dark : ' #7d2e2e',
102- light : ' #ef9a9a',
103+ dark : themeType === 'dark' ? ' #7d2e2e' : '#d63c3c ',
104+ light : themeType === 'dark' ? ' #ef9a9a' : '#ffcdd2 ',
103105 } ,
104106 errorStatus : {
105- dark : ' #5a5a5a',
106- light : ' #b0b0b0',
107+ dark : themeType === 'dark' ? ' #5a5a5a' : '#8a8a8a ',
108+ light : themeType === 'dark' ? ' #b0b0b0' : '#e0e0e0 ',
107109 } ,
108110 allowed : '#4caf50' ,
109111 blocked : '#f44336' ,
110- review : '#ffc107 ' ,
112+ review : '#e6a800 ' ,
111113 selected : {
112114 border : '#c160ef' ,
113- background : ' #3d1b4d',
114- backgroundHover : ' #4d2360',
115- hover : ' rgba(255, 255, 255, 0.1)',
115+ background : themeType === 'dark' ? ' #3d1b4d' : '#f3e5f9 ',
116+ backgroundHover : themeType === 'dark' ? ' #4d2360' : '#e9d5f5 ',
117+ hover : themeType === 'dark' ? ' rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.04 )',
116118 } ,
117119 scanBackground : {
118- default : ' #1e1e1e',
119- light : ' #2d2d2d',
120- dark : ' #0a0a0a',
120+ default : themeType === 'dark' ? ' #1e1e1e' : '#f5f5f5 ',
121+ light : themeType === 'dark' ? ' #2d2d2d' : '#f0f0f0 ',
122+ dark : themeType === 'dark' ? ' #0a0a0a' : '#fafafa ',
121123 } ,
122124 gray : {
123125 start : '#888888' ,
@@ -126,7 +128,9 @@ export default function createDefaultTheme(themeType: 'light' | 'dark'): Theme {
126128 gradient : 'linear-gradient(90deg, #888888 0%, #cccccc 50%, #888888 100%)' ,
127129 } ,
128130 unenforced : {
129- stripe : 'repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255, 255, 255, 0.1) 4px, rgba(255, 255, 255, 0.1) 8px)' ,
131+ stripe : themeType === 'dark'
132+ ? 'repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255, 255, 255, 0.12) 4px, rgba(255, 255, 255, 0.12) 8px)'
133+ : 'repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(0, 0, 0, 0.12) 4px, rgba(0, 0, 0, 0.12) 8px)' ,
130134 } ,
131135 mode : themeType
132136 } ,
0 commit comments