X
Tryk her for at gå til webstedets mobilversion.

Supportforum

Where is the dark theme option stored?

Skrevet

When using the official 'Dark' theme, some things like the home page change their theme to dark.

When using a 3rd-party theme, how can I get the same dark theming?

I tried comparing the prefs.js file with official Dark and Light themes, but didn't find any meaningful differences.

Related: https://github.com/mozilla/FirefoxColor/issues/863 https://github.com/mozilla/FirefoxColor/issues/740

When using the official 'Dark' theme, some things like the home page change their theme to dark. When using a 3rd-party theme, how can I get the same dark theming? I tried comparing the prefs.js file with official Dark and Light themes, but didn't find any meaningful differences. Related: https://github.com/mozilla/FirefoxColor/issues/863 https://github.com/mozilla/FirefoxColor/issues/740

Ændret af Rasmus Kallas den

Citér

Yderligere systemdetaljer

Program

  • User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Yderligere information

Luk
Matthew Thomas
  • Top 25 Contributor
13 løsninger 90 svar

Hello,

If you go to about:config there is an option: browser.in-content.dark-mode if you set that to true, you should get the requested behavior. If the setting is not there, just create it.

Hello, If you go to about:config there is an option: browser.in-content.dark-mode if you set that to true, you should get the requested behavior. If the setting is not there, just create it.
Fandt du dette nyttigt?
Citér
cor-el
  • Top 10 Contributor
  • Moderator
17879 løsninger 161769 svar

Valgt løsning

See: *https://dxr.mozilla.org/mozilla-release/source/toolkit/mozapps/extensions/default-theme *https://dxr.mozilla.org/mozilla-release/source/browser/themes/addons/
Fandt du dette nyttigt? 1
Citér

Spørgsmålsstiller

Matthew Thomas said

Hello, If you go to about:config there is an option: browser.in-content.dark-mode if you set that to true, you should get the requested behavior. If the setting is not there, just create it.

I have it already true (and checked, it remained true while testing with other themes).

''Matthew Thomas [[#answer-1287229|said]]'' <blockquote> Hello, If you go to about:config there is an option: browser.in-content.dark-mode if you set that to true, you should get the requested behavior. If the setting is not there, just create it. </blockquote> I have it already true (and checked, it remained true while testing with other themes).
Fandt du dette nyttigt?
Citér

Spørgsmålsstiller

cor-el said

See:

Found "ntp_background": "#2A2A2E", (the same hex is found on the dark-themed home page) in https://dxr.mozilla.org/mozilla-release/source/browser/themes/addons/dark/manifest.json

Now, have to implement it in to Firefox Color I guess. Thank you.

''cor-el [[#answer-1287232|said]]'' <blockquote> See: *https://dxr.mozilla.org/mozilla-release/source/toolkit/mozapps/extensions/default-theme *https://dxr.mozilla.org/mozilla-release/source/browser/themes/addons/ </blockquote> Found "ntp_background": "#2A2A2E", (the same hex is found on the dark-themed home page) in https://dxr.mozilla.org/mozilla-release/source/browser/themes/addons/dark/manifest.json Now, have to implement it in to Firefox Color I guess. Thank you.
Fandt du dette nyttigt?
Citér
Stil et spørgsmål

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.