MCPcopy Create free account
hub / github.com/codeaashu/claude-code / _getContrastCache

Method _getContrastCache

src/server/web/public/terminal.js:7754–7756  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

7752 const u2 = this._resolveBackgroundRgba(t3, i3, a2), g2 = this._resolveForegroundRgba(r2, o2, a2, h2), v2 = n.rgba.ensureContrastRatio(u2, g2, this._config.minimumContrastRatio / (l2 ? 2 : 1));
7753 if (!v2) return void d2.setColor(e3, s3, null);
7754 const f2 = n.channels.toColor(v2 >> 24 & 255, v2 >> 16 & 255, v2 >> 8 & 255);
7755 return d2.setColor(e3, s3, f2), f2;
7756 }
7757 _getContrastCache(e3) {
7758 return e3 ? this._config.colors.halfContrastCache : this._config.colors.contrastCache;
7759 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected