Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an override for the initial background color #487

Open
hofleverancier opened this issue Apr 20, 2024 · 1 comment
Open

Provide an override for the initial background color #487

hofleverancier opened this issue Apr 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@hofleverancier
Copy link

hofleverancier commented Apr 20, 2024

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?

@hofleverancier hofleverancier added the enhancement New feature or request label Apr 20, 2024
@filips123
Copy link
Owner

filips123 commented Apr 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To Do
Development

No branches or pull requests

2 participants