]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix color-main-background-rgb 34567/head
authorszaimen <szaimen@e.mail.de>
Wed, 12 Oct 2022 09:59:16 +0000 (11:59 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Wed, 12 Oct 2022 23:02:01 +0000 (23:02 +0000)
Signed-off-by: szaimen <szaimen@e.mail.de>
apps/theming/lib/Themes/DarkHighContrastTheme.php
apps/theming/lib/Themes/HighContrastTheme.php

index cde6239b186e91df52238bd1f0ffc21d711307f6..7b82136a56a48b364a99a8b870d15f74184439e5 100644 (file)
@@ -56,12 +56,14 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
 
                $colorMainText = '#ffffff';
                $colorMainBackground = '#000000';
+               $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,
 
index d99cc85f376f4a1c4a052f690f090dc2fa67cf79..1ae848c866f3e79f2ce435a308f84cac9f7c94ab 100644 (file)
@@ -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,