How do I change the wite background color?

User Help for Mozilla Firefox
Post Reply
User avatar
premier69
Posts: 34
Joined: January 27th, 2005, 7:28 am
Location: Sweden
Contact:

How do I change the wite background color?

Post by premier69 »

Hello!

When I load a new page, tab, for a second it flashes white, before any of my default dark background addon and / or stylish scripts change the colors of sites to dark as i like.

think during the night when it's dark in the room having it flash white whenever i load a page is annoying for the eyes.

for example, this is white: https://i.imgur.com/6v0N6lu.png
”How do you like my u.f.o.?” - Marilyn Manson as christine /Party Monster
”Money, Success, Fame, Glamour” /Party Monster
User avatar
makaiguy
Posts: 16878
Joined: November 18th, 2002, 6:44 pm
Location: Somewhere in SE USA
Contact:

Re: How do I change the wite background color?

Post by makaiguy »

It sounds like your FFox has not yet loaded your default changes before it starts displaying the page.

Look for this preference via about:config
nglayout.initialpaint.delay

This preference is not shown normally if still using the default value of 1/4 second (250 msec).

To change to something other than the default 250 msec you must add the preference manually.
Right click in an empty space in the about:config list of preferences, choose New, Integer.
Enter a value in excess of 250.

You may need to experiment a bit to find the balance you like between preventing the flash and overly delaying the start of page display. To do that, go back into about:config, double-click nglayout.initialpaint.delay, and enter a new value.

[Caveat: this preference has been around since 2001, and I am not sure if it is still being supported in current versions]
Doug Wilson
Win10 64bit: FF 115.0.02 64bit, TB 102.12.0 32-bit ║ Android 13/10: FF 115.2.0/115.0.1 ║ No TB for Android available, dammit!
What a fool believes he sees, no wise man has the power to reason away - Doobie Brothers
User avatar
jscher2000
Posts: 11742
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
Contact:

Re: How do I change the wite background color?

Post by jscher2000 »

There is an empty (white) space before the page even starts loading that sometimes will flash by. This in a userChrome.css file will fill that space with a bluish-slate-gray color, which is easier on the eyes:

Code: Select all

@-moz-document url(chrome://browser/content/browser.xul) {
  browser[type="content-primary"], 
  browser[type="content"] {
    background: #778899 !important;
  }
}
Haven't set up a userChrome.css file yet? See: https://www.userchrome.org/how-create-u ... e-css.html

See also: https://github.com/overdodactyl/ShadowFox
Post Reply