Skip to content

Commit

Permalink
fix background shadow
Browse files Browse the repository at this point in the history
Signed-off-by: szaimen <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Sep 5, 2022
1 parent 15c45b5 commit 7dd7d4d
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 7dd7d4d

Please sign in to comment.