Skip to content

Commit 4a1c76d

Browse files
committed
4 speaker symbols for muted, silent, medium, loud
1 parent 96fa2b6 commit 4a1c76d

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

client/common/VolumeControl.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from 'react';
22
import {useAudioSettings} from '../common/Storage';
33
import DropDownMenu from '../common/DropDownMenu';
4-
import SpeakerLoudIcon from '../icons/speaker-loud.svg';
5-
import SpeakerSilentIcon from '../icons/speaker-silent.svg';
64
import SpeakerMutedicon from '../icons/speaker-muted.svg';
5+
import SpeakerSilentIcon from '../icons/speaker-silent.svg';
6+
import SpeakerMediumIcon from '../icons/speaker-medium.svg';
7+
import SpeakerLoudIcon from '../icons/speaker-loud.svg';
78

89

910
export function renderSpeakerIcon(volume) {
@@ -13,6 +14,9 @@ export function renderSpeakerIcon(volume) {
1314
if (volume < 0.33) {
1415
return <SpeakerSilentIcon/>;
1516
}
17+
if (volume < 0.66) {
18+
return <SpeakerMediumIcon/>;
19+
}
1620
return <SpeakerLoudIcon/>;
1721
}
1822

client/icons/speaker-loud.svg

Lines changed: 4 additions & 1 deletion
Loading

client/icons/speaker-medium.svg

Lines changed: 5 additions & 0 deletions
Loading

client/icons/speaker-muted.svg

Lines changed: 1 addition & 1 deletion
Loading

client/icons/speaker-silent.svg

Lines changed: 2 additions & 1 deletion
Loading

0 commit comments

Comments
 (0)