aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/FreshRSS.php4
-rw-r--r--app/layout/layout.phtml1
2 files changed, 5 insertions, 0 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 76ced841c..dd16fad6c 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -141,6 +141,10 @@ class FreshRSS extends Minz_FrontController {
FreshRSS_View::prependStyle(Minz_Url::display(FreshRSS::getThemeFileUrl($theme_id, $filename)));
}
}
+
+ if (!empty($theme['theme-color'])) {
+ FreshRSS_View::appendThemeColors($theme['theme-color']);
+ }
}
//Use prepend to insert before extensions. Added in reverse order.
if (Minz_Request::controllerName() !== 'index') {
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml
index 1e9ce6905..f0ade992f 100644
--- a/app/layout/layout.phtml
+++ b/app/layout/layout.phtml
@@ -11,6 +11,7 @@ if (_t('gen.dir') === 'rtl') {
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
+ <?= FreshRSS_View::metaThemeColor() ?>
<?= FreshRSS_View::headStyle() ?>
<script id="jsonVars" type="application/json">
<?php $this->renderHelper('javascript_vars'); ?>