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

Commit 03a8308

Browse files
committed
Fix call type icon
Signed-off-by: Šimon Brandner <[email protected]>
1 parent a8d2774 commit 03a8308

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

res/css/views/voip/_CallView.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ limitations under the License.
279279
max-width: 240px;
280280
}
281281

282-
.mx_CallView_header_phoneIcon {
282+
.mx_CallView_header_callTypeIcon {
283283
display: inline-block;
284284
margin-right: 6px;
285285
height: 16px;
@@ -293,12 +293,19 @@ limitations under the License.
293293

294294
height: 16px;
295295
width: 16px;
296-
background-color: $warning-color;
296+
background-color: $secondary-fg-color;
297297
mask-repeat: no-repeat;
298298
mask-size: contain;
299299
mask-position: center;
300+
}
301+
302+
&.mx_CallView_header_callTypeIcon_voice::before {
300303
mask-image: url('$(res)/img/element-icons/call/voice-call.svg');
301304
}
305+
306+
&.mx_CallView_header_callTypeIcon_video::before {
307+
mask-image: url('$(res)/img/element-icons/call/video-call.svg');
308+
}
302309
}
303310

304311
.mx_CallView_callControls {

src/components/views/voip/CallView.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,10 +822,15 @@ export default class CallView extends React.Component<IProps, IState> {
822822
{ expandButton }
823823
</div>;
824824

825+
const callTypeIconClassName = classNames("mx_CallView_header_callTypeIcon", {
826+
"mx_CallView_header_callTypeIcon_voice": !isVideoCall,
827+
"mx_CallView_header_callTypeIcon_video": isVideoCall,
828+
});
829+
825830
let header: React.ReactNode;
826831
if (!this.props.pipMode) {
827832
header = <div className="mx_CallView_header">
828-
<div className="mx_CallView_header_phoneIcon" />
833+
<div className={callTypeIconClassName} />
829834
<span className="mx_CallView_header_callType">{ callTypeText }</span>
830835
{ headerControls }
831836
</div>;

0 commit comments

Comments
 (0)