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§

source

fn section_style(self) -> Self

Apply the default style for a section header.

source

fn header_style(self) -> Self

Apply the default style for a header.

source

fn small_style(self) -> Self

Apply the default style for a small text.

source

fn error_text_style(self) -> Self

Apply the default style for an error text.

source

fn floating_panel(self) -> Self

Apply the default style for a floating panel.

source

fn panel(self) -> Self

Apply the default style for a panel.

source

fn keyboard(self) -> Self

A list of items with some space between them.

Object Safety§

This trait is not object safe.

Implementors§