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

pub struct Style {
    pub panel_bg: Color,
    pub field_bg: Color,
    pub dropdown_border: Color,
    pub icon_fg: Color,
    pub primary_fg: Color,
    pub text_primary_color: Color,
    pub text_secondary_color: Color,
    pub text_tooltip_color: Color,
    pub text_hotkey_color: Color,
    pub text_destructive_color: Color,
    pub loading_tips: Text,
    pub section_bg: Color,
    pub section_outline: OutlineStyle,
    pub btn_plain: ButtonStyle,
    pub btn_outline: ButtonStyle,
    pub btn_floating: ButtonStyle,
    pub btn_solid: ButtonStyle,
    pub btn_tab: ButtonStyle,
    pub btn_solid_destructive: ButtonStyle,
    pub btn_plain_destructive: ButtonStyle,
    pub btn_solid_primary: ButtonStyle,
    pub btn_plain_primary: ButtonStyle,
}

Fields

panel_bg: Colorfield_bg: Colordropdown_border: Coloricon_fg: Colorprimary_fg: Colortext_primary_color: Colortext_secondary_color: Colortext_tooltip_color: Colortext_hotkey_color: Colortext_destructive_color: Colorloading_tips: Textsection_bg: Colorsection_outline: OutlineStylebtn_plain: ButtonStylebtn_outline: ButtonStylebtn_floating: ButtonStylebtn_solid: ButtonStylebtn_tab: ButtonStylebtn_solid_destructive: ButtonStylebtn_plain_destructive: ButtonStylebtn_solid_primary: ButtonStylebtn_plain_primary: ButtonStyle

Implementations

impl<'a, 'c> Style[src]

pub fn btn_back(&self, title: &'a str) -> ButtonBuilder<'a, 'c>[src]

title: name of previous screen, which you’ll return to

pub fn btn_next(&self) -> ButtonBuilder<'a, 'c>[src]

A right facing caret, like “>”, suitable for paging to the “next” set of results

pub fn btn_prev(&self) -> ButtonBuilder<'a, 'c>[src]

A left facing caret, like “<”, suitable for paging to the “next” set of results

pub fn btn_close(&self) -> ButtonBuilder<'a, 'c>[src]

An “X” button to close the current state. Bound to the escape key.

pub fn btn_close_widget(&self, ctx: &EventCtx<'_>) -> Widget[src]

An “X” button to close the current state. Bound to the escape key and aligned to the right, usually after a title.

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

impl Style[src]

pub fn light_bg() -> Style[src]

pub fn pregame() -> Style[src]

pub fn dark_bg() -> Style[src]

Trait Implementations

impl Clone 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: Any + Send + Sync

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.