Skip to content

Commit

Permalink
Add default net_cellular icons
Browse files Browse the repository at this point in the history
  • Loading branch information
bim9262 committed Jul 24, 2023
1 parent 37c7d0f commit be0eac0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ impl From<&'static str> for Icon {
}
}

impl<const N: usize> From<[&str; N]> for Icon {
fn from(value: [&str; N]) -> Self {
Self::Progression(value.iter().map(|s| s.to_string()).collect())
}
}

impl Default for Icons {
fn default() -> Self {
// "none" icon set
Expand Down Expand Up @@ -53,6 +59,14 @@ impl Default for Icons {
"music_play" => ">",
"music_prev" => "<",
"net_bridge" => "BRIDGE",
"net_cellular" => [
"NO SIGNAL",
"0 BARS",
"1 BAR",
"2 BARS",
"3 BARS",
"4 BARS",
],
"net_down" => "DOWN",
"net_loopback" => "LO",
"net_modem" => "MODEM",
Expand Down

0 comments on commit be0eac0

Please sign in to comment.