MCPcopy
hub / github.com/wavetermdev/waveterm / computeBgColor

Function computeBgColor

emain/emain-tabview.ts:96–107  ·  view source on GitHub ↗
(fullConfig: FullConfigType)

Source from the content-addressed store, hash-verified

94}
95
96function 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
109const wcIdToWaveTabMap = new Map<number, WaveTabView>();
110

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected