为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox 'system-level' dark theme

  • 2 个回答
  • 0 人有此问题
  • 1 次查看
  • 最后回复者为 Terry

more options

Sites such as startpage.com, google, youtube and others implement the `user-prefers-color-scheme` css system for light and dark themes. This often takes the form of a dropdown selection with options light, dark, and system-setting.

On Linux, firefox, with a Mate desktop, I have set firefox theme and my window manager to dark. This is not being passed to the end site. Unable to identify the value they are presenting a light theme.

My windows is light themed with a dark themed firefox. Firefox does not tell google (and other) sites that I'm interested in the dark theme.

Is there a way to always set the css level variable of user-prefers-color-scheme to dark?

Most answers in this space are referring to:

 - setting firefox theme to dark
 - using an extension to force sites that do not implement user-prefers-color-scheme to be dark themed.

Instead I'm interested in setting that value to always request dark theme from sites that implement dark themes and accepting light themes from sites that do not implement dark themes.

Interestingly this is not set by firefox dark themes in my cases, perhaps there is an underlying bug or unexpected behavior in how that is calculated in my cases?

Sites such as startpage.com, google, youtube and others implement the `user-prefers-color-scheme` css system for light and dark themes. This often takes the form of a dropdown selection with options light, dark, and system-setting. On Linux, firefox, with a Mate desktop, I have set firefox theme and my window manager to dark. This is not being passed to the end site. Unable to identify the value they are presenting a light theme. My windows is light themed with a dark themed firefox. Firefox does not tell google (and other) sites that I'm interested in the dark theme. Is there a way to always set the css level variable of user-prefers-color-scheme to dark? Most answers in this space are referring to: - setting firefox theme to dark - using an extension to force sites that do not implement user-prefers-color-scheme to be dark themed. Instead I'm interested in setting that value to always request dark theme from sites that implement dark themes and accepting light themes from sites that do not implement dark themes. Interestingly this is not set by firefox dark themes in my cases, perhaps there is an underlying bug or unexpected behavior in how that is calculated in my cases?

所有回复 (2)

more options

Go to Settings and check the Website appearance. Is it set to System theme?

more options

Failing that, there are two preferences you could try. layout.css.prefers-color-scheme.content-override dark (0), light (1), system (2) or browser (3) ui.systemUsesDarkTheme 0 light, 1 dark

https://support.mozilla.org/en-US/kb/about-config-editor-firefox