1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Global override of color control

#![cfg_attr(not(test), no_std)]

pub use colorchoice::ColorChoice;

/// Get the current [`ColorChoice`] state
pub fn get() -> ColorChoice {
    ColorChoice::global()
}

/// Override the detected [`ColorChoice`]
pub fn set(choice: ColorChoice) {
    choice.write_global()
}