Merge pull request #9343 from vinzv/9337-fix-pwa-manifest

Adding bigger icons and updating one used for PWA
This commit is contained in:
Hypolite Petovan 2020-10-03 15:06:14 -04:00 committed by GitHub
commit b812065499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 3 deletions

BIN
images/friendica-192.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
images/friendica-192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
images/friendica-512.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
images/friendica-512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -233,7 +233,7 @@ class Page implements ArrayAccess
$touch_icon = $config->get('system', 'touch_icon');
if ($touch_icon == '') {
$touch_icon = 'images/friendica-128.png';
$touch_icon = 'images/friendica-192.png';
}
Hook::callAll('head', $this->page['htmlhead']);

View File

@ -31,7 +31,7 @@ class Manifest extends BaseModule
{
$config = DI::config();
$touch_icon = $config->get('system', 'touch_icon') ?: 'images/friendica-128.png';
$touch_icon = $config->get('system', 'touch_icon') ?: 'images/friendica-192.png';
$theme = DI::config()->get('system', 'theme');
@ -44,7 +44,12 @@ class Manifest extends BaseModule
'icons' => [
[
'src' => DI::baseUrl()->get() . '/' . $touch_icon,
'sizes' => '128x128',
'sizes' => '192x192',
'type' => 'image/png',
],
[
'src' => DI::baseUrl()->get() . '/' . $touch_icon,
'sizes' => '512x512',
'type' => 'image/png',
],
],