pub struct Theme {
pub name: String,
pub primary: Color,
pub secondary: Color,
pub accent: Color,
pub success: Color,
pub warning: Color,
pub muted: Color,
pub text: Color,
pub bar_start: Color,
pub bar_end: Color,
pub highlight: Color,
pub border: Color,
}Fields§
§name: String§primary: Color§secondary: Color§accent: Color§success: Color§warning: Color§muted: Color§text: Color§bar_start: Color§bar_end: Color§highlight: Color§border: ColorImplementations§
Source§impl Theme
impl Theme
pub fn pct_color(&self, pct: f64) -> String
pub fn gradient_bar(&self, ratio: f64, width: usize) -> String
pub fn gradient_sparkline(&self, values: &[u64]) -> String
pub fn badge(&self, _label: &str, value: &str, color: &Color) -> String
pub fn border_line(&self, width: usize) -> String
pub fn box_top(&self, width: usize) -> String
pub fn box_bottom(&self, width: usize) -> String
pub fn box_mid(&self, width: usize) -> String
pub fn box_side(&self) -> String
pub fn header_icon(&self) -> String
pub fn brand_title(&self) -> String
pub fn section_title(&self, title: &str) -> String
pub fn to_toml(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Theme
impl<'de> Deserialize<'de> for Theme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more