Skip to content

Commit f46869e

Browse files
authored
Replace batch of legacy icons with compound design tokens (#31360)
* Replace element-icons/call/dialpad.svg with compound Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Replace element-icons/call/hangup.svg with compound Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Replace element-icons/call/video-call.svg with compound Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Replace element-icons/call/voice-call.svg with compound Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Replace element-icons/cloud-off.svg with compound Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Replace element-icons/eye.svg with compound Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove debug Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 0c293bb commit f46869e

31 files changed

Lines changed: 32 additions & 53 deletions
-102 Bytes
Loading
41 Bytes
Loading
39 Bytes
Loading
-123 Bytes
Loading
-662 Bytes
Loading

res/css/structures/_LeftPanel.pcss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ Please see LICENSE files in the repository root for full details.
125125
&::before {
126126
content: "";
127127
position: absolute;
128-
top: 8px;
129-
left: 8px;
130-
width: 16px;
131-
height: 16px;
132-
mask-image: url("$(res)/img/element-icons/call/dialpad.svg");
128+
top: 6px;
129+
left: 6px;
130+
width: 20px;
131+
height: 20px;
132+
mask-image: url("@vector-im/compound-design-tokens/icons/dial-pad.svg");
133133
mask-position: center;
134134
mask-size: contain;
135135
mask-repeat: no-repeat;

res/css/views/dialogs/_RoomSettingsDialog.pcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Please see LICENSE files in the repository root for full details.
1313
}
1414

1515
.mx_RoomSettingsDialog_voiceIcon::before {
16-
mask-image: url("$(res)/img/element-icons/call/voice-call.svg");
16+
mask-image: url("@vector-im/compound-design-tokens/icons/voice-call-solid.svg");
1717
}
1818

1919
.mx_RoomSettingsDialog_securityIcon::before {

res/css/views/dialogs/_SpaceSettingsDialog.pcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Please see LICENSE files in the repository root for full details.
7878
}
7979

8080
.mx_SpaceSettingsDialog_visibilityIcon::before {
81-
mask-image: url("$(res)/img/element-icons/eye.svg");
81+
mask-image: url("@vector-im/compound-design-tokens/icons/visibility-on.svg");
8282
}
8383
}
8484
}

res/css/views/elements/_InviteReason.pcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Please see LICENSE files in the repository root for full details.
2727
content: "";
2828
margin-right: 8px;
2929
background-color: $secondary-content;
30-
mask-image: url("$(res)/img/element-icons/eye.svg");
30+
mask-image: url("@vector-im/compound-design-tokens/icons/visibility-on.svg");
3131
display: inline-block;
3232
width: 18px;
3333
height: 14px;

res/css/views/messages/_CallEvent.pcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Please see LICENSE files in the repository root for full details.
5151
vertical-align: middle;
5252
content: "";
5353
background-color: $secondary-content;
54-
mask-image: url("$(res)/img/element-icons/call/video-call.svg");
54+
mask-image: url("@vector-im/compound-design-tokens/icons/video-call-solid.svg");
5555
mask-size: 16px;
5656
width: 16px;
5757
height: 16px;

0 commit comments

Comments
 (0)