From: szaimen Date: Mon, 5 Sep 2022 15:32:05 +0000 (+0200) Subject: fix dark-contrast-theme X-Git-Tag: v25.0.0beta5~12^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d9b463c20ade82467edc46471f512f0a54514b32;p=nextcloud-server.git fix dark-contrast-theme Signed-off-by: szaimen --- diff --git a/apps/theming/lib/Themes/DarkHighContrastTheme.php b/apps/theming/lib/Themes/DarkHighContrastTheme.php index e7f52bb0475..fdb9e27fe5d 100644 --- a/apps/theming/lib/Themes/DarkHighContrastTheme.php +++ b/apps/theming/lib/Themes/DarkHighContrastTheme.php @@ -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); diff --git a/apps/theming/lib/Themes/HighContrastTheme.php b/apps/theming/lib/Themes/HighContrastTheme.php index 561f7dc9479..a9ba6da42a9 100644 --- a/apps/theming/lib/Themes/HighContrastTheme.php +++ b/apps/theming/lib/Themes/HighContrastTheme.php @@ -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);