Manifest: prefer theme color provided by pl fe configuration

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-09-12 11:30:37 +02:00
parent e4539f014c
commit a6ec71873a

View file

@ -12,10 +12,14 @@ def render("manifest.json", _params) do
name: Config.get([:instance, :name]),
description: Config.get([:instance, :description]),
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]),
display: "standalone",
"display_override": ["window-controls-overlay"],
display_override: ["window-controls-overlay"],
scope: Endpoint.url(),
start_url: "/",
categories: [