From b6a844630d41660979655645c4ea6d98d003039f Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 14 Sep 2022 16:26:44 +0200 Subject: [PATCH] Follow up dashboard dark theme Signed-off-by: Carl Schwan --- css/dashboard.css | 27 +++++++++++++++++++++++---- lib/Dashboard/SocialWidget.php | 3 ++- src/views/Dashboard.vue | 22 ++++++++++++++++++++++ 3 files changed, 47 insertions(+), 5 deletions(-) diff --git a/css/dashboard.css b/css/dashboard.css index 6f79efe9..7c46f6ad 100644 --- a/css/dashboard.css +++ b/css/dashboard.css @@ -1,7 +1,26 @@ +/** + * @copyright Copyright (c) 2020 Julien Veyssier + * + * @author Julien Veyssier + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + .icon-social { background-image: url('../img/social-dark.svg'); -} - -body.theme--dark .icon-social { - background-image: url('../img/social.svg'); + filter: var(--background-invert-if-dark) } diff --git a/lib/Dashboard/SocialWidget.php b/lib/Dashboard/SocialWidget.php index b50640af..fa5193d3 100644 --- a/lib/Dashboard/SocialWidget.php +++ b/lib/Dashboard/SocialWidget.php @@ -72,7 +72,7 @@ class SocialWidget implements IWidget { * @inheritDoc */ public function getUrl(): ?string { - return ''; //$this->uRLGenerator->linkToRoute('social.local.streamNotifications', []); + return $this->urlGenerator->linkToRoute('social.local.streamNotifications', []); } /** @@ -80,5 +80,6 @@ class SocialWidget implements IWidget { */ public function load(): void { \OCP\Util::addScript(Application::APP_NAME, 'social-dashboard'); + \OCP\Util::addStyle(Application::APP_NAME, 'dashboard'); } } diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 25a56c59..311c96d8 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -1,3 +1,25 @@ + +