From 0f2652c8664ec0f4018f356b9cdb3d12ac3876b1 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Thu, 13 Oct 2022 17:50:46 +0200 Subject: [PATCH] Change icon --- .../rooms/wysiwyg_composer/_FormattingButtons.pcss | 12 ++++++------ res/img/element-icons/room/composer/bold.svg | 4 ++-- res/img/element-icons/room/composer/italic.svg | 4 ++-- .../element-icons/room/composer/strike_through.svg | 4 ---- .../element-icons/room/composer/strikethrough.svg | 4 ++++ res/img/element-icons/room/composer/underline.svg | 4 ++-- .../rooms/wysiwyg_composer/FormattingButtons.tsx | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 res/img/element-icons/room/composer/strike_through.svg create mode 100644 res/img/element-icons/room/composer/strikethrough.svg diff --git a/res/css/views/rooms/wysiwyg_composer/_FormattingButtons.pcss b/res/css/views/rooms/wysiwyg_composer/_FormattingButtons.pcss index cedb2f4be0..36f84ae5f1 100644 --- a/res/css/views/rooms/wysiwyg_composer/_FormattingButtons.pcss +++ b/res/css/views/rooms/wysiwyg_composer/_FormattingButtons.pcss @@ -41,10 +41,10 @@ limitations under the License. &::before { content: ''; position: absolute; - top: 8px; - left: 8px; - height: 12px; - width: 12px; + top: 6px; + left: 6px; + height: 16px; + width: 16px; background-color: $icon-button-color; mask-repeat: no-repeat; mask-size: contain; @@ -95,8 +95,8 @@ limitations under the License. mask-image: url('$(res)/img/element-icons/room/composer/underline.svg'); } - .mx_FormattingButtons_Button_strike-through::before { - mask-image: url('$(res)/img/element-icons/room/composer/strike_through.svg'); + .mx_FormattingButtons_Button_strikethrough::before { + mask-image: url('$(res)/img/element-icons/room/composer/strikethrough.svg'); } } diff --git a/res/img/element-icons/room/composer/bold.svg b/res/img/element-icons/room/composer/bold.svg index fa92101e51..4a5cb184cf 100644 --- a/res/img/element-icons/room/composer/bold.svg +++ b/res/img/element-icons/room/composer/bold.svg @@ -1,3 +1,3 @@ - - + + diff --git a/res/img/element-icons/room/composer/italic.svg b/res/img/element-icons/room/composer/italic.svg index 5f162344f0..2299fc1fa2 100644 --- a/res/img/element-icons/room/composer/italic.svg +++ b/res/img/element-icons/room/composer/italic.svg @@ -1,3 +1,3 @@ - - + + diff --git a/res/img/element-icons/room/composer/strike_through.svg b/res/img/element-icons/room/composer/strike_through.svg deleted file mode 100644 index 5d1119bd9b..0000000000 --- a/res/img/element-icons/room/composer/strike_through.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/res/img/element-icons/room/composer/strikethrough.svg b/res/img/element-icons/room/composer/strikethrough.svg new file mode 100644 index 0000000000..0ed63b2139 --- /dev/null +++ b/res/img/element-icons/room/composer/strikethrough.svg @@ -0,0 +1,4 @@ + + + + diff --git a/res/img/element-icons/room/composer/underline.svg b/res/img/element-icons/room/composer/underline.svg index f9f8dc7fc1..b74e562ec8 100644 --- a/res/img/element-icons/room/composer/underline.svg +++ b/res/img/element-icons/room/composer/underline.svg @@ -1,3 +1,3 @@ - - + + diff --git a/src/components/views/rooms/wysiwyg_composer/FormattingButtons.tsx b/src/components/views/rooms/wysiwyg_composer/FormattingButtons.tsx index b82fce5201..9106fd3f62 100644 --- a/src/components/views/rooms/wysiwyg_composer/FormattingButtons.tsx +++ b/src/components/views/rooms/wysiwyg_composer/FormattingButtons.tsx @@ -64,6 +64,6 @@ export function FormattingButtons({ wysiwyg, formattingStates }: FormattingButto