mirror of
https://github.com/friendica/friendica
synced 2025-01-03 19:22:18 +00:00
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
6 changed files with 8 additions and 3 deletions
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');
|
$touch_icon = $config->get('system', 'touch_icon');
|
||||||
if ($touch_icon == '') {
|
if ($touch_icon == '') {
|
||||||
$touch_icon = 'images/friendica-128.png';
|
$touch_icon = 'images/friendica-192.png';
|
||||||
}
|
}
|
||||||
|
|
||||||
Hook::callAll('head', $this->page['htmlhead']);
|
Hook::callAll('head', $this->page['htmlhead']);
|
||||||
|
|
|
@ -31,7 +31,7 @@ class Manifest extends BaseModule
|
||||||
{
|
{
|
||||||
$config = DI::config();
|
$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');
|
$theme = DI::config()->get('system', 'theme');
|
||||||
|
|
||||||
|
@ -44,7 +44,12 @@ class Manifest extends BaseModule
|
||||||
'icons' => [
|
'icons' => [
|
||||||
[
|
[
|
||||||
'src' => DI::baseUrl()->get() . '/' . $touch_icon,
|
'src' => DI::baseUrl()->get() . '/' . $touch_icon,
|
||||||
'sizes' => '128x128',
|
'sizes' => '192x192',
|
||||||
|
'type' => 'image/png',
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'src' => DI::baseUrl()->get() . '/' . $touch_icon,
|
||||||
|
'sizes' => '512x512',
|
||||||
'type' => 'image/png',
|
'type' => 'image/png',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue