Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-15 14:54:53 +0300
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-04-21 10:31:07 +0300
commit69d1d1a84e5e8937046d30714f11036b680cc04a (patch)
tree76666f2b2aef59e110d963fdeae04107e6ead828 /core
parentfa18a77fa24ad01944d79232fb637076282dedc2 (diff)
Write body theme selector straight in the template
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/css/apps.scss1
-rw-r--r--core/templates/layout.user.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/core/css/apps.scss b/core/css/apps.scss
index b683ffae0ef..cf061303498 100644
--- a/core/css/apps.scss
+++ b/core/css/apps.scss
@@ -166,6 +166,7 @@ kbd {
&,
> a {
background-color: var(--color-primary-light);
+ color: var(--color-primary-text);
}
}
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index f5ac783b340..00e16414535 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -40,7 +40,7 @@ $getUserAvatar = static function (int $size) use ($_): string {
<?php emit_script_loading_tags($_); ?>
<?php print_unescaped($_['headers']); ?>
</head>
- <body id="<?php p($_['bodyid']);?>">
+ <body id="<?php p($_['bodyid']);?>" <?php foreach ($_['enabledThemes'] as $themeId) { p("data-theme-$themeId "); }?>>
<?php include 'layout.noscript.warning.php'; ?>
<?php foreach ($_['initialStates'] as $app => $initialState) { ?>