(rgb: RGBA, theme: Theme)
| 251 | } |
| 252 | |
| 253 | function _modifyForegroundColor(rgb: RGBA, theme: Theme) { |
| 254 | if (theme.mode === 0) { |
| 255 | if (__PLUS__) { |
| 256 | const poles = getTextPoles(theme); |
| 257 | return modifyColorWithCache(rgb, theme, modifyLightSchemeColorExtended, poles[0], poles[1]); |
| 258 | } |
| 259 | return modifyLightSchemeColor(rgb, theme); |
| 260 | } |
| 261 | if (__PLUS__) { |
| 262 | const poles = getTextPoles(theme); |
| 263 | return modifyColorWithCache(rgb, theme, modifyFgColorExtended, poles[0], poles[1]); |
| 264 | } |
| 265 | const pole = getFgPole(theme); |
| 266 | return modifyColorWithCache(rgb, theme, modifyFgHSL, pole); |
| 267 | } |
| 268 | |
| 269 | export function modifyForegroundColor(rgb: RGBA, theme: Theme, shouldRegisterColorVariable = true): string { |
| 270 | if (!shouldRegisterColorVariable) { |
no test coverage detected