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§
Sourcefn color_support(&self) -> ColorSupport
fn color_support(&self) -> ColorSupport
Get color support setting
Sourcefn term_bg_luma(&self) -> TermBgLuma
fn term_bg_luma(&self) -> TermBgLuma
Get terminal background luminance setting
Sourcefn term_bg_rgb(&self) -> Option<[u8; 3]>
fn term_bg_rgb(&self) -> Option<[u8; 3]>
Get terminal background RGB setting
Sourcefn backgrounds(&self) -> Vec<String>
fn backgrounds(&self) -> Vec<String>
Get background color list
Sourcefn preferred_light(&self) -> Vec<String>
fn preferred_light(&self) -> Vec<String>
Get preferred light themes
Sourcefn preferred_dark(&self) -> Vec<String>
fn preferred_dark(&self) -> Vec<String>
Get preferred dark themes
Implementors§
impl StylingConfigProvider for NoConfigProvider
impl StylingConfigProvider for ConfigProvider
Available on crate feature
config only.