Manifest: prefer theme color provided by pl fe configuration
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
e4539f014c
commit
a6ec71873a
1 changed files with 6 additions and 2 deletions
|
@ -12,10 +12,14 @@ def render("manifest.json", _params) do
|
||||||
name: Config.get([:instance, :name]),
|
name: Config.get([:instance, :name]),
|
||||||
description: Config.get([:instance, :description]),
|
description: Config.get([:instance, :description]),
|
||||||
icons: Config.get([:manifest, :icons]),
|
icons: Config.get([:manifest, :icons]),
|
||||||
theme_color: Config.get([:manifest, :theme_color]),
|
theme_color:
|
||||||
|
Config.get(
|
||||||
|
[:frontend_configurations, :pl_fe, "brandColor"],
|
||||||
|
Config.get([:manifest, :theme_color])
|
||||||
|
),
|
||||||
background_color: Config.get([:manifest, :background_color]),
|
background_color: Config.get([:manifest, :background_color]),
|
||||||
display: "standalone",
|
display: "standalone",
|
||||||
"display_override": ["window-controls-overlay"],
|
display_override: ["window-controls-overlay"],
|
||||||
scope: Endpoint.url(),
|
scope: Endpoint.url(),
|
||||||
start_url: "/",
|
start_url: "/",
|
||||||
categories: [
|
categories: [
|
||||||
|
|
Loading…
Reference in a new issue