搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Where is the dark theme option stored?

  • 7 回覆
  • 1 有這個問題
  • 2901 次檢視
  • 最近回覆由 user2044783

more options

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

由 user2044783 於 修改

所有回覆 (7)

more options

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.

more options

選擇的解決方法

more options

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).

more options

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.

more options

Hi,

I hope this helps you.

Open the settings and click personalization. Then click on the colors button and you will get the dark theme option.

Settings>>Personalization>>Colors>>Dark

more options

Hi,

If you do not get the dark theme from the settings for a third party theme, I hope you will be able to get it by following the steps below.

First open the Firefox browser. Then type about: config in the search bar. Then click accept the risk and continue. Then type browser.in-content.dark-mode in its search bar. Where browser.in-content.dark-mode appears as false, change it to true.

more options

I already have browser.in-content.dark-mode true and am not using Windows.