summaryrefslogtreecommitdiffstats
path: root/apps/accessibility
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-03-04 11:21:57 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-03-04 11:24:23 +0100
commit3bb2c876482302ebeca5217d2f8dbd842a4af02c (patch)
tree3dc10d17d6c48078ed67b510d76c76e7ca467076 /apps/accessibility
parentc706009ced6399768b05f9c1e5fcf577d73e22b7 (diff)
downloadnextcloud-server-3bb2c876482302ebeca5217d2f8dbd842a4af02c.tar.gz
nextcloud-server-3bb2c876482302ebeca5217d2f8dbd842a4af02c.zip
Do not cut full color on accessibility svg color invert
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/accessibility')
-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
+ )
+ );
}
/**