Trait ambient_api::prelude::StylesExt
source · pub trait StylesExt {
// Required methods
fn section_style(self) -> Self;
fn header_style(self) -> Self;
fn small_style(self) -> Self;
fn error_text_style(self) -> Self;
fn floating_panel(self) -> Self;
fn panel(self) -> Self;
fn keyboard(self) -> Self;
}
Expand description
A trait that adds some default styles to elements.
Required Methods§
sourcefn section_style(self) -> Self
fn section_style(self) -> Self
Apply the default style for a section header.
sourcefn header_style(self) -> Self
fn header_style(self) -> Self
Apply the default style for a header.
sourcefn small_style(self) -> Self
fn small_style(self) -> Self
Apply the default style for a small text.
sourcefn error_text_style(self) -> Self
fn error_text_style(self) -> Self
Apply the default style for an error text.
sourcefn floating_panel(self) -> Self
fn floating_panel(self) -> Self
Apply the default style for a floating panel.
Object Safety§
This trait is not object safe.