From 551d435f898d764ec190fc445ca45c0c0eb4fdb7 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 18 Aug 2020 14:11:02 +0200 Subject: Make it possible to define theme header styling per background MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/dashboard/lib/Controller/DashboardController.php | 1 + apps/dashboard/lib/Service/BackgroundService.php | 1 + 2 files changed, 2 insertions(+) (limited to 'apps/dashboard/lib') 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' => '', -- cgit v1.2.3