From 068d18b69bae8456669293a8b7dfe9afd827e03d Mon Sep 17 00:00:00 2001 From: maTh Date: Sat, 4 Mar 2023 15:05:58 +0100 Subject: Add: (#5105) * implemented * themes' metadata.json * fix * fix * retrigger tests * Update lib/Minz/View.php Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> * Update lib/Minz/View.php Co-authored-by: Alexandre Alapetite * Update lib/Minz/View.php Co-authored-by: Alexandre Alapetite * Update lib/Minz/View.php Co-authored-by: Alexandre Alapetite * fix --------- Co-authored-by: Alexandre Alapetite Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> --- app/FreshRSS.php | 4 ++++ app/layout/layout.phtml | 1 + 2 files changed, 5 insertions(+) (limited to 'app') 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') { +