[][src]Struct widgetry::Style

pub struct Style {
    pub outline_thickness: f64,
    pub outline_color: Color,
    pub panel_bg: Color,
    pub hotkey_color: Color,
    pub loading_tips: Text,
    pub btn_solid_dark: ButtonStyle,
    pub btn_outline_dark: ButtonStyle,
    pub btn_solid_light: ButtonStyle,
    pub btn_outline_light: ButtonStyle,
    pub btn_solid_destructive: ButtonStyle,
    pub btn_outline_destructive: ButtonStyle,
}

Fields

outline_thickness: f64outline_color: Colorpanel_bg: Colorhotkey_color: Colorloading_tips: Textbtn_solid_dark: ButtonStylebtn_outline_dark: ButtonStylebtn_solid_light: ButtonStylebtn_outline_light: ButtonStylebtn_solid_destructive: ButtonStylebtn_outline_destructive: ButtonStyle

Implementations

impl<'a> Style[src]

pub fn btn_plain(&self, button_style: &ButtonStyle) -> ButtonBuilder<'a>[src]

pub fn btn_solid(&self, button_style: &ButtonStyle) -> ButtonBuilder<'a>[src]

pub fn btn_outline(&self, button_style: &ButtonStyle) -> ButtonBuilder<'a>[src]

pub fn btn_hotkey(
    &self,
    button_style: &ButtonStyle,
    label: &str,
    key: Key
) -> ButtonBuilder<'a>
[src]

pub fn btn_light_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.