pub struct IconButtonStyle {
pub size: Vec2,
pub icon_size: Vec2,
pub corner_radius: u8,
pub bg_color: Color32,
pub hover_color: Color32,
pub selected_color: Color32,
pub icon_tint: Option<Color32>,
pub selected_icon_tint: Option<Color32>,
pub solid_selected: bool,
}Expand description
Style configuration for icon buttons.
Fields§
§size: Vec2Button size
icon_size: Vec2Icon size (should be smaller than button size)
corner_radius: u8Corner radius
bg_color: Color32Background color when not selected
hover_color: Color32Background color when hovered
selected_color: Color32Background color when selected/active
icon_tint: Option<Color32>Icon tint when not selected (None = no tint)
selected_icon_tint: Option<Color32>Icon tint when selected
solid_selected: boolWhether to use solid fill style (like toolbar tools)
Implementations§
Trait Implementations§
Source§impl Clone for IconButtonStyle
impl Clone for IconButtonStyle
Source§fn clone(&self) -> IconButtonStyle
fn clone(&self) -> IconButtonStyle
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 moreAuto Trait Implementations§
impl Freeze for IconButtonStyle
impl RefUnwindSafe for IconButtonStyle
impl Send for IconButtonStyle
impl Sync for IconButtonStyle
impl Unpin for IconButtonStyle
impl UnwindSafe for IconButtonStyle
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