Skip to content

Commit d9b463c

Browse files
committed
fix dark-contrast-theme
Signed-off-by: szaimen <[email protected]>
1 parent 2a59d48 commit d9b463c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/theming/lib/Themes/DarkHighContrastTheme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function getCSSVariables(): array {
5757
$colorMainBackground = '#000000';
5858

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

6263
$variables['--color-background-dark'] = $this->util->lighten($colorMainBackground, 30);

apps/theming/lib/Themes/HighContrastTheme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function getCSSVariables(): array {
5454
$colorMainBackground = '#ffffff';
5555

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

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

0 commit comments

Comments
 (0)