pub enum Icon {
Show 28 variants
Volume {
level: f32,
muted: bool,
},
Wifi {
strength: Option<f32>,
},
Wired,
Battery {
charge: f32,
charging: bool,
},
Lock,
Info,
Back,
Forward,
Check,
Refresh,
Close,
Reveal,
Bolt,
Plug,
Mic {
muted: bool,
},
Speaker,
Headphones,
Display,
Bell {
muted: bool,
},
Brightness {
level: f32,
},
Appearance {
dark: bool,
},
KeyboardLight,
Media {
playing: bool,
},
Play,
Pause,
Previous,
Next,
Bluetooth {
connected: bool,
},
}Expand description
A status symbol. It names what to show and how full it is; the host draws it in the text’s tone, at the text’s size. Fractions are 0.0 to 1.0.
Variants§
Volume
A speaker with sound waves for the level. Above 1.0 is amplified.
Wifi
A Wi-Fi fan with as many bars as the signal. None when there’s no link.
Wired
A wired connection.
Battery
A battery filled to its charge.
Lock
A padlock: a secured network.
Info
An i in a circle: more about this.
Back
A chevron pointing left: back, or earlier.
Forward
A chevron pointing right: on, or later.
Check
A check mark: the one in use.
Refresh
A circling arrow: look again.
Close
A cross: close this.
Reveal
An eye: show what’s hidden.
Bolt
A lightning bolt: charging.
Plug
A power plug: on mains power.
Mic
A microphone, struck through when muted.
Speaker
A loudspeaker box: built-in speakers.
Headphones
Headphones, or a headset.
Display
A screen: a monitor or TV that plays sound.
Bell
A bell: notifications, struck through when they’re silenced.
Brightness
A sun whose rays light up with the level: a screen’s brightness.
Appearance
Light or dark mode: a crescent moon when dark, a ringed sun when light (not the brightness one).
KeyboardLight
A keyboard: its backlight.
Media
Three level bars, like an equalizer: media. Uneven while playing, low and level when
not.
Play
A triangle pointing right: play.
Pause
Two upright bars: pause.
Previous
A triangle pointing left against a bar: back to the previous track.
Next
A triangle pointing right against a bar: on to the next track.
Bluetooth
The Bluetooth rune, with a dot on each side while a device is connected.