aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Manifest.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-13 10:18:53 +0000
committerMario <mario@mariovavti.com>2022-01-13 10:18:53 +0000
commit57ff6674384e7d6a18f505fdf51232f42b75cc72 (patch)
tree50b069bbe2fccd0b36643463600c50b3fb3dfee1 /Zotlabs/Module/Manifest.php
parentabe3039926dd388108e620148868880cb1da3fa3 (diff)
downloadvolse-hubzilla-57ff6674384e7d6a18f505fdf51232f42b75cc72.tar.gz
volse-hubzilla-57ff6674384e7d6a18f505fdf51232f42b75cc72.tar.bz2
volse-hubzilla-57ff6674384e7d6a18f505fdf51232f42b75cc72.zip
pwa improvements according to lighthouse
Diffstat (limited to 'Zotlabs/Module/Manifest.php')
-rw-r--r--Zotlabs/Module/Manifest.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Module/Manifest.php b/Zotlabs/Module/Manifest.php
index 859efe737..4c418a56a 100644
--- a/Zotlabs/Module/Manifest.php
+++ b/Zotlabs/Module/Manifest.php
@@ -4,11 +4,15 @@ namespace Zotlabs\Module;
use App;
use Zotlabs\Web\Controller;
use Zotlabs\Lib\System;
+use Zotlabs\Render\Theme;
class Manifest extends Controller {
function init() {
+ // populate App::$theme_info
+ Theme::current();
+
$ret = [
'name' => ucfirst(System::get_platform_name()),
'short_name' => ucfirst(System::get_platform_name()),
@@ -18,12 +22,13 @@ class Manifest extends Controller {
[ 'src' => '/images/app/hz-128.png', 'sizes' => '128x128', 'type' => 'image/png' ],
[ 'src' => '/images/app/hz-144.png', 'sizes' => '144x144', 'type' => 'image/png' ],
[ 'src' => '/images/app/hz-152.png', 'sizes' => '152x152', 'type' => 'image/png' ],
- [ 'src' => '/images/app/hz-192.png', 'sizes' => '192x192', 'type' => 'image/png' ],
+ [ 'src' => '/images/app/hz-192.png', 'sizes' => '192x192', 'type' => 'image/png', 'purpose' => 'any maskable' ],
[ 'src' => '/images/app/hz-348.png', 'sizes' => '384x384', 'type' => 'image/png' ],
[ 'src' => '/images/app/hz-512.png', 'sizes' => '512x512', 'type' => 'image/png' ],
[ 'src' => '/images/app/hz.svg', 'sizes' => '64x64', 'type' => 'image/xml+svg' ]
],
- 'theme_color' => '#343a40',
+ 'theme_color' => App::$theme_info['theme_color'],
+ 'background_color' => App::$theme_info['background_color'],
'scope' => '/',
'start_url' => z_root(),
'display' => 'standalone',