summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-04 17:39:24 +0100
committerGitHub <noreply@github.com>2019-03-04 17:39:24 +0100
commit36b7fc7bef518976de32e3d1280da4c773988e8a (patch)
tree2f0d02bed71cc8944fa2935e8e1f31f404707c8f /apps
parent3b155c8f146ffa837b6225777e360211ad921b54 (diff)
parent3bb2c876482302ebeca5217d2f8dbd842a4af02c (diff)
downloadnextcloud-server-36b7fc7bef518976de32e3d1280da4c773988e8a.tar.gz
nextcloud-server-36b7fc7bef518976de32e3d1280da4c773988e8a.zip
Merge pull request #14499 from nextcloud/fix/svg-api/dark-mode
Do not cut full color on accessibility svg color invert
Diffstat (limited to 'apps')
-rw-r--r--apps/accessibility/lib/Controller/AccessibilityController.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/accessibility/lib/Controller/AccessibilityController.php b/apps/accessibility/lib/Controller/AccessibilityController.php
index 91c110de868..e17b206cdfd 100644
--- a/apps/accessibility/lib/Controller/AccessibilityController.php
+++ b/apps/accessibility/lib/Controller/AccessibilityController.php
@@ -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
+ )
+ );
}
/**