diff options
author | szaimen <szaimen@e.mail.de> | 2022-09-05 17:47:07 +0200 |
---|---|---|
committer | szaimen <szaimen@e.mail.de> | 2022-09-05 17:47:07 +0200 |
commit | 7dd7d4d63d3dd5c61968b3645a093d59d8c9da19 (patch) | |
tree | d8685811d40399b45066b4444ad39c95a13939fe /apps/theming/lib | |
parent | 15c45b5ef579122563e17cdf3e0972de64dca99f (diff) | |
download | nextcloud-server-7dd7d4d63d3dd5c61968b3645a093d59d8c9da19.tar.gz nextcloud-server-7dd7d4d63d3dd5c61968b3645a093d59d8c9da19.zip |
fix background shadow
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/Themes/DarkHighContrastTheme.php | 5 | ||||
-rw-r--r-- | apps/theming/lib/Themes/HighContrastTheme.php | 1 |
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); |