Struct Colors

Source
pub struct Colors<'a> {
Show 44 fields pub root_fg: &'a str, pub root_bg: &'a str, pub border_fg: &'a str, pub border_bg: &'a str, pub window_fg: &'a str, pub window_bg: &'a str, pub shadow_fg: &'a str, pub shadow_bg: &'a str, pub title_fg: &'a str, pub title_bg: &'a str, pub button_fg: &'a str, pub button_bg: &'a str, pub act_button_fg: &'a str, pub act_button_bg: &'a str, pub checkbox_fg: &'a str, pub checkbox_bg: &'a str, pub act_checkbox_fg: &'a str, pub act_checkbox_bg: &'a str, pub entry_fg: &'a str, pub entry_bg: &'a str, pub label_fg: &'a str, pub label_bg: &'a str, pub listbox_fg: &'a str, pub listbox_bg: &'a str, pub act_listbox_fg: &'a str, pub act_listbox_bg: &'a str, pub textbox_fg: &'a str, pub textbox_bg: &'a str, pub act_textbox_fg: &'a str, pub act_textbox_bg: &'a str, pub help_line_fg: &'a str, pub help_line_bg: &'a str, pub root_text_fg: &'a str, pub root_text_bg: &'a str, pub empty_scale: &'a str, pub full_scale: &'a str, pub disabled_entry_fg: &'a str, pub disabled_entry_bg: &'a str, pub compact_button_fg: &'a str, pub compact_button_bg: &'a str, pub act_sel_listbox_fg: &'a str, pub act_sel_listbox_bg: &'a str, pub sel_listbox_fg: &'a str, pub sel_listbox_bg: &'a str,
}
Expand description

A struct containing the color sets for all components.

Valid color names are black, blue, green, cyan, red, magenta, brown, lightgray, gray, brightblue, brightgreen, brightcyan, brightred, brightmagenta, yellow, and white.

Fields§

§root_fg: &'a str

The root window foreground color.

§root_bg: &'a str

The root window background color.

§border_fg: &'a str

Window border foreground color.

§border_bg: &'a str

Window border background color.

§window_fg: &'a str

Window foreground color.

§window_bg: &'a str

Window background color.

§shadow_fg: &'a str

Window/Button shadow foreground color.

§shadow_bg: &'a str

Window/Button shadow background color.

§title_fg: &'a str

Window title foreground color.

§title_bg: &'a str

Window title background color.

§button_fg: &'a str

Button foreground color.

§button_bg: &'a str

Button background color.

§act_button_fg: &'a str

Activated Button foreground color.

§act_button_bg: &'a str

Activated Button background color.

§checkbox_fg: &'a str

Checkbox foreground color.

§checkbox_bg: &'a str

Checkbox background color.

§act_checkbox_fg: &'a str

Activated Checkbox foreground color.

§act_checkbox_bg: &'a str

Activated Checkbox background color.

§entry_fg: &'a str

Entry foreground color.

§entry_bg: &'a str

Entry background color.

§label_fg: &'a str

Label foreground color.

§label_bg: &'a str

Label background color.

§listbox_fg: &'a str

Listbox foreground color.

§listbox_bg: &'a str

Listbox background color.

§act_listbox_fg: &'a str

Activated Listbox foreground color.

§act_listbox_bg: &'a str

Activated Listbox background color.

§textbox_fg: &'a str

Textbox foreground color.

§textbox_bg: &'a str

Textbox background color.

§act_textbox_fg: &'a str

Activated Textbox foreground color.

§act_textbox_bg: &'a str

Activated Textbox background color.

§help_line_fg: &'a str

Help line foreground color.

§help_line_bg: &'a str

Help line background color.

§root_text_fg: &'a str

Root text foreground color.

§root_text_bg: &'a str

Root text background color.

§empty_scale: &'a str

Empty Scale color.

§full_scale: &'a str

Full Scale color.

§disabled_entry_fg: &'a str

Disabled Entry foreground color.

§disabled_entry_bg: &'a str

Disabled Entry background color.

§compact_button_fg: &'a str

CompactButton foreground color.

§compact_button_bg: &'a str

CompactButton background color.

§act_sel_listbox_fg: &'a str

Activated Listbox selection foreground color.

§act_sel_listbox_bg: &'a str

Activated Listbox selection background color.

§sel_listbox_fg: &'a str

Listbox selection foreground color.

§sel_listbox_bg: &'a str

Listbox selection background color.

Trait Implementations§

Source§

impl<'a> Clone for Colors<'a>

Source§

fn clone(&self) -> Colors<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Colors<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for Colors<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Colors<'a>

§

impl<'a> RefUnwindSafe for Colors<'a>

§

impl<'a> Send for Colors<'a>

§

impl<'a> Sync for Colors<'a>

§

impl<'a> Unpin for Colors<'a>

§

impl<'a> UnwindSafe for Colors<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.