#[repr(C)]pub struct IconStyleOptions {
pub prefer_grayscale: bool,
pub tint_color: OptionColorU,
pub inherit_text_color: bool,
}Expand description
Icon-specific styling options for accessibility and theming.
These settings affect how icons are rendered, supporting accessibility needs like reduced colors and high contrast modes.
Fields§
§prefer_grayscale: boolIf true, icons should be rendered in grayscale (for color-blind users or reduced color preference). Applies a CSS grayscale filter.
tint_color: OptionColorUOptional tint color to apply to icons. Useful for matching icons to the current theme or for high contrast modes.
inherit_text_color: boolIf true, icons should inherit the current text color instead of using their original colors. Works well with font-based icons.
Trait Implementations§
Source§impl Clone for IconStyleOptions
impl Clone for IconStyleOptions
Source§fn clone(&self) -> IconStyleOptions
fn clone(&self) -> IconStyleOptions
Returns a duplicate 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 IconStyleOptions
impl Debug for IconStyleOptions
Source§impl Default for IconStyleOptions
impl Default for IconStyleOptions
Source§fn default() -> IconStyleOptions
fn default() -> IconStyleOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for IconStyleOptions
impl PartialEq for IconStyleOptions
impl StructuralPartialEq for IconStyleOptions
Auto Trait Implementations§
impl Freeze for IconStyleOptions
impl RefUnwindSafe for IconStyleOptions
impl Send for IconStyleOptions
impl Sync for IconStyleOptions
impl Unpin for IconStyleOptions
impl UnwindSafe for IconStyleOptions
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