pub struct IconTheme {
pub color: Option<Color>,
pub size: Option<f32>,
}Expand description
Defaults for Icon — the reference’s IconTheme, which is an
inherited widget there for the same reason this is scoped here: an app bar, a
list tile or a button bar wants every glyph inside it one colour without recolouring
the words beside them.
Themed::tweak is how a subtree sets it, and that is exactly how
AppBar::icon_theme delivers its own.
Fields§
§color: Option<Color>The glyph’s colour. Unset, the scheme’s on_surface — an icon is text’s peer,
not a decoration.
size: Option<f32>The square’s side, in logical pixels. Unset, 24: the grid the icons are drawn on.
Trait Implementations§
impl Copy for IconTheme
impl StructuralPartialEq for IconTheme
Auto Trait Implementations§
impl Freeze for IconTheme
impl RefUnwindSafe for IconTheme
impl Send for IconTheme
impl Sync for IconTheme
impl Unpin for IconTheme
impl UnsafeUnpin for IconTheme
impl UnwindSafe for IconTheme
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