Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimivar <simivar@gmail.com>2019-04-02 00:14:04 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-04-02 00:14:04 +0300
commit77cc8d2d3edae2da4d87587acc3881b76b53b87e (patch)
tree7b71948f9517228ebb61be846643341a91be69a2
parent480ebd847b765fbb0a0d34b3b49245b03ce33d20 (diff)
Load ThemeStyles in View and make theme-color themeable (#14282)
-rw-r--r--core/Plugin/Controller.php1
-rw-r--r--plugins/Morpheus/templates/layout.twig2
2 files changed, 2 insertions, 1 deletions
diff --git a/core/Plugin/Controller.php b/core/Plugin/Controller.php
index de787e4ae8..9ea522f5f0 100644
--- a/core/Plugin/Controller.php
+++ b/core/Plugin/Controller.php
@@ -705,6 +705,7 @@ abstract class Controller
$view->logoSVG = \Piwik\Plugins\API\API::getInstance()->getSVGLogoUrl();
$view->hasSVGLogo = \Piwik\Plugins\API\API::getInstance()->hasSVGLogo();
$view->superUserEmails = implode(',', Piwik::getAllSuperUserAccessEmailAddresses());
+ $view->themeStyles = ThemeStyles::get();
$general = PiwikConfig::getInstance()->General;
$view->enableFrames = $general['enable_framed_pages']
diff --git a/plugins/Morpheus/templates/layout.twig b/plugins/Morpheus/templates/layout.twig
index 48d38e0436..54fc4b27c2 100644
--- a/plugins/Morpheus/templates/layout.twig
+++ b/plugins/Morpheus/templates/layout.twig
@@ -22,7 +22,7 @@
{% include "@CoreHome/_favicon.twig" %}
{% include "@CoreHome/_applePinnedTabIcon.twig" %}
- <meta name="theme-color" content="#3450A3">
+ <meta name="theme-color" content="{{ themeStyles.colorHeaderBackground }}">
{% include "_jsGlobalVariables.twig" %}
{% include "_jsCssIncludes.twig" %}