Struct hypex_ui::DesignTokens
source · pub struct DesignTokens {
pub top_bar_color: Color32,
pub bottom_bar_color: Color32,
pub bottom_bar_stroke: Stroke,
pub bottom_bar_rounding: Rounding,
pub shadow_gradient_dark_start: Color32,
}
Expand description
The look and feel of the UI.
Not everything is covered by this.
A lot of other design tokens are put straight into the egui::Style
Fields§
§top_bar_color: Color32
§bottom_bar_color: Color32
§bottom_bar_stroke: Stroke
§bottom_bar_rounding: Rounding
§shadow_gradient_dark_start: Color32
Implementations§
source§impl DesignTokens
impl DesignTokens
sourcepub fn load_and_apply(ctx: &Context) -> Self
pub fn load_and_apply(ctx: &Context) -> Self
Create DesignTokens
and apply style to the given egui context.
Trait Implementations§
source§impl Clone for DesignTokens
impl Clone for DesignTokens
source§fn clone(&self) -> DesignTokens
fn clone(&self) -> DesignTokens
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DesignTokens
impl Debug for DesignTokens
impl Copy for DesignTokens
Auto Trait Implementations§
impl RefUnwindSafe for DesignTokens
impl Send for DesignTokens
impl Sync for DesignTokens
impl Unpin for DesignTokens
impl UnwindSafe for DesignTokens
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
Mutably borrows from an owned value. Read more