Merge pull request #9343 from vinzv/9337-fix-pwa-manifest
Adding bigger icons and updating one used for PWA
This commit is contained in:
commit
b812065499
BIN
images/friendica-192.jpg
Normal file
BIN
images/friendica-192.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
images/friendica-192.png
Normal file
BIN
images/friendica-192.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
images/friendica-512.jpg
Normal file
BIN
images/friendica-512.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
BIN
images/friendica-512.png
Normal file
BIN
images/friendica-512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
|
@ -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']);
|
||||
|
|
|
@ -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',
|
||||
],
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue