pub struct Style {Show 22 fields
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: Color
§field_bg: Color
§dropdown_border: Color
§icon_fg: Color
§primary_fg: Color
§text_primary_color: Color
§text_secondary_color: Color
§text_tooltip_color: Color
§text_hotkey_color: Color
§text_destructive_color: Color
§loading_tips: Text
§section_bg: Color
§section_outline: OutlineStyle
§btn_plain: ButtonStyle
§btn_outline: ButtonStyle
§btn_floating: ButtonStyle
§btn_solid: ButtonStyle
§btn_tab: ButtonStyle
§btn_solid_destructive: ButtonStyle
§btn_plain_destructive: ButtonStyle
§btn_solid_primary: ButtonStyle
§btn_plain_primary: ButtonStyle
Implementations§
source§impl<'a, 'c> Style
impl<'a, 'c> Style
sourcepub fn btn_back(&self, title: &'a str) -> ButtonBuilder<'a, 'c>
pub fn btn_back(&self, title: &'a str) -> ButtonBuilder<'a, 'c>
title: name of previous screen, which you’ll return to
sourcepub fn btn_next(&self) -> ButtonBuilder<'a, 'c>
pub fn btn_next(&self) -> ButtonBuilder<'a, 'c>
A right facing caret, like “>”, suitable for paging to the “next” set of results
sourcepub fn btn_prev(&self) -> ButtonBuilder<'a, 'c>
pub fn btn_prev(&self) -> ButtonBuilder<'a, 'c>
A left facing caret, like “<”, suitable for paging to the “next” set of results
sourcepub fn btn_close(&self) -> ButtonBuilder<'a, 'c>
pub fn btn_close(&self) -> ButtonBuilder<'a, 'c>
An “X” button
sourcepub fn btn_close_widget(&self, ctx: &EventCtx<'_>) -> Widget
pub fn btn_close_widget(&self, ctx: &EventCtx<'_>) -> Widget
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>
Trait Implementations§
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§
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.