diff options
author | szaimen <szaimen@e.mail.de> | 2022-10-12 12:59:16 +0300 |
---|---|---|
committer | szaimen <szaimen@e.mail.de> | 2022-10-12 12:59:16 +0300 |
commit | f1b38426e22507e8ee6f20f446f980fc1fc576ec (patch) | |
tree | 541a62629c274bfc9ae0b8f5963be2b5a9b73a65 /apps/theming/lib/Themes/HighContrastTheme.php | |
parent | 0a5d459c998a22b2d4f7b63fa369d785d9da5158 (diff) |
fix color-main-background-rgb
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'apps/theming/lib/Themes/HighContrastTheme.php')
-rw-r--r-- | apps/theming/lib/Themes/HighContrastTheme.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/theming/lib/Themes/HighContrastTheme.php b/apps/theming/lib/Themes/HighContrastTheme.php index f88020e82a2..14226b5f99b 100644 --- a/apps/theming/lib/Themes/HighContrastTheme.php +++ b/apps/theming/lib/Themes/HighContrastTheme.php @@ -56,12 +56,14 @@ class HighContrastTheme extends DefaultTheme implements ITheme { $colorMainText = '#000000'; $colorMainBackground = '#ffffff'; + $colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground)); return array_merge( $defaultVariables, $this->generatePrimaryVariables($colorMainBackground, $colorMainText), [ '--color-main-background' => $colorMainBackground, + '--color-main-background-rgb' => $colorMainBackgroundRGB, '--color-main-background-translucent' => 'rgba(var(--color-main-background-rgb), 1)', '--color-main-text' => $colorMainText, |