feat(theming): define nextcloud-theme-dark variable

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
skjnldsv 2025-03-25 17:08:00 +01:00
parent d1383602c7
commit c11d98dd1e
3 changed files with 5 additions and 0 deletions

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);

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,

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)',