Struct cursive::theme::Theme [] [src]

pub struct Theme {
    pub shadow: bool,
    pub borders: Option<BorderStyle>,
    pub colors: Palette,
}

Represents the style a Cursive application will use.

Fields

shadow: bool

Wheter views in a StackView should have shadows.

borders: Option<BorderStyle>

How view borders should be drawn.

colors: Palette

What colors should be used through the application?

Methods

impl Theme
[src]

fn activate(&self)

Sets a theme as active.

Don't use this directly. Uses Cursive::set_theme instead.

Trait Implementations

impl Debug for Theme
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Theme
[src]

fn clone(&self) -> Theme

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Default for Theme
[src]

fn default() -> Self

Returns the "default value" for a type. Read more