Do not cut full color on accessibility svg color invert
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
c706009ced
commit
3bb2c87648
1 changed files with 9 additions and 1 deletions
|
@ -260,7 +260,15 @@ class AccessibilityController extends Controller {
|
|||
* @return string
|
||||
*/
|
||||
private function invertSvgIconsColor(string $css) {
|
||||
return str_replace(['color=000', 'color=fff', 'color=***'], ['color=***', 'color=000', 'color=fff'], $css);
|
||||
return str_replace(
|
||||
['color=000&', 'color=fff&', 'color=***&'],
|
||||
['color=***&', 'color=000&', 'color=fff&'],
|
||||
str_replace(
|
||||
['color=000000&', 'color=ffffff&', 'color=******&'],
|
||||
['color=******&', 'color=000000&', 'color=ffffff&'],
|
||||
$css
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue