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

Commit

Permalink
Replace composer icons with Compound variants (#123)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy authored Oct 4, 2024
1 parent 7ef8663 commit 26b0e83
Show file tree
Hide file tree
Showing 28 changed files with 146 additions and 155 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions res/css/views/context_menus/_MessageContextMenu.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ Please see LICENSE files in the repository root for full details.
}

.mx_MessageContextMenu_iconSource::before {
mask-image: url("$(res)/img/element-icons/room/format-bar/code.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/inline-code.svg");
}

.mx_MessageContextMenu_iconQuote::before {
mask-image: url("$(res)/img/element-icons/room/format-bar/quote.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/quote.svg");
}

.mx_MessageContextMenu_iconPin::before {
Expand Down
4 changes: 2 additions & 2 deletions res/css/views/rooms/_MessageComposer.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ Please see LICENSE files in the repository root for full details.
}

.mx_MessageComposer_rich_text::before {
mask-image: url("$(res)/img/element-icons/room/composer/rich_text.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/text-formatting.svg");
}

.mx_MessageComposer_location::before {
mask-image: url("$(res)/img/element-icons/room/composer/location.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/location-pin-solid.svg");
}

.mx_MessageComposer_stickers::before {
Expand Down
14 changes: 7 additions & 7 deletions res/css/views/rooms/_MessageComposerFormatBar.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Please see LICENSE files in the repository root for full details.
width: 100%;
mask-repeat: no-repeat;
mask-position: center;
mask-size: 20px;
background-color: var(--cpd-color-icon-secondary);
}

Expand All @@ -63,28 +64,27 @@ Please see LICENSE files in the repository root for full details.
}

.mx_MessageComposerFormatBar_buttonIconBold::after {
mask-image: url("$(res)/img/element-icons/room/format-bar/bold.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/bold.svg");
}

.mx_MessageComposerFormatBar_buttonIconItalic::after {
mask-image: url("$(res)/img/element-icons/room/format-bar/italic.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/italic.svg");
}

.mx_MessageComposerFormatBar_buttonIconStrikethrough::after {
mask-image: url("$(res)/img/element-icons/room/format-bar/strikethrough.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/strikethrough.svg");
}

.mx_MessageComposerFormatBar_buttonIconQuote::after {
mask-image: url("$(res)/img/element-icons/room/format-bar/quote.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/quote.svg");
}

.mx_MessageComposerFormatBar_buttonIconCode::after {
mask-image: url("$(res)/img/element-icons/room/format-bar/code.svg");
mask-image: url("@vector-im/compound-design-tokens/icons/inline-code.svg");
}

.mx_MessageComposerFormatBar_buttonIconInsertLink::after {
mask-image: url("$(res)/img/element-icons/link.svg");
mask-size: 18px;
mask-image: url("@vector-im/compound-design-tokens/icons/link.svg");
}
}

Expand Down
3 changes: 0 additions & 3 deletions res/img/element-icons/room/composer/bold.svg

This file was deleted.

10 changes: 0 additions & 10 deletions res/img/element-icons/room/composer/bulleted_list.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/element-icons/room/composer/code_block.svg

This file was deleted.

10 changes: 0 additions & 10 deletions res/img/element-icons/room/composer/indent_decrease.svg

This file was deleted.

10 changes: 0 additions & 10 deletions res/img/element-icons/room/composer/indent_increase.svg

This file was deleted.

5 changes: 0 additions & 5 deletions res/img/element-icons/room/composer/inline_code.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/element-icons/room/composer/italic.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/element-icons/room/composer/link.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/element-icons/room/composer/location.svg

This file was deleted.

10 changes: 0 additions & 10 deletions res/img/element-icons/room/composer/numbered_list.svg

This file was deleted.

6 changes: 0 additions & 6 deletions res/img/element-icons/room/composer/quote.svg

This file was deleted.

10 changes: 0 additions & 10 deletions res/img/element-icons/room/composer/rich_text.svg

This file was deleted.

4 changes: 0 additions & 4 deletions res/img/element-icons/room/composer/strikethrough.svg

This file was deleted.

3 changes: 0 additions & 3 deletions res/img/element-icons/room/composer/underline.svg

This file was deleted.

5 changes: 0 additions & 5 deletions res/img/element-icons/room/format-bar/bold.svg

This file was deleted.

5 changes: 0 additions & 5 deletions res/img/element-icons/room/format-bar/code.svg

This file was deleted.

5 changes: 0 additions & 5 deletions res/img/element-icons/room/format-bar/italic.svg

This file was deleted.

6 changes: 0 additions & 6 deletions res/img/element-icons/room/format-bar/quote.svg

This file was deleted.

Loading

0 comments on commit 26b0e83

Please sign in to comment.