From 7dd7d4d63d3dd5c61968b3645a093d59d8c9da19 Mon Sep 17 00:00:00 2001 From: szaimen Date: Mon, 5 Sep 2022 17:47:07 +0200 Subject: fix background shadow Signed-off-by: szaimen --- apps/theming/lib/Themes/DarkHighContrastTheme.php | 5 ++--- apps/theming/lib/Themes/HighContrastTheme.php | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/theming') 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); -- cgit v1.2.3