diff options
author | Simon L <szaimen@e.mail.de> | 2022-09-06 12:58:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 12:58:28 +0200 |
commit | 5104ee9dd494ff1916593139937d02e3affc8918 (patch) | |
tree | 3f0557445e58667689e66dbaca77da8016de8db3 /apps | |
parent | f44797261ad6721a16be2547fc940a3899c416e3 (diff) | |
parent | 7dd7d4d63d3dd5c61968b3645a093d59d8c9da19 (diff) | |
download | nextcloud-server-5104ee9dd494ff1916593139937d02e3affc8918.tar.gz nextcloud-server-5104ee9dd494ff1916593139937d02e3affc8918.zip |
Merge pull request #33904 from nextcloud/enh/33833/box-shadow
fix background shadow in high-contrast-mode
Diffstat (limited to 'apps')
-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); |