Follow up dashboard dark theme

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
pull/1475/head
Carl Schwan 2022-09-14 16:26:44 +02:00
rodzic ec2c2ec5e5
commit b6a844630d
3 zmienionych plików z 47 dodań i 5 usunięć

Wyświetl plik

@ -1,7 +1,26 @@
/**
* @copyright Copyright (c) 2020 Julien Veyssier <eneiluj@posteo.net>
*
* @author Julien Veyssier <eneiluj@posteo.net>
*
* @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 <http://www.gnu.org/licenses/>.
*
*/
.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)
}

Wyświetl plik

@ -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');
}
}

Wyświetl plik

@ -1,3 +1,25 @@
<!--
- @copyright Copyright (c) 2020 Julien Veyssier <eneiluj@posteo.net>
-
- @author Julien Veyssier <eneiluj@posteo.net>
-
- @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 <http://www.gnu.org/licenses/>.
-
-->
<template>
<NcDashboardWidget :items="items"
:show-more-url="showMoreUrl"