Merge pull request #33904 from nextcloud/enh/33833/box-shadow

fix background shadow in high-contrast-mode
This commit is contained in:
Simon L 2022-09-06 12:58:28 +02:00 committed by GitHub
commit 5104ee9dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);