Icon builder
A glyph from the bundled catalog.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::display::Icon;
Construct
new(glyph: Glyph) -> Self
named(ident: impl Into<Ident>, glyph: Glyph, name: impl Into<SharedString>) -> SelfOptions
Chain onto the value.
spinning(ident: impl Into<Ident>) -> Self
breathing(ident: impl Into<Ident>) -> Self
tone(tone: IconTone) -> Self
muted() -> Self
faint() -> Self
on_accent() -> Self
accent() -> Self
danger() -> Self
warning() -> Self
success() -> Self
info() -> Self
follow_direction(follow: bool) -> SelfQueries
Only answer; they change nothing.
resolved_size(theme: &Theme) -> f32
resolved_color(theme: &Theme) -> Hsla
flips_in(direction: LayoutDirection) -> boolRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.