|
@@ -68,7 +68,7 @@ discard block |
|
|
block discarded – undo |
|
68
|
68
|
// we want to check if any theme or font is enabled. |
|
69
|
69
|
if (count($userValues) > 0) { |
|
70
|
70
|
$hash = $config->getUserValue($loggedUser->getUID(), self::APP_ID, 'icons-css', md5(implode('-', $userValues))); |
|
71
|
|
- $linkToCSS = $urlGenerator->linkToRoute(self::APP_ID . '.accessibility.getCss', ['md5' => $hash]); |
|
|
71
|
+ $linkToCSS = $urlGenerator->linkToRoute(self::APP_ID.'.accessibility.getCss', ['md5' => $hash]); |
|
72
|
72
|
\OCP\Util::addHeader('link', ['rel' => 'stylesheet', 'href' => $linkToCSS]); |
|
73
|
73
|
} |
|
74
|
74
|
\OCP\Util::addScript('accessibility', 'accessibilityoca'); |
|
@@ -76,7 +76,7 @@ discard block |
|
|
block discarded – undo |
|
76
|
76
|
$userValues = ['dark']; |
|
77
|
77
|
|
|
78
|
78
|
$hash = md5(implode('-', $userValues)); |
|
79
|
|
- $linkToCSS = $urlGenerator->linkToRoute(self::APP_ID . '.accessibility.getCss', ['md5' => $hash]); |
|
|
79
|
+ $linkToCSS = $urlGenerator->linkToRoute(self::APP_ID.'.accessibility.getCss', ['md5' => $hash]); |
|
80
|
80
|
\OCP\Util::addHeader('link', ['rel' => 'stylesheet', 'media' => '(prefers-color-scheme: dark)', 'href' => $linkToCSS]); |
|
81
|
81
|
\OCP\Util::addScript('accessibility', 'accessibilityoca'); |
|
82
|
82
|
} |
Please login to merge, or discard this patch.