Skip to main content

UiColors

Struct UiColors 

Source
pub struct UiColors {
Show 29 fields pub panel_bg: Color32, pub panel_bg_secondary: Color32, pub panel_bg_floating: Color32, pub modal_overlay: Color32, pub text: Color32, pub text_secondary: Color32, pub text_muted: Color32, pub text_disabled: Color32, pub border: Color32, pub border_control: Color32, pub btn_bg_hover: Color32, pub btn_bg_active: Color32, pub selection_bg: Color32, pub selection_text: Color32, pub focus: Color32, pub accent: Color32, pub accent_hover: Color32, pub accent_active: Color32, pub accent_text: Color32, pub danger_bg: Color32, pub danger_bg_hover: Color32, pub danger_bg_active: Color32, pub danger_text: Color32, pub success: Color32, pub take_profit: Color32, pub stop_loss: Color32, pub warning: Color32, pub error: Color32, pub info: Color32,
}
Expand description

Colours of the UI chrome.

Fields§

§panel_bg: Color32

Panels, toolbars and inputs.

§panel_bg_secondary: Color32

Sidebars, cards and the gaps between panels.

§panel_bg_floating: Color32

Windows, menus, popups and tooltips.

§modal_overlay: Color32

Scrim behind modal dialogs; transparent when the border alone separates them.

§text: Color32

Primary text.

§text_secondary: Color32

Secondary labels.

§text_muted: Color32

Hints, shortcuts and other weak text.

§text_disabled: Color32

Text of disabled controls.

§border: Color32

Separators and window outlines.

§border_control: Color32

Resting outline of checkboxes, radios, inputs and combo boxes.

§btn_bg_hover: Color32

Fill of a hovered button.

§btn_bg_active: Color32

Fill of a pressed or open button.

§selection_bg: Color32

Fill of selected text and selected items.

§selection_text: Color32

Text on selection_bg; egui also outlines a focused text input with it.

§focus: Color32

Keyboard focus ring.

§accent: Color32

Primary action fill and active icon colour; links derive a readable shade.

§accent_hover: Color32

accent when hovered.

§accent_active: Color32

accent when pressed.

§accent_text: Color32

Text and icons on the accent fills.

§danger_bg: Color32

Fill of destructive actions.

§danger_bg_hover: Color32

danger_bg when hovered.

§danger_bg_active: Color32

danger_bg when pressed.

§danger_text: Color32

Text and icons on the danger fills.

§success: Color32

Success text and icons.

§take_profit: Color32

Take-profit lines, labels and controls.

§stop_loss: Color32

Stop-loss lines, labels and controls.

§warning: Color32

Warning text and icons.

§error: Color32

Error text and icons.

§info: Color32

Informational text and icons.

Trait Implementations§

Source§

impl Clone for UiColors

Source§

fn clone(&self) -> UiColors

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for UiColors

Source§

impl Debug for UiColors

Source§

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

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

impl Default for UiColors

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for UiColors

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for UiColors

Source§

fn eq(&self, other: &UiColors) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for UiColors

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for UiColors

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> MaybeSend for T
where T: Send + Sync + ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T> SerializableAny for T
where T: 'static + Any + Clone + for<'a> Send + Sync,

§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

§

fn simd_from(_simd: S, value: T) -> T

§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

§

fn simd_into(self, simd: S) -> T

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.