Skip to content

Commit

Permalink
ref: use ems colors
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Oct 10, 2023
1 parent 3ab4c71 commit ffee2bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,16 @@ 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 => $this->themeColor,
EmsFields::ASSET_CONFIG_BACKGROUND => "ems-$this->themeColor",
EmsFields::ASSET_CONFIG_RADIUS => $width / 6,
EmsFields::ASSET_CONFIG_BORDER_COLOR => '#000000FF',
]);
} else {
$image = $this->fileService->generateImage('@EMSCommonBundle/Resources/public/images/ems-logo.png', [
EmsFields::ASSET_CONFIG_WIDTH => $width,
EmsFields::ASSET_CONFIG_HEIGHT => $height,
EmsFields::ASSET_CONFIG_QUALITY => 0,
EmsFields::ASSET_CONFIG_COLOR => $this->themeColor,
EmsFields::ASSET_CONFIG_COLOR => "ems-$this->themeColor",
]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<msapplication>
<tile>
<square150x150logo src="{{ asset('mstile-150x150.png') }}"/>
<TileColor>{{ themeColor|ems_color.rgb }}</TileColor>
<TileColor>{{ "ems-#{themeColor}"|ems_color.rgb }}</TileColor>
</tile>
</msapplication>
</browserconfig>
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"type": "image/png"
}
],
"theme_color": themeColor|ems_color.rgb,
"background_color": themeColor|ems_color.rgb,
"theme_color": "ems-#{themeColor}"|ems_color.rgb,
"background_color": "ems-#{themeColor}"|ems_color.rgb,
"display": "standalone"
} -%}
{{ data|json_encode|raw }}

0 comments on commit ffee2bb

Please sign in to comment.