]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix color-main-background-rgb 34545/head
authorszaimen <szaimen@e.mail.de>
Wed, 12 Oct 2022 09:59:16 +0000 (11:59 +0200)
committerszaimen <szaimen@e.mail.de>
Wed, 12 Oct 2022 09:59:16 +0000 (11:59 +0200)
Signed-off-by: szaimen <szaimen@e.mail.de>
apps/theming/lib/Themes/DarkHighContrastTheme.php
apps/theming/lib/Themes/HighContrastTheme.php

index 4937e5f689974254f7c7c62165b13ebf9cd2fcf5..37d9be4474289218eb577fc1c3bc7bd672a6975d 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 f88020e82a2f4c2cfef5328270739b18108e436c..14226b5f99b3f8a1d6c77335f6b135b90931702f 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,