Merge pull request #14499 from nextcloud/fix/svg-api/dark-mode
Do not cut full color on accessibility svg color invert
This commit is contained in:
commit
36b7fc7bef
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