mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
feat(theming): define nextcloud-theme-dark variable
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
parent
d1383602c7
commit
c11d98dd1e
3 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)',
|
||||
|
|
|
|||
Loading…
Reference in a new issue