[][src]Struct widgetry::style::Style

pub struct Style {
    pub outline_thickness: f64,
    pub outline_color: Color,
    pub panel_bg: Color,
    pub field_bg: Color,
    pub dropdown_border: Color,
    pub icon_fg: Color,
    pub text_fg_color: Color,
    pub text_tooltip_color: Color,
    pub text_hotkey_color: Color,
    pub text_destructive_color: Color,
    pub loading_tips: Text,
    pub btn_solid: ButtonStyle,
    pub btn_outline: ButtonStyle,
    pub btn_solid_floating: ButtonStyle,
    pub btn_solid_destructive: ButtonStyle,
    pub btn_outline_destructive: ButtonStyle,
    pub btn_solid_primary: ButtonStyle,
    pub btn_outline_primary: ButtonStyle,
}

Fields

outline_thickness: f64outline_color: Colorpanel_bg: Colorfield_bg: Colordropdown_border: Coloricon_fg: Colortext_fg_color: Colortext_tooltip_color: Colortext_hotkey_color: Colortext_destructive_color: Colorloading_tips: Textbtn_solid: ButtonStylebtn_outline: ButtonStylebtn_solid_floating: ButtonStylebtn_solid_destructive: ButtonStylebtn_outline_destructive: ButtonStylebtn_solid_primary: ButtonStylebtn_outline_primary: ButtonStyle

Implementations

impl<'a> Style[src]

pub fn btn_popup_icon_text(
    &self,
    icon_path: &'a str,
    text: &'a str
) -> ButtonBuilder<'a>
[src]

impl Style[src]

pub fn standard() -> Style[src]

Trait Implementations

impl Clone for Style[src]

impl<'a> StyledButtons<'a> for Style[src]

Auto Trait Implementations

impl RefUnwindSafe for Style[src]

impl Send for Style[src]

impl Sync for Style[src]

impl Unpin for Style[src]

impl UnwindSafe for Style[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.