Function
computeBgColor
(fullConfig: FullConfigType)
Source from the content-addressed store, hash-verified
| 94 | } |
| 95 | |
| 96 | function computeBgColor(fullConfig: FullConfigType): string { |
| 97 | const settings = fullConfig?.settings; |
| 98 | const isTransparent = settings?.["window:transparent"] ?? false; |
| 99 | const isBlur = !isTransparent && (settings?.["window:blur"] ?? false); |
| 100 | if (isTransparent) { |
| 101 | return "#00000000"; |
| 102 | } else if (isBlur) { |
| 103 | return "#00000000"; |
| 104 | } else { |
| 105 | return "#222222"; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | const wcIdToWaveTabMap = new Map<number, WaveTabView>(); |
| 110 | |
Tested by
no test coverage detected