diff options
author | athenian200 <athenian200@outlook.com> | 2021-06-22 18:14:44 +0000 |
---|---|---|
committer | New Tobin Paradigm <mattatobin@no-reply.palemoon.org> | 2021-06-22 18:14:44 +0000 |
commit | 9af14b15018bc581fe8d37007890b482cb54e41c (patch) | |
tree | 7875d4047e7cdb3050c69cf93a4c09a684b1a268 /modules | |
parent | 604fc95340d90d5c973478ac142f49667013f61e (diff) | |
download | aura-central-9af14b15018bc581fe8d37007890b482cb54e41c.tar.gz |
Issue mcp-graveyard/UXP%1784 - Add -moz-dark-theme media query and allow prefers-color-scheme to follow it.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/libpref/init/all.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 6a14339a6..ad98f7a07 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -250,6 +250,13 @@ pref("browser.sessionhistory.max_total_viewers", -1); // See https://github.com/MoonchildProductions/UXP/issues/719 pref("browser.newtabpage.add_to_session_history", false); + +// Determines whether the browser's current theme should be light or dark. +// 0 = feature disabled +// 1 = default: light theme +// 2 = dark theme +pref("ui.color_scheme", 1); + pref("ui.use_native_colors", true); #ifdef MOZ_WIDGET_GTK // Determines whether the menubar is shown in the global menubar or not. @@ -269,6 +276,7 @@ pref("browser.display.document_color_use", 0); // 0 = feature disabled // 1 = default: light theme preferred // 2 = dark theme preferred +// 3 = match ui.color_scheme pref("browser.display.prefers_color_scheme", 1); pref("browser.display.use_system_colors", false); pref("browser.display.foreground_color", "#000000"); |