Skip to main content

Theme

Trait Theme 

Source
pub trait Theme: Copy {
    type Color: PixelColor + Default;

    // Required methods
    fn text_color(&self) -> Self::Color;
    fn selected_text_color(&self) -> Self::Color;
    fn selection_color(&self) -> Self::Color;
}

Required Associated Types§

Required Methods§

Source

fn text_color(&self) -> Self::Color

Source

fn selected_text_color(&self) -> Self::Color

Source

fn selection_color(&self) -> Self::Color

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Theme for BinaryColor

Implementors§