summaryrefslogtreecommitdiffstats
path: root/apps/dashboard/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-18 14:11:02 +0200
committerJulius Härtl <jus@bitgrid.net>2020-08-19 17:07:28 +0200
commit551d435f898d764ec190fc445ca45c0c0eb4fdb7 (patch)
tree46aa31828468637965c5267848a29bc6b5167e33 /apps/dashboard/lib
parent5932376333b5e78ef522fe75726b0889fad8b22f (diff)
downloadnextcloud-server-551d435f898d764ec190fc445ca45c0c0eb4fdb7.tar.gz
nextcloud-server-551d435f898d764ec190fc445ca45c0c0eb4fdb7.zip
Make it possible to define theme header styling per background
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard/lib')
-rw-r--r--apps/dashboard/lib/Controller/DashboardController.php1
-rw-r--r--apps/dashboard/lib/Service/BackgroundService.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php
index 3f4c9fdbfa4..95656b260e8 100644
--- a/apps/dashboard/lib/Controller/DashboardController.php
+++ b/apps/dashboard/lib/Controller/DashboardController.php
@@ -87,6 +87,7 @@ class DashboardController extends Controller {
* @return TemplateResponse
*/
public function index(): TemplateResponse {
+ \OCP\Util::addStyle('dashboard', 'dashboard');
$this->eventDispatcher->dispatchTyped(new LoadSidebar());
if (class_exists(LoadViewer::class)) {
$this->eventDispatcher->dispatchTyped(new LoadViewer());
diff --git a/apps/dashboard/lib/Service/BackgroundService.php b/apps/dashboard/lib/Service/BackgroundService.php
index 30e9d9fe3cb..4e154dd0170 100644
--- a/apps/dashboard/lib/Service/BackgroundService.php
+++ b/apps/dashboard/lib/Service/BackgroundService.php
@@ -47,6 +47,7 @@ class BackgroundService {
'bernie-cetonia-aurata-take-off-composition.jpg' => [
'attribution' => '',
'attribution_url' => '',
+ 'theming' => self::THEMING_MODE_DARK,
],
'dejan-krsmanovic-ribbed-red-metal.jpg' => [
'attribution' => '',