Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Use compound Mic icons everywhere (#9849)
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 authored Jan 2, 2023
1 parent 0f7a2ce commit ecb3e7a
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 29 deletions.
2 changes: 1 addition & 1 deletion res/css/views/rooms/_MessageComposer.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ limitations under the License.
}

.mx_MessageComposer_voiceMessage::before {
mask-image: url("$(res)/img/voip/mic-on-mask.svg");
mask-image: url("$(res)/img/element-icons/mic.svg");
}

.mx_MessageComposer_voiceBroadcast::before {
Expand Down
8 changes: 6 additions & 2 deletions res/css/views/voip/LegacyCallView/_LegacyCallViewButtons.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ limitations under the License.
}

&.mx_LegacyCallViewButtons_button_mic::before {
mask-image: url("$(res)/img/voip/call-view/mic-on.svg");
height: 20px;
mask-image: url("$(res)/img/element-icons/mic.svg");
width: 20px;
}

&.mx_LegacyCallViewButtons_button_vid::before {
Expand Down Expand Up @@ -123,7 +125,9 @@ limitations under the License.
}

&.mx_LegacyCallViewButtons_button_mic::before {
mask-image: url("$(res)/img/voip/call-view/mic-off.svg");
height: 20px;
mask-image: url("$(res)/img/element-icons/Mic-off.svg");
width: 20px;
}

&.mx_LegacyCallViewButtons_button_vid::before {
Expand Down
6 changes: 4 additions & 2 deletions res/css/views/voip/_CallView.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ limitations under the License.
}

&.mx_CallView_deviceButton_audio::before {
mask-image: url("$(res)/img/voip/call-view/mic-on.svg");
mask-image: url("$(res)/img/element-icons/mic.svg");
mask-size: 14px;
}

&.mx_CallView_deviceButton_video::before {
Expand Down Expand Up @@ -179,7 +180,8 @@ limitations under the License.

.mx_CallView_deviceButton {
&.mx_CallView_deviceButton_audio::before {
mask-image: url("$(res)/img/voip/call-view/mic-off.svg");
mask-image: url("$(res)/img/element-icons/Mic-off.svg");
mask-size: 14px;
}

&.mx_CallView_deviceButton_video::before {
Expand Down
8 changes: 4 additions & 4 deletions res/css/views/voip/_VideoFeed.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ limitations under the License.
&::before {
position: absolute;
content: "";
width: 16px;
height: 16px;
width: 17px;
height: 17px;
mask-repeat: no-repeat;
mask-size: contain;
mask-position: center;
Expand All @@ -80,11 +80,11 @@ limitations under the License.
}

&.mx_VideoFeed_mic_muted::before {
mask-image: url("$(res)/img/voip/mic-muted.svg");
mask-image: url("$(res)/img/element-icons/Mic-off.svg");
}

&.mx_VideoFeed_mic_unmuted::before {
mask-image: url("$(res)/img/voip/mic-unmuted.svg");
mask-image: url("$(res)/img/element-icons/mic.svg");
}
}
}
5 changes: 5 additions & 0 deletions res/img/element-icons/Mic-off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
3 changes: 0 additions & 3 deletions res/img/voip/call-view/mic-off.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/voip/call-view/mic-on.svg

This file was deleted.

5 changes: 0 additions & 5 deletions res/img/voip/mic-muted.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/voip/mic-on-mask.svg

This file was deleted.

4 changes: 0 additions & 4 deletions res/img/voip/mic-unmuted.svg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import classNames from "classnames";

import { LiveBadge, VoiceBroadcastLiveness } from "../..";
import { Icon as LiveIcon } from "../../../../res/img/element-icons/live.svg";
import { Icon as MicrophoneIcon } from "../../../../res/img/voip/call-view/mic-on.svg";
import { Icon as MicrophoneIcon } from "../../../../res/img/element-icons/mic.svg";
import { Icon as TimerIcon } from "../../../../res/img/element-icons/Timer.svg";
import { _t } from "../../../languageHandler";
import RoomAvatar from "../../../components/views/avatars/RoomAvatar";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { VoiceBroadcastHeader } from "../atoms/VoiceBroadcastHeader";
import { Icon as StopIcon } from "../../../../res/img/element-icons/Stop.svg";
import { Icon as PauseIcon } from "../../../../res/img/element-icons/pause.svg";
import { Icon as RecordIcon } from "../../../../res/img/element-icons/Record.svg";
import { Icon as MicrophoneIcon } from "../../../../res/img/element-icons/Mic.svg";
import { Icon as MicrophoneIcon } from "../../../../res/img/element-icons/mic.svg";
import { _t } from "../../../languageHandler";
import { useAudioDeviceSelection } from "../../../hooks/useAudioDeviceSelection";
import { DevicesContextMenu } from "../../../components/views/audio_messages/DevicesContextMenu";
Expand Down

0 comments on commit ecb3e7a

Please sign in to comment.