mirror of https://github.com/nextcloud/server
Merge pull request #33904 from nextcloud/enh/33833/box-shadow
fix background shadow in high-contrast-mode
This commit is contained in:
commit
5104ee9dd4
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue