為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Disabling dark mode

  • 9 回覆
  • 1 有這個問題
  • 24 次檢視
  • 最近回覆由 Paul

more options

With a new update that came out a little bit ago, firefox decided to match themes and dark/light mode. I don't like this. I use the darkfox theme, but like light mode for everything.

I previously changed browser.theme.content-theme, which fixed the content, but not toolbars/popups/etc.

Today I found out about browser.theme.toolbar-theme and changed that, which did make everything else light mode (temporarily).

It seems that the changes in about:config are tied to the theme as well. Every time I close firefox, the changes revert. When I switched the theme from darkfox to the default light theme, it changed the preferences to light mode, and when I went back to darkfox it changed the preferences to dark mode.

On darkfox, the preferences are: browser.theme.content-theme 2 browser.theme.toolbar-theme 0

On the light theme, they are: browser.theme.content-theme 1 browser.theme.toolbar-theme 1

Is there some way to unlink theme and preferences, or otherwise lock these two specific preferences so firefox stops trying to match my theme and dark mode?

With a new update that came out a little bit ago, firefox decided to match themes and dark/light mode. I don't like this. I use the darkfox theme, but like light mode for everything. I previously changed browser.theme.content-theme, which fixed the content, but not toolbars/popups/etc. Today I found out about browser.theme.toolbar-theme and changed that, which did make everything else light mode (temporarily). It seems that the changes in about:config are tied to the theme as well. Every time I close firefox, the changes revert. When I switched the theme from darkfox to the default light theme, it changed the preferences to light mode, and when I went back to darkfox it changed the preferences to dark mode. On darkfox, the preferences are: browser.theme.content-theme 2 browser.theme.toolbar-theme 0 On the light theme, they are: browser.theme.content-theme 1 browser.theme.toolbar-theme 1 Is there some way to unlink theme and preferences, or otherwise lock these two specific preferences so firefox stops trying to match my theme and dark mode?

所有回覆 (9)

more options

Try to enter 'about:config' in the URL bar and set layout.css.prefers-color-scheme.content-override = 2 or 1.

more options
more options

terry21 said

You could try userChrome.css. https://support.mozilla.org/en-US/questions/1364054#answer-1473397

So it only took me two weeks to respond -- boy, my work has been so busy that I haven't even had time to fix the most annoying thing that I see every time I turn on my computer.

Anyway, thanks for this, it helps in part. My menue bar (the one from the 3 little lines) is in light mode now, but my right-click menues are in dark, as is my history window still. Any further CSS things I could use to fix those? thanks!

由 natoboo101 於 修改

more options

TyDraniu said

Try to enter 'about:config' in the URL bar and set layout.css.prefers-color-scheme.content-override = 2 or 1.

Unfortunately, no change from this.

more options

OK, try these. I am not using black on white but I have made those the colours. These don't affect the history window; perhaps ask about that on the FirefoxCSS sub on reddit. 'panelview' may also affect the 3 bar menu.

menupopup, panel {
  --panel-background: White !important;
  --panel-color: Black !important;
}
panelview {
  --arrowpanel-background: White !important;
  --arrowpanel-color: Black !important;
  color: Black !important;
}
more options

terry21 said

OK, try these. I am not using black on white but I have made those the colours. These don't affect the history window; perhaps ask about that on the FirefoxCSS sub on reddit. 'panelview' may also affect the 3 bar menu.
menupopup, panel {
  --panel-background: White !important;
  --panel-color: Black !important;
}
panelview {
  --arrowpanel-background: White !important;
  --arrowpanel-color: Black !important;
  color: Black !important;
}

Getting closer! My right-click menues are light mode now. History window is still dark though.

more options

As I said, you may have to ask on the reddit sub. I have never been able to find code for the library window in the time I have had available. The Browser Tool Box is supposed to help but it's a devil to use.

more options

terry21 said

As I said, you may have to ask on the reddit sub. I have never been able to find code for the library window in the time I have had available. The Browser Tool Box is supposed to help but it's a devil to use.

Yup, I'm asking the reddit now. Hopefully I can get something good.

more options

WARNING from the moderator team: userChrome.css scripts are not provided by Mozilla and is not officially supported. Firefox is a work in progress and, to allow for continuous innovation, Mozilla cannot guarantee future updates won’t impact your customizations. For this reason, Mozilla does not officially support style rules customization.

Please read Firefox Advanced Customization and Configuration Options to learn more.