ShellTheme

Struct ShellTheme 

Source
pub struct ShellTheme { /* private fields */ }
Expand description

A sample theme for shell usage.

Implementations§

Source§

impl ShellTheme

Source

pub fn new(name: &str, p: Palette) -> Self

Trait Implementations§

Source§

impl Clone for ShellTheme

Source§

fn clone(&self) -> ShellTheme

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 Debug for ShellTheme

Source§

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

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

impl SalsaTheme for ShellTheme

Source§

fn white(&self, n: usize) -> Style

Create a style from the given white shade. n is 0..8

Source§

fn black(&self, n: usize) -> Style

Create a style from the given black shade. n is 0..8

Source§

fn gray(&self, n: usize) -> Style

Create a style from the given gray shade. n is 0..8

Source§

fn red(&self, n: usize) -> Style

Create a style from the given red shade. n is 0..8

Source§

fn orange(&self, n: usize) -> Style

Create a style from the given orange shade. n is 0..8

Source§

fn yellow(&self, n: usize) -> Style

Create a style from the given yellow shade. n is 0..8

Source§

fn limegreen(&self, n: usize) -> Style

Create a style from the given limegreen shade. n is 0..8

Source§

fn green(&self, n: usize) -> Style

Create a style from the given green shade. n is 0..8

Source§

fn bluegreen(&self, n: usize) -> Style

Create a style from the given bluegreen shade. n is 0..8

Source§

fn cyan(&self, n: usize) -> Style

Create a style from the given cyan shade. n is 0..8

Source§

fn blue(&self, n: usize) -> Style

Create a style from the given blue shade. n is 0..8

Source§

fn deepblue(&self, n: usize) -> Style

Create a style from the given deepblue shade. n is 0..8

Source§

fn purple(&self, n: usize) -> Style

Create a style from the given purple shade. n is 0..8

Source§

fn magenta(&self, n: usize) -> Style

Create a style from the given magenta shade. n is 0..8

Source§

fn redpink(&self, n: usize) -> Style

Create a style from the given redpink shade. n is 0..8

Source§

fn primary(&self, n: usize) -> Style

Create a style from the given primary shade. n is 0..8

Source§

fn secondary(&self, n: usize) -> Style

Create a style from the given secondary shade. n is 0..8

Source§

fn container_base(&self) -> Style

Container base

Source§

fn container_border(&self) -> Style

Container border

Source§

fn container_arrow(&self) -> Style

Container arrows

Source§

fn popup_base(&self) -> Style

Background for popups.

Source§

fn popup_border(&self) -> Style

Dialog arrows

Source§

fn popup_arrow(&self) -> Style

Dialog arrows

Source§

fn dialog_base(&self) -> Style

Background for dialogs.

Source§

fn dialog_border(&self) -> Style

Dialog arrows

Source§

fn dialog_arrow(&self) -> Style

Dialog arrows

Source§

fn status_base(&self) -> Style

Style for the status line.

Source§

fn button_base(&self) -> Style

Base style for buttons.

Source§

fn button_armed(&self) -> Style

Armed style for buttons.

Source§

fn month_style(&self) -> CalendarStyle

Complete MonthStyle.

Source§

fn shadow_style(&self) -> ShadowStyle

Style for shadows.

Source§

fn line_nr_style(&self) -> LineNumberStyle

Style for LineNumbers.

Source§

fn textarea_style(&self) -> TextStyle

Complete TextAreaStyle

Source§

fn text_style(&self) -> TextStyle

Complete TextInputStyle

Source§

fn label_style(&self) -> Style

Text-label style.

Source§

fn checkbox_style(&self) -> CheckboxStyle

Complete CheckboxStyle

Source§

fn slider_style(&self) -> SliderStyle

Slider Style

Source§

fn menu_style(&self) -> MenuStyle

Complete MenuStyle

Source§

fn button_style(&self) -> ButtonStyle

Complete ButtonStyle

Source§

fn table_style(&self) -> TableStyle

Complete TableStyle

Source§

fn list_style(&self) -> ListStyle

Complete ListStyle

Source§

fn scroll_style(&self) -> ScrollStyle

Scroll style

Source§

fn popup_scroll_style(&self) -> ScrollStyle

Popup scroll style

Source§

fn dialog_scroll_style(&self) -> ScrollStyle

Dialog scroll style

Source§

fn split_style(&self) -> SplitStyle

Split style

Source§

fn view_style(&self) -> ViewStyle

View style

Source§

fn tabbed_style(&self) -> TabbedStyle

Tabbed style

Source§

fn statusline_style(&self) -> Vec<Style>

Complete StatusLineStyle for a StatusLine with 3 indicator fields.

Source§

fn statusline_style_ext(&self) -> StatusLineStyle

StatusLineStyle for a StatusLine with 3 indicator fields.

Source§

fn file_dialog_style(&self) -> FileDialogStyle

FileDialog style.

Source§

fn msg_dialog_style(&self) -> MsgDialogStyle

Complete MsgDialogStyle.

Source§

fn form_style(&self) -> FormStyle

Form style.

Source§

fn clipper_style(&self) -> ClipperStyle

Clipper style.

Source§

fn name(&self) -> &str

Theme name.
Source§

fn palette(&self) -> &Palette

Color palette.
Source§

fn focus(&self) -> Style

Focused style.
Source§

fn select(&self) -> Style

Selection style.
Source§

fn text_input(&self) -> Style

Text input base style.
Source§

fn text_focus(&self) -> Style

Text input with focus.
Source§

fn text_select(&self) -> Style

Text selection.
Source§

fn paragraph_style(&self) -> ParagraphStyle

Paragraph.
Source§

fn choice_style(&self) -> ChoiceStyle

Choice.
Source§

fn radio_style(&self) -> RadioStyle

Radiobutton.
Source§

fn textview_style(&self) -> TextStyle

Text style for view-only TextAreas.

Auto Trait Implementations§

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> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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.