audio: Use correct icons for volume levels
These seem to match Gnome. "Overamplified" is a volume above 100%, which can be set in `pavucontrol`.
This commit is contained in:
parent
fbd1489c7b
commit
fba8596759
1 changed files with 4 additions and 4 deletions
|
|
@ -87,11 +87,11 @@ impl Audio {
|
|||
let output_volume = VolumeLinear::from(volume).0;
|
||||
if volume.is_muted() {
|
||||
self.icon_name = "audio-volume-muted-symbolic".to_string();
|
||||
} else if output_volume < 0.25 {
|
||||
} else if output_volume < 0.33 {
|
||||
self.icon_name = "audio-volume-low-symbolic".to_string();
|
||||
} else if output_volume < 0.5 {
|
||||
} else if output_volume < 0.66 {
|
||||
self.icon_name = "audio-volume-medium-symbolic".to_string();
|
||||
} else if output_volume < 0.75 {
|
||||
} else if output_volume <= 1.00 {
|
||||
self.icon_name = "audio-volume-high-symbolic".to_string();
|
||||
} else {
|
||||
self.icon_name = "audio-volume-overamplified-symbolic".to_string();
|
||||
|
|
@ -111,7 +111,7 @@ impl Audio {
|
|||
|
||||
let volume = input.volume.avg();
|
||||
let input_volume = VolumeLinear::from(volume).0;
|
||||
if volume.is_muted() {
|
||||
if volume.is_muted() || input_volume == 0.0 {
|
||||
self.input_icon_name = "microphone-sensitivity-muted-symbolic".to_string();
|
||||
} else if input_volume < 0.33 {
|
||||
self.input_icon_name = "microphone-sensitivity-low-symbolic".to_string();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue