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
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 {
28 } // namespace mozilla