Skip to content
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b252caf
Switch to rendering svg icons rather than masking them in left panel
t3chguy Dec 11, 2025
246735e
Remove unused stylesheet
t3chguy Dec 11, 2025
0070ca0
Switch to rendering svg icons rather than masking them for ExternalLink
t3chguy Dec 11, 2025
1c06169
Switch to rendering svg icons rather than masking them for TabbedView
t3chguy Dec 11, 2025
8577c9a
Switch to rendering svg icons rather than masking them for JoinRuleDr…
t3chguy Dec 11, 2025
63cb46d
Switch to rendering svg icons rather than masking them in ManageRestr…
t3chguy Dec 11, 2025
e2bf594
Switch to rendering svg icons rather than masking them in LeaveSpaceD…
t3chguy Dec 11, 2025
9737a52
Switch to rendering svg icons rather than masking them in ReplyPreview
t3chguy Dec 11, 2025
62eebe7
Switch to rendering svg icons rather than masking them in SearchBox
t3chguy Dec 11, 2025
4987510
Switch to rendering svg icons rather than masking them in RoomStatusBar
t3chguy Dec 11, 2025
276f11d
Fix advanced.svg
t3chguy Dec 11, 2025
4b956a8
Update snapshots
t3chguy Dec 11, 2025
e4e7f17
Update screenshots
t3chguy Dec 11, 2025
0f9e076
Iterate
t3chguy Dec 11, 2025
f72f7ec
Merge branch 'develop' into t3chguy/svg-icons-dec11
t3chguy Dec 12, 2025
815c2c5
Fix bad merge conflict resolution
t3chguy Dec 12, 2025
3219117
Switch to rendering svg icons rather than masking them in Toasts
t3chguy Dec 12, 2025
57b47ea
Switch to rendering svg icons rather than masking them in RoomInfoLine
t3chguy Dec 12, 2025
cfd0c36
Switch to rendering svg icons rather than masking them in UploadBar
t3chguy Dec 12, 2025
5c80d5d
Remove unused class
t3chguy Dec 12, 2025
9d87cf4
Switch to rendering svg icons rather than masking them in ConfirmSpac…
t3chguy Dec 12, 2025
48d3c72
Switch to rendering svg icons rather than masking them in FeedbackDialog
t3chguy Dec 12, 2025
5636758
Switch to rendering svg icons rather than masking them in KeyBackupFa…
t3chguy Dec 12, 2025
49cf96e
Switch to rendering svg icons rather than masking them in CopyableText
t3chguy Dec 12, 2025
be8f919
Switch to rendering svg icons rather than masking them in EventTile
t3chguy Dec 12, 2025
785891d
Switch to rendering svg icons rather than masking them in InviteReason
t3chguy Dec 12, 2025
00fffe3
Delint
t3chguy Dec 12, 2025
d231eb7
Update tests
t3chguy Dec 12, 2025
02c5506
Add test
t3chguy Dec 12, 2025
2059883
Merge branch 'develop' into t3chguy/svg-icons-dec12
t3chguy Dec 15, 2025
ccf6e83
Add test
t3chguy Dec 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion playwright/e2e/right-panel/right-panel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ test.describe("RightPanel", () => {

// \d represents the number of the space members
await page
.locator(".mx_RoomInfoLine_private")
.locator(".mx_RoomInfoLine")
.getByRole("button", { name: /\d member/ })
.click();
await expect(page.locator(".mx_MemberListView")).toBeVisible();
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion res/css/_components.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@
@import "./views/rooms/_AuxPanel.pcss";
@import "./views/rooms/_BasicMessageComposer.pcss";
@import "./views/rooms/_CallGuestLinkButton.pcss";
@import "./views/rooms/_DecryptionFailureBar.pcss";
@import "./views/rooms/_E2EIcon.pcss";
@import "./views/rooms/_E2EIconView.pcss";
@import "./views/rooms/_EditMessageComposer.pcss";
Expand Down
64 changes: 13 additions & 51 deletions res/css/structures/_LeftPanel.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -114,67 +114,30 @@ Please see LICENSE files in the repository root for full details.
margin-top: 12px;
}

.mx_LeftPanel_dialPadButton {
width: 32px;
height: 32px;
.mx_LeftPanel_dialPadButton,
.mx_LeftPanel_exploreButton {
width: 20px;
height: 20px;
padding: var(--cpd-space-1-5x);
border-radius: 8px;
background-color: $panel-actions;
position: relative;
margin-left: 8px;

&::before {
content: "";
position: absolute;
top: 6px;
left: 6px;
width: 20px;
height: 20px;
mask-image: url("@vector-im/compound-design-tokens/icons/dial-pad.svg");
mask-position: center;
mask-size: contain;
mask-repeat: no-repeat;
background-color: $secondary-content;
}
}

.mx_LeftPanel_exploreButton,
.mx_LeftPanel_recentsButton {
width: 32px;
height: 32px;
border-radius: 8px;
background-color: $panel-actions;
position: relative;
margin-left: 8px;

&::before {
content: "";
position: absolute;
top: 8px;
left: 8px;
width: 16px;
height: 16px;
mask-position: center;
mask-size: contain;
mask-repeat: no-repeat;
background-color: $secondary-content;
svg {
width: inherit;
height: inherit;
display: block;
color: $secondary-content;
}

&:hover {
background-color: $tertiary-content;

&::before {
background-color: $background;
svg {
color: $background;
}
}
}

.mx_LeftPanel_exploreButton::before {
mask-image: url("@vector-im/compound-design-tokens/icons/explore.svg");
}

.mx_LeftPanel_recentsButton::before {
mask-image: url("@vector-im/compound-design-tokens/icons/time.svg");
}
}

.mx_LegacyRoomListHeader:first-child {
Expand Down Expand Up @@ -228,8 +191,7 @@ Please see LICENSE files in the repository root for full details.
background-color: transparent;
}

.mx_LeftPanel_exploreButton,
.mx_LeftPanel_recentsButton {
.mx_LeftPanel_exploreButton {
margin-left: 0;
margin-top: 8px;
}
Expand Down
27 changes: 5 additions & 22 deletions res/css/structures/_RoomStatusBar.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -99,34 +99,17 @@ Please see LICENSE files in the repository root for full details.
position: relative;
user-select: none;

&:nth-child(2) {
& + .mx_AccessibleButton {
border-left: 1px solid $resend-button-divider-color;
}

&::before {
content: "";
position: absolute;
svg {
left: 10px; /* inset for regular button padding */
background-color: $muted-fg-color;
mask-repeat: no-repeat;
mask-position: center;
mask-size: contain;

width: 18px;
height: 18px;
top: 50%; /* text sizes are dynamic */
transform: translateY(-50%);
}

&.mx_RoomStatusBar_unsentCancelAllBtn::before {
mask-image: url("@vector-im/compound-design-tokens/icons/delete.svg");
}

&.mx_RoomStatusBar_unsentRetry {
padding-left: 34px; /* 28px from above, but +6px to account for the wider icon */

&::before {
mask-image: url("@vector-im/compound-design-tokens/icons/restart.svg");
}
vertical-align: middle;
color: $muted-fg-color;
}
}

Expand Down
13 changes: 7 additions & 6 deletions res/css/structures/_SearchBox.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ Please see LICENSE files in the repository root for full details.

.mx_SearchBox_closeButton {
cursor: pointer;
mask-image: url("@vector-im/compound-design-tokens/icons/close.svg");
mask-repeat: no-repeat;
mask-position: center;
mask-size: 16px;
width: 16px;
height: 16px;
width: 16px;
padding: 9px;
background-color: var(--cpd-color-icon-secondary);

svg {
height: inherit;
width: inherit;
color: var(--cpd-color-icon-secondary);
}
}
}
34 changes: 1 addition & 33 deletions res/css/structures/_ToastContainer.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -41,42 +41,10 @@ Please see LICENSE files in the repository root for full details.
padding: var(--cpd-space-3x);

&.mx_Toast_hasIcon {
&::before,
&::after {
content: "";
svg {
width: 22px;
height: 22px;
grid-column: 1;
grid-row: 1;
mask-size: 100%;
mask-position: center;
mask-repeat: no-repeat;
background-size: 100%;
background-repeat: no-repeat;
}

&.mx_Toast_icon_verification::after {
mask-image: url("@vector-im/compound-design-tokens/icons/lock-solid.svg");
background-color: $primary-content;
}

&.mx_Toast_icon_verification_warning {
/* white infill for the hollow svg mask */
&::before {
background-color: #ffffff;
mask-image: url("@vector-im/compound-design-tokens/icons/lock-solid.svg");
mask-size: 80%;
}

&::after {
mask-image: url("@vector-im/compound-design-tokens/icons/error-solid.svg");
background-color: $e2e-warning-color;
}
}

&.mx_Toast_icon_key_storage::after {
mask-image: url("@vector-im/compound-design-tokens/icons/settings-solid.svg");
background-color: $primary-content;
}

.mx_Toast_title,
Expand Down
74 changes: 35 additions & 39 deletions res/css/structures/_UploadBar.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -7,53 +7,49 @@ Please see LICENSE files in the repository root for full details.
*/

.mx_UploadBar {
padding-left: 65px; /* line up with the shield area in the composer */
padding-top: 5px;
/* line up with the shield area in the composer */
padding: 5px 21px 0;
position: relative;

.mx_ProgressBar {
width: calc(100% - 40px); /* cheating at a right margin */
display: grid;
grid-template:
"icon filename cancel" auto
"progress progress progress" auto
/ min-content auto min-content;
gap: var(--cpd-space-1-5x);

& > svg {
grid-area: icon;
height: 18px;
width: 18px;
color: $muted-fg-color;
align-self: center;
}
}

.mx_ThreadView {
.mx_UploadBar {
padding-left: 0;
.mx_UploadBar_filename {
grid-area: filename;
color: $muted-fg-color;
position: relative;
font-size: $font-15px;
vertical-align: middle;
}
}

.mx_UploadBar_filename {
color: $muted-fg-color;
position: relative;
padding-right: 38px; /* 32px for cancel icon, 6px for padding */
padding-left: 22px; /* 18px for icon, 4px for padding */
font-size: $font-15px;
vertical-align: middle;
.mx_UploadBar_cancel {
grid-area: cancel;
height: 16px;
width: 16px;
color: $muted-fg-color;
align-self: center;
}

&::before {
content: "";
height: 18px;
width: 18px;
position: absolute;
top: 0;
left: 0;
mask-repeat: no-repeat;
mask-position: center;
background-color: $muted-fg-color;
mask-image: url("@vector-im/compound-design-tokens/icons/share.svg");
.mx_ProgressBar {
grid-area: progress;
width: 100%;
}
}

.mx_UploadBar_cancel {
position: absolute;
top: 0;
right: 0;
height: 16px;
width: 16px;
margin-right: 16px; /* align over rightmost button in composer */
margin-top: 5px;
mask-repeat: no-repeat;
mask-position: center;
background-color: $muted-fg-color;
mask-image: url("@vector-im/compound-design-tokens/icons/close.svg");
.mx_ThreadView {
.mx_UploadBar {
padding-left: 0;
}
}
4 changes: 0 additions & 4 deletions res/css/structures/_UserMenu.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,4 @@ Please see LICENSE files in the repository root for full details.
.mx_IconizedContextMenu_icon svg {
color: $icon-button-color;
}

.mx_UserMenu_iconMessage::before {
mask-image: url("$(res)/img/element-icons/feedback.svg");
}
}
17 changes: 5 additions & 12 deletions res/css/views/dialogs/_ConfirmSpaceUserActionDialog.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,20 @@ Please see LICENSE files in the repository root for full details.
}

.mx_ConfirmSpaceUserActionDialog_warning {
position: relative;
border-radius: 8px;
padding: 12px 8px 12px 42px;
padding: 12px 8px;
background-color: $header-panel-bg-color;

font-size: $font-12px;
line-height: $font-15px;
color: $secondary-content;

&::before {
content: "";
position: absolute;
left: 10px;
top: calc(50% - 8px); /* vertical centering */
svg {
height: 16px;
width: 16px;
background-color: $secondary-content;
mask-repeat: no-repeat;
mask-size: contain;
mask-image: url("@vector-im/compound-design-tokens/icons/info-solid.svg");
mask-position: center;
vertical-align: -4px;
margin-right: var(--cpd-space-1-5x);
color: $secondary-content;
}
}
}
30 changes: 5 additions & 25 deletions res/css/views/dialogs/_FeedbackDialog.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -55,33 +55,17 @@ Please see LICENSE files in the repository root for full details.
text-decoration: underline;
}

&::before,
&::after {
content: "";
& > svg {
position: absolute;
width: 40px;
height: 40px;
left: 16px;
top: 12px;
}

&::before {
padding: var(--cpd-space-2x);
width: 24px;
height: 24px;
background-color: $icon-button-color;
color: $avatar-initial-color;
border-radius: 8px;
}

&::after {
background: $avatar-initial-color; /* TODO */
mask-position: center;
mask-size: 24px;
mask-repeat: no-repeat;
}
}

.mx_FeedbackDialog_reportBug {
&::after {
mask-image: url("$(res)/img/feather-customised/bug.svg");
}
}

.mx_FeedbackDialog_rateApp {
Expand Down Expand Up @@ -125,9 +109,5 @@ Please see LICENSE files in the repository root for full details.
font-size: 24px;
border-color: var(--cpd-color-bg-action-primary-rest);
}

&::after {
mask-image: url("$(res)/img/element-icons/feedback.svg");
}
}
}
Loading
Loading