diff options
-rw-r--r-- | apps/theming/css/default.css | 1 | ||||
-rw-r--r-- | apps/theming/lib/Themes/DarkTheme.php | 2 | ||||
-rw-r--r-- | apps/theming/lib/Themes/DefaultTheme.php | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css index ad5b27530c3..63592033c13 100644 --- a/apps/theming/css/default.css +++ b/apps/theming/css/default.css @@ -1,6 +1,7 @@ /** SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors */ /** SPDX-License-Identifier: AGPL-3.0-or-later */ :root { + --nextcloud-theme-dark: 0; --color-main-background: #ffffff; --color-main-background-rgb: 255,255,255; --color-main-background-translucent: rgba(var(--color-main-background-rgb), .97); diff --git a/apps/theming/lib/Themes/DarkTheme.php b/apps/theming/lib/Themes/DarkTheme.php index fd273d4697d..d12ff79146e 100644 --- a/apps/theming/lib/Themes/DarkTheme.php +++ b/apps/theming/lib/Themes/DarkTheme.php @@ -61,6 +61,8 @@ class DarkTheme extends DefaultTheme implements ITheme { $defaultVariables, $this->generatePrimaryVariables($colorMainBackground, $colorMainText), [ + '--nextcloud-theme-dark' => 1, + '--color-main-text' => $colorMainText, '--color-main-background' => $colorMainBackground, '--color-main-background-rgb' => $colorMainBackgroundRGB, diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php index 1a301eb9820..0187d5f6185 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -101,6 +101,8 @@ class DefaultTheme implements ITheme { }; $variables = [ + '--nextcloud-theme-dark' => 0, + '--color-main-background' => $colorMainBackground, '--color-main-background-rgb' => $colorMainBackgroundRGB, '--color-main-background-translucent' => 'rgba(var(--color-main-background-rgb), .97)', |