Skip to content

Commit

Permalink
Merge pull request #33903 from nextcloud/enh/33834/fix-dark-contrast-…
Browse files Browse the repository at this point in the history
…theme

fix dark-contrast-theme
  • Loading branch information
szaimen authored Sep 6, 2022
2 parents 72aa4f5 + d9b463c commit 72e96c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/theming/lib/Themes/DarkHighContrastTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function getCSSVariables(): array {
$colorMainBackground = '#000000';

$variables['--color-main-background'] = $colorMainBackground;
$variables['--color-main-background-translucent'] = 'rgba(var(--color-main-background-rgb), .1)';
$variables['--color-main-text'] = $colorMainText;

$variables['--color-background-dark'] = $this->util->lighten($colorMainBackground, 30);
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 @@ -54,6 +54,7 @@ public function getCSSVariables(): array {
$colorMainBackground = '#ffffff';

$variables['--color-main-background'] = $colorMainBackground;
$variables['--color-main-background-translucent'] = 'rgba(var(--color-main-background-rgb), .1)';
$variables['--color-main-text'] = $colorMainText;

$variables['--color-background-dark'] = $this->util->darken($colorMainBackground, 30);
Expand Down

0 comments on commit 72e96c6

Please sign in to comment.