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: Color32Panels, toolbars and inputs.
panel_bg_secondary: Color32Sidebars, cards and the gaps between panels.
panel_bg_floating: Color32Windows, menus, popups and tooltips.
modal_overlay: Color32Scrim behind modal dialogs; transparent when the border alone separates them.
text: Color32Primary text.
text_secondary: Color32Secondary labels.
text_muted: Color32Hints, shortcuts and other weak text.
text_disabled: Color32Text of disabled controls.
border: Color32Separators and window outlines.
border_control: Color32Resting outline of checkboxes, radios, inputs and combo boxes.
btn_bg_hover: Color32Fill of a hovered button.
btn_bg_active: Color32Fill of a pressed or open button.
selection_bg: Color32Fill of selected text and selected items.
selection_text: Color32Text on selection_bg; egui also outlines a focused text input with it.
focus: Color32Keyboard focus ring.
accent: Color32Primary action fill and active icon colour; links derive a readable shade.
accent_hover: Color32accent when hovered.
accent_active: Color32accent when pressed.
accent_text: Color32Text and icons on the accent fills.
danger_bg: Color32Fill of destructive actions.
danger_bg_hover: Color32danger_bg when hovered.
danger_bg_active: Color32danger_bg when pressed.
danger_text: Color32Text and icons on the danger fills.
success: Color32Success text and icons.
take_profit: Color32Take-profit lines, labels and controls.
stop_loss: Color32Stop-loss lines, labels and controls.
warning: Color32Warning text and icons.
error: Color32Error text and icons.
info: Color32Informational text and icons.
Trait Implementations§
impl Copy for UiColors
Source§impl<'de> Deserialize<'de> for UiColors
impl<'de> Deserialize<'de> for UiColors
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for UiColors
Auto Trait Implementations§
impl Freeze for UiColors
impl RefUnwindSafe for UiColors
impl Send for UiColors
impl Sync for UiColors
impl Unpin for UiColors
impl UnsafeUnpin for UiColors
impl UnwindSafe for UiColors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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