Skip to content

Commit

Permalink
Merge pull request #33904 from nextcloud/enh/33833/box-shadow
Browse files Browse the repository at this point in the history
fix background shadow in high-contrast-mode
  • Loading branch information
szaimen authored Sep 6, 2022
2 parents f447972 + 7dd7d4d commit 5104ee9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/theming/lib/Themes/DarkHighContrastTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public function getCSSVariables(): array {
$variables = parent::getCSSVariables();
$colorMainText = '#ffffff';
$colorMainBackground = '#000000';
$colorBoxShadowRGB = join(',', $this->util->hexToRGB($colorMainText));

$variables['--color-main-background'] = $colorMainBackground;
$variables['--color-main-text'] = $colorMainText;
Expand All @@ -75,8 +74,8 @@ public function getCSSVariables(): array {
$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);
Expand Down
1 change: 1 addition & 0 deletions apps/theming/lib/Themes/HighContrastTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function getCSSVariables(): array {
$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);
Expand Down

0 comments on commit 5104ee9

Please sign in to comment.