Skip to content

Commit

Permalink
Manifest: prefer theme color provided by pl fe configuration
Browse files Browse the repository at this point in the history
Signed-off-by: marcin mikołajczak <[email protected]>
  • Loading branch information
mkljczk committed Sep 12, 2024
1 parent e4539f0 commit a6ec718
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/pleroma/web/views/manifest_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ defmodule Pleroma.Web.ManifestView 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: [
Expand Down

0 comments on commit a6ec718

Please sign in to comment.