]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix dark-contrast-theme 33903/head
authorszaimen <szaimen@e.mail.de>
Mon, 5 Sep 2022 15:32:05 +0000 (17:32 +0200)
committerSimon L. (Rebase PR Action) <szaimen@e.mail.de>
Tue, 6 Sep 2022 18:03:35 +0000 (18:03 +0000)
Signed-off-by: szaimen <szaimen@e.mail.de>
apps/theming/lib/Themes/DarkHighContrastTheme.php
apps/theming/lib/Themes/HighContrastTheme.php

index e7f52bb0475313868515390ebd2a333c5ee41db5..fdb9e27fe5d3511b02a8192fa76127820c4befc5 100644 (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);
index 561f7dc9479f8be01bf38eac904fb8846edbd639..a9ba6da42a931daf49e2f6527903ff610240800a 100644 (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);