aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/Themes/CommonThemeTrait.php
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-01-20 01:56:18 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2024-05-21 20:36:21 +0200
commit705335e6a55b9ef0e4ebf0bb83c07efac23e52c8 (patch)
treef392d4cb7170ba1e4b78b02280cf18e2edf27cca /apps/theming/lib/Themes/CommonThemeTrait.php
parent9d2c3c1164926eadb61d1ec8360644dfeb75a78c (diff)
downloadnextcloud-server-705335e6a55b9ef0e4ebf0bb83c07efac23e52c8.tar.gz
nextcloud-server-705335e6a55b9ef0e4ebf0bb83c07efac23e52c8.zip
feat(theming): Allow to configure primary color separate from background in admin settings
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/theming/lib/Themes/CommonThemeTrait.php')
-rw-r--r--apps/theming/lib/Themes/CommonThemeTrait.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/theming/lib/Themes/CommonThemeTrait.php b/apps/theming/lib/Themes/CommonThemeTrait.php
index 6d74a7bcdfc..efeb3f0d97c 100644
--- a/apps/theming/lib/Themes/CommonThemeTrait.php
+++ b/apps/theming/lib/Themes/CommonThemeTrait.php
@@ -6,6 +6,7 @@ declare(strict_types=1);
*
* @author Joas Schilling <coding@schilljs.com>
* @author John Molakvoæ <skjnldsv@protonmail.com>
+ * @author Ferdinand Thiessen <opensource@fthiessen.de>
*
* @license GNU AGPL version 3 or any later version
*
@@ -143,8 +144,8 @@ trait CommonThemeTrait {
'--background-image-invert-if-bright' => $isBackgroundBright ? 'invert(100%)' : 'no',
];
- // The user removed the background
- if ($backgroundImage === BackgroundService::BACKGROUND_DISABLED) {
+ // Only use a background color without an image
+ if ($backgroundImage === BackgroundService::BACKGROUND_COLOR) {
// Might be defined already by admin theming, needs to be overridden
$variables['--image-background'] = 'none';
}