pub struct ComponentStyle {
pub style: Style,
pub text_color: Color,
pub accent_color: Color,
pub size: ComponentSizeTokens,
}Expand description
Resolved themed component styling.
Fields§
§style: StyleMain style for the component’s primary visual part.
text_color: ColorText color for labels in this variant.
accent_color: ColorAccent color for filled bars, indicators, selected rows, or knobs.
size: ComponentSizeTokensSizing metrics associated with the style.
Trait Implementations§
Source§impl Clone for ComponentStyle
impl Clone for ComponentStyle
Source§fn clone(&self) -> ComponentStyle
fn clone(&self) -> ComponentStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ComponentStyle
Source§impl Debug for ComponentStyle
impl Debug for ComponentStyle
impl Eq for ComponentStyle
Source§impl PartialEq for ComponentStyle
impl PartialEq for ComponentStyle
impl StructuralPartialEq for ComponentStyle
Auto Trait Implementations§
impl Freeze for ComponentStyle
impl RefUnwindSafe for ComponentStyle
impl Send for ComponentStyle
impl Sync for ComponentStyle
impl Unpin for ComponentStyle
impl UnsafeUnpin for ComponentStyle
impl UnwindSafe for ComponentStyle
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