MCPcopy Index your code
hub / github.com/darkreader/darkreader / _modifyBorderColor

Function _modifyBorderColor

src/inject/dynamic-theme/modify-colors.ts:298–305  ·  view source on GitHub ↗
(rgb: RGBA, theme: Theme)

Source from the content-addressed store, hash-verified

296}
297
298function _modifyBorderColor(rgb: RGBA, theme: Theme) {
299 if (theme.mode === 0) {
300 return modifyLightSchemeColor(rgb, theme);
301 }
302 const poleFg = getFgPole(theme);
303 const poleBg = getBgPole(theme);
304 return modifyColorWithCache(rgb, theme, modifyBorderHSL, poleFg, poleBg);
305}
306
307export function modifyBorderColor(rgb: RGBA, theme: Theme, shouldRegisterColorVariable = true): string {
308 if (!shouldRegisterColorVariable) {

Callers 1

modifyBorderColorFunction · 0.85

Calls 4

modifyLightSchemeColorFunction · 0.85
getFgPoleFunction · 0.85
getBgPoleFunction · 0.85
modifyColorWithCacheFunction · 0.85

Tested by

no test coverage detected