(rgb: RGBA, theme: Theme, shouldRegisterColorVariable = true)
| 201 | } |
| 202 | |
| 203 | export function modifyBackgroundColor(rgb: RGBA, theme: Theme, shouldRegisterColorVariable = true): string { |
| 204 | if (!shouldRegisterColorVariable) { |
| 205 | return _modifyBackgroundColor(rgb, theme); |
| 206 | } |
| 207 | return modifyAndRegisterColor('background', rgb, theme, _modifyBackgroundColor); |
| 208 | } |
| 209 | |
| 210 | const MIN_FG_LIGHTNESS = 0.55; |
| 211 |
no test coverage detected