[][src]Enum elvis::widgets::values::Colors

pub enum Colors {
    Inherit,
    ORGB(f32i16i16i16),
    Amber,
    AmberAccent,
    Black,
    Blue,
    BlueAccent,
    BlueGrey,
    Brown,
    Cyan,
    CyanAccent,
    DeepOrange,
    DeepOrangeAccent,
    DeepPurple,
    DeepPurpleAccent,
    Green,
    GreenAccent,
    Grey,
    Indigo,
    IndigoAccent,
    LightBlue,
    LightBlueAccent,
    LightGreen,
    LightGreenAccent,
    Lime,
    LimeAccent,
    Orange,
    OrangeAccent,
    Pink,
    PinkAccent,
    Purple,
    PurpleAccent,
    Red,
    RedAccent,
    Teal,
    TealAccent,
    Transparent,
    White,
    Yellow,
    YellowAccent,
}

Color system, accroding to material design's color system.

Variants

Inherit

Colors::Inherit => "0xFFFFFFFF"

ORGB(f32i16i16i16)

Colors::Amber => "0xFFFFC107"

Amber

Colors::Amber => "0xFFFFC107"

AmberAccent

Colors::AmberAccent => "0xFFFFD740"

Black

Colors::Black => "0xFF000000"

Blue

Colors::Blue => "0xFF2196F3"

BlueAccent

Colors::BlueAccent => "0xFF448AFF"

BlueGrey

Colors::BlueGrey => "0xFF607D8B"

Brown

Colors::Brown => "0xFF795548"

Cyan

Colors::Cyan => "0xFF00BCD4"

CyanAccent

Colors::CyanAccent => "0xFF18FFFF"

DeepOrange

Colors::DeepOrange => "0xFFFF5722"

DeepOrangeAccent

Colors::DeepOrangeAccent => "0xFFFF6E40"

DeepPurple

Colors::DeepPurple => "0xFF673AB7"

DeepPurpleAccent

Colors::DeepPurpleAccent => "0xFF7C4DFF"

Green

Colors::Green => "0xFF4CAF50"

GreenAccent

Colors::GreenAccent => "0xFF69F0AE"

Grey

Colors::Grey => "FF9E9E9E"

Indigo

Colors::Indigo => "0xFF3F51B5"

IndigoAccent

Colors::IndigoAccent => "0xFF536DFE"

LightBlue

Colors::LightBlue => "0xFF03A9FA"

LightBlueAccent

Colors::LightBlueAccent => "0xFF40C4FF"

LightGreen

Colors::LightGreen => "0xFF8BC34A"

LightGreenAccent

Colors::LightGreenAccent => "0xFFB2FF59"

Lime

Colors::Lime => "0xFFCDDC39"

LimeAccent

Colors::LimeAccent => "0xFFEEFF41"

Orange

Colors::Orange => "0xFFFF9800"

OrangeAccent

Colors::OrangeAccent => "0xFFFFAB40"

Pink

Colors::Pink => "0xFFE91E63"

PinkAccent

Colors::PinkAccent => "0xFFFF4081"n

Purple

Colors::Purple => "0xFF9C27B0"

PurpleAccent

Colors::PurpleAccent => "0xFFE040FB"

Red

Colors::Red => "0xFFF44336"

RedAccent

Colors::RedAccent => "0xFFFF5252"

Teal

Colors::Teal => "0xFF009688"

TealAccent

Colors::TealAccent => "0xFF64FFDA"

Transparent

Colors::Transparent => "0xFFFFFFFF"

White

Colors::White => "0xFFFFFFFF"

Yellow

Colors::Yellow => "0xFFFFEB3B"

YellowAccent

Colors::YellowAccent => "0xFFFFFF00"

Implementations

impl Colors[src]

pub fn from_hex(h: String) -> Colors[src]

convert Colors from hex, to specfic color if the hex is in Colors

pub fn from_hex_to_orgb(h: String) -> Colors[src]

convert hex to Colors::ORGB

pub fn to_hex(&self) -> String[src]

convert Colors to hex string

pub fn to_orgb(&self) -> Colors[src]

convert Colors to Colors::ORGB

Trait Implementations

impl Clone for Colors[src]

impl Copy for Colors[src]

impl Debug for Colors[src]

impl Default for Colors[src]

Pink is the Pig

impl Eq for Colors[src]

impl PartialEq<Colors> for Colors[src]

impl Serde<Colors, String, Error> for Colors[src]

Auto Trait Implementations

impl RefUnwindSafe for Colors

impl Send for Colors

impl Sync for Colors

impl Unpin for Colors

impl UnwindSafe for Colors

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.