(rgb: RGBA, theme: Theme, shouldRegisterColorVariable = true)
| 267 | } |
| 268 | |
| 269 | export function modifyForegroundColor(rgb: RGBA, theme: Theme, shouldRegisterColorVariable = true): string { |
| 270 | if (!shouldRegisterColorVariable) { |
| 271 | return _modifyForegroundColor(rgb, theme); |
| 272 | } |
| 273 | return modifyAndRegisterColor('text', rgb, theme, _modifyForegroundColor); |
| 274 | } |
| 275 | |
| 276 | function modifyBorderHSL({h, s, l, a}: HSLA, poleFg: HSLA, poleBg: HSLA): HSLA { |
| 277 | const isDark = l < 0.5; |
no test coverage detected