Bug 1856053 [wpt PR 42257] - [FedCM] Rename signin_url to login_url in the config...
[gecko.git] / widget / ColorScheme.h
blob5a8b1a6cdd0409a46576815cc62c94718771be9f
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_ColorScheme_h
7 #define mozilla_ColorScheme_h
9 #include <cstdint>
11 namespace mozilla {
13 // Whether we should use a light or dark appearance.
14 enum class ColorScheme : uint8_t { Light, Dark };
16 // The color-scheme we should get back in case it's not explicit. The "used"
17 // mode is the mode that most of layout should use (defaults to light if the
18 // page doesn't have a color-scheme property / meta-tag indicating otherwise).
20 // The "preferred" mode returns the color-scheme for purposes of
21 // prefers-color-scheme propagation (that is, it defaults to the current
22 // preferred color-scheme, rather than light).
23 enum class ColorSchemeMode : uint8_t {
24 Used,
25 Preferred,
28 } // namespace mozilla
30 #endif