diff options
author | athenian200 <athenian200@outlook.com> | 2021-03-23 02:14:40 -0500 |
---|---|---|
committer | athenian200 <athenian200@outlook.com> | 2021-03-23 22:25:54 -0500 |
commit | e946ca91fb032149131087ce24fbba886c53ee18 (patch) | |
tree | aff4c2f37a80c6f4c79e32df564bb18a31172536 /dom/base/nsGkAtomList.h | |
parent | d3543ca2fecf39a83952872c0b936e4566fe02ff (diff) | |
download | uxp-e946ca91fb032149131087ce24fbba886c53ee18.tar.gz |
Issue #1752 - Implement "prefers-color-scheme" as a user preference.
This PR passes all current tests for this feature, and implements the "prefers-color-scheme" media query as an enumerated keyword that is controlled by an integer preference.
Currently, the possible options are 0 to see a website's fallback code and essentially behave like this isn't implemented (our current behavior), 1 to express a preference for a light theme (the default for spec reasons), and 2 to express a preference for a dark theme. Over time, this list may expand to include other preferences like a preference for a sepia theme or something, and this leaves us prepared for that future.
Diffstat (limited to 'dom/base/nsGkAtomList.h')
-rw-r--r-- | dom/base/nsGkAtomList.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dom/base/nsGkAtomList.h b/dom/base/nsGkAtomList.h index 5e08fdc20b..caf8061bbc 100644 --- a/dom/base/nsGkAtomList.h +++ b/dom/base/nsGkAtomList.h @@ -2239,6 +2239,7 @@ GK_ATOM(scrollbar_end_backward, "scrollbar-end-backward") GK_ATOM(scrollbar_end_forward, "scrollbar-end-forward") GK_ATOM(scrollbar_thumb_proportional, "scrollbar-thumb-proportional") GK_ATOM(overlay_scrollbars, "overlay-scrollbars") +GK_ATOM(prefers_color_scheme, "prefers-color-scheme") GK_ATOM(windows_accent_color_applies, "windows-accent-color-applies") GK_ATOM(windows_accent_color_is_dark, "windows-accent-color-is-dark") GK_ATOM(windows_default_theme, "windows-default-theme") |