fix background shadow

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-09-05 17:47:07 +02:00
parent 15c45b5ef5
commit 7dd7d4d63d
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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);