kopia lustrzana https://github.com/nextcloud/social
Follow up dashboard dark theme
Signed-off-by: Carl Schwan <carl@carlschwan.eu>pull/1475/head
rodzic
ec2c2ec5e5
commit
b6a844630d
|
@ -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 {
|
.icon-social {
|
||||||
background-image: url('../img/social-dark.svg');
|
background-image: url('../img/social-dark.svg');
|
||||||
}
|
filter: var(--background-invert-if-dark)
|
||||||
|
|
||||||
body.theme--dark .icon-social {
|
|
||||||
background-image: url('../img/social.svg');
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,7 @@ class SocialWidget implements IWidget {
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
public function getUrl(): ?string {
|
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 {
|
public function load(): void {
|
||||||
\OCP\Util::addScript(Application::APP_NAME, 'social-dashboard');
|
\OCP\Util::addScript(Application::APP_NAME, 'social-dashboard');
|
||||||
|
\OCP\Util::addStyle(Application::APP_NAME, 'dashboard');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
<template>
|
||||||
<NcDashboardWidget :items="items"
|
<NcDashboardWidget :items="items"
|
||||||
:show-more-url="showMoreUrl"
|
:show-more-url="showMoreUrl"
|
||||||
|
|
Ładowanie…
Reference in New Issue