Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-09-28 07:21:30 +0300
committerChristopher Ng <chrng8@gmail.com>2022-09-28 07:21:30 +0300
commit8136c360ea242bcd54c5bbfa6cccc6f00c5d2627 (patch)
tree531f871f98a657fa073d9cf6760ec0e1d3d53d95
parent57090849560e8243a2e10efe03b06b0e67e032de (diff)
Add color variable for text on blurred backgroundenh/color-text-for-background-blur
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index 13737aa1bd4..320be632c09 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -91,6 +91,7 @@ class DefaultTheme implements ITheme {
public function getCSSVariables(): array {
$colorMainText = '#222222';
$colorMainTextRgb = join(',', $this->util->hexToRGB($colorMainText));
+ $colorTextMaxcontrast = $this->util->lighten($colorMainText, 33);
$colorMainBackground = '#ffffff';
$colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground));
$colorBoxShadow = $this->util->darken($colorMainBackground, 70);
@@ -119,7 +120,8 @@ class DefaultTheme implements ITheme {
// max contrast for WCAG compliance
'--color-main-text' => $colorMainText,
- '--color-text-maxcontrast' => $this->util->lighten($colorMainText, 33),
+ '--color-text-maxcontrast' => $colorTextMaxcontrast,
+ '--color-text-maxcontrast-background-blur' => $this->util->darken($colorTextMaxcontrast, 7),
'--color-text-light' => $colorMainText,
'--color-text-lighter' => $this->util->lighten($colorMainText, 33),