material::
action::
home::
regular() -> &'static str (SVG)
outlined() -> &'static str
round() -> &'static str
sharp() -> &'static str
two_tone() -> &'static str
delete::
regular()
outlined()
...
navigation::
close::
regular()
...
expand_more::
regular()
...
alert::
error::
regular()
...
...
Variant function | Source directory |
|---|---|
regular() | materialicons/ |
outlined() | materialiconsoutlined/ |
round() | materialiconsround/ |
sharp() | materialiconssharp/ |
two_tone() | materialiconstwotone/ |
use fission_icons::material;
use fission_widgets::Icon;
// Get the SVG string for the "close" icon
let svg: &str = material::navigation::close::regular();
// Use with the Icon widget
let icon = Icon::svg(material::action::home::regular())
.size(24.0)
.color(theme.tokens.colors.on_surface)
.into();
// Outlined variant
let icon = Icon::svg(material::action::delete::outlined())
.size(20.0)
.into();
#[cfg(feature = "reflection")]
let icons = fission_icons::material::all_icons();
for (category, name, variant, get_svg) in &icons {
println!("{}/{}/{}", category, name, variant);
let _svg: &str = get_svg();
}
Environment variable | Purpose |
|---|---|
FISSION_MATERIAL_ICONS_DIR | Override path to the icon source directory. |
material::
action::
home::
regular() -> &'static str (SVG)
outlined() -> &'static str
round() -> &'static str
sharp() -> &'static str
two_tone() -> &'static str
delete::
regular()
outlined()
...
navigation::
close::
regular()
...
expand_more::
regular()
...
alert::
error::
regular()
...
...
Variant function | Source directory |
|---|---|
regular() | materialicons/ |
outlined() | materialiconsoutlined/ |
round() | materialiconsround/ |
sharp() | materialiconssharp/ |
two_tone() | materialiconstwotone/ |
use fission_icons::material;
use fission_widgets::Icon;
// Get the SVG string for the "close" icon
let svg: &str = material::navigation::close::regular();
// Use with the Icon widget
let icon = Icon::svg(material::action::home::regular())
.size(24.0)
.color(theme.tokens.colors.on_surface)
.into();
// Outlined variant
let icon = Icon::svg(material::action::delete::outlined())
.size(20.0)
.into();
#[cfg(feature = "reflection")]
let icons = fission_icons::material::all_icons();
for (category, name, variant, get_svg) in &icons {
println!("{}/{}/{}", category, name, variant);
let _svg: &str = get_svg();
}
Environment variable | Purpose |
|---|---|
FISSION_MATERIAL_ICONS_DIR | Override path to the icon source directory. |