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:
authorszaimen <szaimen@e.mail.de>2022-09-05 18:47:07 +0300
committerszaimen <szaimen@e.mail.de>2022-09-05 18:47:07 +0300
commit7dd7d4d63d3dd5c61968b3645a093d59d8c9da19 (patch)
treed8685811d40399b45066b4444ad39c95a13939fe /apps/theming
parent15c45b5ef579122563e17cdf3e0972de64dca99f (diff)
fix background shadowenh/33833/box-shadow
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/lib/Themes/DarkHighContrastTheme.php5
-rw-r--r--apps/theming/lib/Themes/HighContrastTheme.php1
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/theming/lib/Themes/DarkHighContrastTheme.php b/apps/theming/lib/Themes/DarkHighContrastTheme.php
index 62b7d4f6358..e7f52bb0475 100644
--- a/apps/theming/lib/Themes/DarkHighContrastTheme.php
+++ b/apps/theming/lib/Themes/DarkHighContrastTheme.php
@@ -55,7 +55,6 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
$variables = parent::getCSSVariables();
$colorMainText = '#ffffff';
$colorMainBackground = '#000000';
- $colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorMainText));
$variables['--color-main-background'] = $colorMainBackground;
$variables['--color-main-text'] = $colorMainText;
@@ -75,8 +74,8 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
$variables['--color-loading-dark'] = '#dddddd';
- $variables['--color-box-shadow-rgb'] = $colorBoxShadowRGB;
- $variables['--color-box-shadow'] = $colorBoxShadowRGB;
+ $variables['--color-box-shadow-rgb'] = 'var(--color-main-text)';
+ $variables['--color-box-shadow'] = 'var(--color-main-text)';
$variables['--color-border'] = $this->util->lighten($colorMainBackground, 50);
diff --git a/apps/theming/lib/Themes/HighContrastTheme.php b/apps/theming/lib/Themes/HighContrastTheme.php
index 4f2f457bd5e..561f7dc9479 100644
--- a/apps/theming/lib/Themes/HighContrastTheme.php
+++ b/apps/theming/lib/Themes/HighContrastTheme.php
@@ -73,6 +73,7 @@ class HighContrastTheme extends DefaultTheme implements ITheme {
$variables['--color-loading-light'] = '#dddddd';
$variables['--color-loading-dark'] = '#000000';
+ $variables['--color-box-shadow-rgb'] = 'var(--color-main-text)';
$variables['--color-box-shadow'] = 'var(--color-main-text)';
$variables['--color-border'] = $this->util->darken($colorMainBackground, 50);