StylingConfigProvider

Trait StylingConfigProvider 

Source
pub trait StylingConfigProvider {
    // Required methods
    fn color_support(&self) -> ColorSupport;
    fn term_bg_luma(&self) -> TermBgLuma;
    fn term_bg_rgb(&self) -> Option<[u8; 3]>;
    fn backgrounds(&self) -> Vec<String>;
    fn preferred_light(&self) -> Vec<String>;
    fn preferred_dark(&self) -> Vec<String>;
}
Expand description

Trait for providing styling configuration to break circular dependency

Required Methods§

Source

fn color_support(&self) -> ColorSupport

Get color support setting

Source

fn term_bg_luma(&self) -> TermBgLuma

Get terminal background luminance setting

Source

fn term_bg_rgb(&self) -> Option<[u8; 3]>

Get terminal background RGB setting

Source

fn backgrounds(&self) -> Vec<String>

Get background color list

Source

fn preferred_light(&self) -> Vec<String>

Get preferred light themes

Source

fn preferred_dark(&self) -> Vec<String>

Get preferred dark themes

Implementors§

Source§

impl StylingConfigProvider for NoConfigProvider

Source§

impl StylingConfigProvider for ConfigProvider

Available on crate feature config only.