[][src]Struct widgetry::Style

pub struct Style {
    pub outline_thickness: f64,
    pub outline_color: Color,
    pub panel_bg: Color,
    pub hotkey_color: Color,
    pub hovering_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: Colorhovering_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]

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

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

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

fn btn_hotkey(
    &self,
    button_style: &ButtonStyle,
    label: &str,
    key: Key
) -> 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

impl Send for Style

impl Sync for Style

impl Unpin for Style

impl UnwindSafe for Style

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.