Replace legacy icons with compound (#31424)

* Replace legacy dialpad.svg icon with compound

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Replace legacy silence.svg icon with compound

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Replace legacy tab-userdirectory.svg icon with compound

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Replace legacy e2e icons with compound

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Remove old mask

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update jest snapshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update screenshots

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2025-12-08 09:27:50 +00:00
committed by GitHub
parent b3e8bc8fea
commit e97de7d2ea
42 changed files with 353 additions and 138 deletions

View File

@@ -224,11 +224,11 @@ Please see LICENSE files in the repository root for full details.
}
.mx_InviteDialog_userDirectoryIcon::before {
mask-image: url("$(res)/img/voip/tab-userdirectory.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/user-profile-solid.svg");
}
.mx_InviteDialog_dialPadIcon::before {
mask-image: url("$(res)/img/voip/tab-dialpad.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/dial-pad.svg");
}
.mx_InviteDialog_tile {

View File

@@ -15,7 +15,7 @@ Please see LICENSE files in the repository root for full details.
padding-bottom: 10px;
&::before {
mask: url("$(res)/img/e2e/lock-warning-filled.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/error.svg");
mask-repeat: no-repeat;
background-color: $primary-content;
content: "";

View File

@@ -43,11 +43,11 @@ Please see LICENSE files in the repository root for full details.
}
.mx_LegacyCallEvent_silence::before {
mask-image: url("$(res)/img/voip/silence.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/volume-on-solid.svg");
}
.mx_LegacyCallEvent_unSilence::before {
mask-image: url("$(res)/img/voip/un-silence.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/volume-off-solid.svg");
}
&.mx_LegacyCallEvent_voice {

View File

@@ -12,24 +12,24 @@ Please see LICENSE files in the repository root for full details.
/* white infill for the transparency */
&.mx_cryptoEvent_icon::before {
background-color: #ffffff;
mask-image: url("$(res)/img/e2e/normal.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/lock-solid.svg");
mask-repeat: no-repeat;
mask-position: center;
mask-size: 80%;
}
&.mx_cryptoEvent_icon::after {
mask-image: url("$(res)/img/e2e/normal.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/lock-solid.svg");
background-color: $header-panel-text-primary-color;
}
&.mx_cryptoEvent_icon_verified::after {
mask-image: url("$(res)/img/e2e/verified.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/shield.svg");
background-color: $accent;
}
&.mx_cryptoEvent_icon_warning::after {
mask-image: url("$(res)/img/e2e/warning.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/error-solid.svg");
background-color: $e2e-warning-color;
}

View File

@@ -54,7 +54,7 @@ Please see LICENSE files in the repository root for full details.
.mx_DecryptionFailureBar_start_status_icon {
min-width: var(--size-icon);
height: var(--size-icon);
mask-image: url("$(res)/img/e2e/decryption-failure.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/error-solid.svg");
background-color: $e2e-warning-color;
mask-repeat: no-repeat;
mask-position: center;

View File

@@ -34,7 +34,7 @@ Please see LICENSE files in the repository root for full details.
/* transparent-looking border surrounding the shield for when overlain over avatars */
.mx_E2EIcon_bordered {
mask-image: url("$(res)/img/e2e/normal.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/lock-solid.svg");
background-color: $header-panel-bg-color;
mask-size: 100%;
@@ -50,12 +50,12 @@ Please see LICENSE files in the repository root for full details.
}
.mx_E2EIcon_warning::after {
mask-image: url("$(res)/img/e2e/warning.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/error-solid.svg");
background-color: $e2e-warning-color;
}
.mx_E2EIcon_normal::after {
mask-image: url("$(res)/img/e2e/normal.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/lock-solid.svg");
background-color: var(--cpd-color-icon-tertiary);
}
@@ -67,6 +67,6 @@ Please see LICENSE files in the repository root for full details.
}
.mx_E2EIcon_verified::after {
mask-image: url("$(res)/img/e2e/verified.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/shield.svg");
background-color: $e2e-verified-color;
}

View File

@@ -849,17 +849,17 @@ $left-gutter: 64px;
}
&.mx_EventTile_e2eIcon_warning::after {
mask-image: url("$(res)/img/e2e/warning.svg"); /* (!) in a shield */
mask-image: url("@vector-im/compound-design-tokens/icons/error-solid.svg");
background-color: $e2e-warning-color; /* red */
}
&.mx_EventTile_e2eIcon_normal::after {
mask-image: url("$(res)/img/e2e/normal.svg"); /* regular shield */
mask-image: url("@vector-im/compound-design-tokens/icons/lock-solid.svg");
background-color: var(--cpd-color-icon-tertiary); /* grey */
}
&.mx_EventTile_e2eIcon_decryption_failure::after {
mask-image: url("$(res)/img/e2e/decryption-failure.svg"); /* key in a circle */
mask-image: url("@vector-im/compound-design-tokens/icons/error-solid.svg");
background-color: var(--cpd-color-icon-tertiary);
}
}

View File

@@ -127,10 +127,10 @@ Please see LICENSE files in the repository root for full details.
}
.mx_IncomingLegacyCallToast_silence::before {
mask-image: url("$(res)/img/voip/silence.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/volume-on-solid.svg");
}
.mx_IncomingLegacyCallToast_unSilence::before {
mask-image: url("$(res)/img/voip/un-silence.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/volume-off-solid.svg");
}
}

View File

@@ -148,7 +148,7 @@ Please see LICENSE files in the repository root for full details.
/* Stateless buttons */
&.mx_LegacyCallViewButtons_dialpad::before {
mask-image: url("$(res)/img/voip/call-view/dialpad.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/dial-pad.svg");
}
&.mx_LegacyCallViewButtons_button_hangup {