PWAsForFirefox
PWAsForFirefox copied to clipboard
Provide an override for the initial background color
Hi,
From what I gather, the manifest file contains a background color which is used to fill the browser window just before the actual page is loaded. I gratefully use this extension to create a Youtube app on my Linux desktop. When launching it, the initial color is white, while the page is black once it's loaded. I would love to see the ability to override the provided initial background color when it does not suit the user's taste.
BTW I've looked around the profile folder to see if I could edit it manually and I don't think the manifest is stored there, is it stored locally?
You can change the background color by directly editing the correct manifest
subkey in the config.json
file. However, it will get overwritten when you update/edit YouTube PWA from the extension (or command line).
Alternatively, you can disable "Allow web apps to override a background (window) color" from the PWA settings. This will prevent the manifest background color from being used, which should prevent the white flash on startup (if you then also set Firefox theme to dark). I recommend doing this instead of editing manifest directly.
I will probably add an option to change colors in the future.