ui_theme/lib.rs
1// Copyright 2025 the UI Events Authors
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3
4//! UI Theme is a Rust crate which ...
5//!
6//! ## Features
7//!
8//! - `std` (enabled by default): Use the Rust standard library.
9// LINEBENDER LINT SET - lib.rs - v3
10// See https://linebender.org/wiki/canonical-lints/
11// These lints shouldn't apply to examples or tests.
12#![cfg_attr(not(test), warn(unused_crate_dependencies))]
13// These lints shouldn't apply to examples.
14#![warn(clippy::print_stdout, clippy::print_stderr)]
15// Targeting e.g. 32-bit means structs containing usize can give false positives for 64-bit.
16#![cfg_attr(target_pointer_width = "64", warn(clippy::trivially_copy_pass_by_ref))]
17// END LINEBENDER LINT SET
18#![no_std]
19
20/// The light or dark mode theme.
21#[derive(Clone, Debug, Default, Eq, PartialEq, PartialOrd)]
22#[repr(i8)]
23pub enum ColorScheme {
24 /// The light mode color scheme.
25 #[default]
26 Light,
27 /// The dark mode color scheme.
28 Dark,
29}