diff --git a/EMS/core-bundle/src/Controller/ContentManagement/FileController.php b/EMS/core-bundle/src/Controller/ContentManagement/FileController.php index 79257ba1f..a690fef5d 100644 --- a/EMS/core-bundle/src/Controller/ContentManagement/FileController.php +++ b/EMS/core-bundle/src/Controller/ContentManagement/FileController.php @@ -172,7 +172,7 @@ public function indexImagesAction(): Response ]); } - public function icon(Request $request, int $width, int $height): Response + public function icon(Request $request, int $width, int $height, string $background = null): Response { if ($width !== $height) { throw new NotFoundHttpException('File not found'); @@ -184,7 +184,7 @@ public function icon(Request $request, int $width, int $height): Response EmsFields::ASSET_CONFIG_WIDTH => $width, EmsFields::ASSET_CONFIG_HEIGHT => $height, EmsFields::ASSET_CONFIG_QUALITY => 0, - EmsFields::ASSET_CONFIG_BACKGROUND => "ems-$this->themeColor", + EmsFields::ASSET_CONFIG_BACKGROUND => $background ?? "ems-$this->themeColor", EmsFields::ASSET_CONFIG_RADIUS => $width / 6, EmsFields::ASSET_CONFIG_BORDER_COLOR => '#000000FF', ]); diff --git a/EMS/core-bundle/src/Resources/config/routing/icons.xml b/EMS/core-bundle/src/Resources/config/routing/icons.xml index a89a0f797..cd65343f4 100644 --- a/EMS/core-bundle/src/Resources/config/routing/icons.xml +++ b/EMS/core-bundle/src/Resources/config/routing/icons.xml @@ -28,6 +28,13 @@ 192|256|512 192|256|512 + + 150 + 150 + 000000FF + diff --git a/elasticms-admin/config/packages/security.yaml b/elasticms-admin/config/packages/security.yaml index cbd1b97b8..a4da61ce6 100644 --- a/elasticms-admin/config/packages/security.yaml +++ b/elasticms-admin/config/packages/security.yaml @@ -61,6 +61,7 @@ security: - { path: ^/favicon.ico$, role: PUBLIC_ACCESS } - { path: ^/apple\-touch\-icon\.png$, role: PUBLIC_ACCESS } - { path: ^/favicon\-(16|32|48|64|128|256)x(16|32|48|64|128|256)\.png$, role: PUBLIC_ACCESS } + - { path: ^/mstile\-(150)x(150)\.png$, role: PUBLIC_ACCESS } - { path: ^/android\-chrome\-(192|256|512)x(192|256|512).png$, role: PUBLIC_ACCESS } - { path: ^/browserconfig\.xml$, role: PUBLIC_ACCESS } - { path: ^/site\.webmanifest, role: PUBLIC_ACCESS } diff --git a/elasticms-admin/public/mstile-150x150.png b/elasticms-admin/public/mstile-150x150.png deleted file mode 100644 index f08a9d673..000000000 Binary files a/elasticms-admin/public/mstile-150x150.png and /dev/null differ