Compare commits

...

1 Commits

Author SHA1 Message Date
skjnldsv c11d98dd1e feat(theming): define nextcloud-theme-dark variable
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2025-03-25 17:32:03 +01:00
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -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);
+2
View File
@@ -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,
+2
View File
@@ -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)',