summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-03-04 11:21:57 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2019-03-04 16:40:03 +0000
commit2ca4473e28d0c795830aa711407a2c5a83a67859 (patch)
tree23020082176f57ef7dcc4ff70451037dbd694174 /apps
parentaf15979eb90e0e8d5501c063ea230cd8bfc82052 (diff)
downloadnextcloud-server-2ca4473e28d0c795830aa711407a2c5a83a67859.tar.gz
nextcloud-server-2ca4473e28d0c795830aa711407a2c5a83a67859.zip
Do not cut full color on accessibility svg color invert
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
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
+ )
+ );
}
/**