summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-08-08 14:36:06 +0200
committerJulius Haertl <jus@bitgrid.net>2016-08-26 12:07:45 +0200
commita7c5f1b3c4cd6dd930b2b57d3f939f09a911938d (patch)
treeaa8719482764bc3a286f9d212bc884bbc58703c0 /apps
parent044d7c3bb71b24a140bdf6581779a16474b0e490 (diff)
downloadnextcloud-server-a7c5f1b3c4cd6dd930b2b57d3f939f09a911938d.tar.gz
nextcloud-server-a7c5f1b3c4cd6dd930b2b57d3f939f09a911938d.zip
Theming: fix federated sharing button color
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/settings-personal.php3
-rw-r--r--apps/federatedfilesharing/templates/settings-personal.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/settings-personal.php b/apps/federatedfilesharing/settings-personal.php
index a937106ce0e..132a36826e7 100644
--- a/apps/federatedfilesharing/settings-personal.php
+++ b/apps/federatedfilesharing/settings-personal.php
@@ -24,6 +24,7 @@
*/
use OCA\FederatedFileSharing\AppInfo\Application;
+use OCA\Theming\Template;
\OC_Util::checkLoggedIn();
@@ -41,6 +42,7 @@ if (count($matches) > 0 && $matches[1] <= 9) {
$cloudID = \OC::$server->getUserSession()->getUser()->getCloudId();
$url = 'https://nextcloud.com/federation#' . $cloudID;
$ownCloudLogoPath = \OC::$server->getURLGenerator()->imagePath('core', 'logo-icon.svg');
+$theme = \OC::$server->getThemingDefaults();
$tmpl = new OCP\Template('federatedfilesharing', 'settings-personal');
$tmpl->assign('outgoingServer2serverShareEnabled', $federatedShareProvider->isOutgoingServer2serverShareEnabled());
@@ -50,5 +52,6 @@ $tmpl->assign('owncloud_logo_path', $ownCloudLogoPath);
$tmpl->assign('reference', $url);
$tmpl->assign('cloudId', $cloudID);
$tmpl->assign('showShareIT', !$isIE8);
+$tmpl->assign('color', $theme->getMailHeaderColor());
return $tmpl->fetchPage();
diff --git a/apps/federatedfilesharing/templates/settings-personal.php b/apps/federatedfilesharing/templates/settings-personal.php
index aad1e385982..3ebd64784ee 100644
--- a/apps/federatedfilesharing/templates/settings-personal.php
+++ b/apps/federatedfilesharing/templates/settings-personal.php
@@ -55,7 +55,7 @@ if ($_['showShareIT']) {
<div class="hidden" id="oca-files-sharing-add-to-your-website-expanded">
<p style="margin: 10px 0">
<a target="_blank" rel="noreferrer" href="<?php p($_['reference']); ?>"
- style="padding:10px;background-color:#0082c9;color:#fff;border-radius:3px;padding-left:4px;">
+ style="padding:10px;background-color:<?php p($_['color']); ?>;color:#fff;border-radius:3px;padding-left:4px;">
<img src="<?php p($_['owncloud_logo_path']); ?>"
style="width:50px;position:relative;top:8px;">
<?php p($l->t('Share with me via Nextcloud')); ?>