kopia lustrzana https://github.com/nextcloud/social
Merge pull request #1475 from nextcloud/followup/dashboard
Follow up dashboard dark themepull/1466/head
commit
f026927e91
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Ładowanie…
Reference in New Issue