pub struct IconSizes {
pub toolbar: Option<f32>,
pub small: Option<f32>,
pub large: Option<f32>,
pub dialog: Option<f32>,
pub panel: Option<f32>,
}Expand description
Per-context icon sizes in logical pixels.
Defines the expected icon size for each visual context. All fields are optional to support partial overlays.
Fields§
§toolbar: Option<f32>Icon size for toolbar buttons (e.g., 24px).
small: Option<f32>Small icon size for inline use (e.g., 16px).
large: Option<f32>Large icon size for menus/lists (e.g., 32px).
dialog: Option<f32>Icon size for dialog buttons (e.g., 22px).
panel: Option<f32>Icon size for panel headers (e.g., 20px).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IconSizes
impl<'de> Deserialize<'de> for IconSizes
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for IconSizes
Auto Trait Implementations§
impl Freeze for IconSizes
impl RefUnwindSafe for IconSizes
impl Send for IconSizes
impl Sync for IconSizes
impl Unpin for IconSizes
impl UnsafeUnpin for IconSizes
impl UnwindSafe for IconSizes
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