Merge pull request #33903 from nextcloud/enh/33834/fix-dark-contrast-theme

fix dark-contrast-theme
This commit is contained in:
Simon L 2022-09-07 00:28:06 +02:00 committed by GitHub
commit 72e96c6eba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
$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);

View File

@ -54,6 +54,7 @@ class HighContrastTheme extends DefaultTheme implements ITheme {
$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);