From d9b463c20ade82467edc46471f512f0a54514b32 Mon Sep 17 00:00:00 2001 From: szaimen Date: Mon, 5 Sep 2022 17:32:05 +0200 Subject: [PATCH] fix dark-contrast-theme Signed-off-by: szaimen --- apps/theming/lib/Themes/DarkHighContrastTheme.php | 1 + apps/theming/lib/Themes/HighContrastTheme.php | 1 + 2 files changed, 2 insertions(+) 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); -- 2.39.5