John Molakvoæ 20 hours ago
committed by GitHub
parent
commit
f1bf8323fc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      apps/theming/css/default.css
  2. 2
      apps/theming/lib/Themes/DarkTheme.php
  3. 2
      apps/theming/lib/Themes/DefaultTheme.php

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

2
apps/theming/lib/Themes/DarkTheme.php

@ -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,

2
apps/theming/lib/Themes/DefaultTheme.php

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

Loading…
Cancel
Save