pwa: drop manifest theme_color so Firefox chrome follows the phone theme

Firefox for Android ignores meta theme-color entirely; its PWA window takes
toolbar/status from manifest theme_color and the navigation bar (white/black)
from background_color, so the cream value framed the dark app with light bands.
With theme_color absent Firefox falls back to its own light/dark chrome.
Chromium keeps the per-scheme meta tags and custom2.js sync.
This commit is contained in:
inference-admin committed 2026-11-28 17:05:07 +00:00
1 parent 72c4d7997a
commit 046e97b024
3 files changed
+25 -11

No files matched your search

+14 -1
View File
@@ -66,7 +66,20 @@ try:
mf = _json.load(open(MPATH, encoding="utf-8"))
mf["name"] = "Inference Co\u2011op"
mf["short_name"] = "Inference"
mf["description"] = "Member-governed AI inference — private and renewable model choices."
mf["description"] = "Member-governed AI inference \u2014 private and renewable model choices."
# NO theme_color. Firefox for Android never implemented <meta name=theme-color>
# (the custom2.js sync therefore only reaches Chromium), and its PWA window
# takes the chrome colours from the manifest alone:
# android-components feature/pwa/ext/WebAppManifest.kt: toCustomTabConfig()
# sets toolbarColor = themeColor and navigationBarColor = WHITE/BLACK
# derived from background_color, but only when BOTH are present.
# A cream theme_color therefore paints a cream status/toolbar band and a
# pure-white navigation bar around the dark app, with no runtime override
# possible. With theme_color absent the config is null and Firefox uses its
# own light/dark toolbar surface, which follows the phone theme.
# Chromium still gets the per-scheme meta tags from the Dockerfile.
# background_color stays cream: Chrome's splash screen uses it.
mf.pop("theme_color", None)
# Deterministic icon list: explicit any/maskable entries (no dual-purpose
# values — some Firefox Android versions mishandle "any maskable"), and
# the launcher-suitable sizes first. Each src carries a per-build version