John Molakvoæ
20 hours ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
5 additions and
0 deletions
-
apps/theming/css/default.css
-
apps/theming/lib/Themes/DarkTheme.php
-
apps/theming/lib/Themes/DefaultTheme.php
|
|
@ -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); |
|
|
|
|
|
@ -69,6 +69,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, |
|
|
|
|
|
@ -113,6 +113,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)', |
|
|
|