From 5ed2dfbf26d626174281fede8b5c9c97bf22c4bc Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Mon, 25 Aug 2025 16:35:58 +0200 Subject: [PATCH] [Editor] Change the icon for inline comments --- web/annotation_editor_layer_builder.css | 5 ++--- web/annotation_layer_builder.css | 1 - web/comment_manager.css | 2 +- web/images/comment-editButton.svg | 11 ++++++++--- web/images/comment-inline-editButton.svg | 3 --- web/viewer.css | 1 + 6 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 web/images/comment-inline-editButton.svg diff --git a/web/annotation_editor_layer_builder.css b/web/annotation_editor_layer_builder.css index ce13d8022..209a35d0c 100644 --- a/web/annotation_editor_layer_builder.css +++ b/web/annotation_editor_layer_builder.css @@ -230,7 +230,6 @@ --editor-toolbar-delete-image: url(images/editor-toolbar-delete.svg); --editor-toolbar-bg-color: light-dark(#f0f0f4, #2b2a33); --editor-toolbar-highlight-image: url(images/toolbarButton-editorHighlight.svg); - --editor-toolbar-comment-edit-image: url(images/comment-editButton.svg); --editor-toolbar-fg-color: light-dark(#2e2e56, #fbfbfe); --editor-toolbar-border-color: #8f8f9d; --editor-toolbar-hover-border-color: var(--editor-toolbar-border-color); @@ -343,7 +342,7 @@ } &.commentButton::before { - mask-image: var(--editor-toolbar-comment-edit-image); + mask-image: var(--comment-edit-button-icon); } &.deleteButton::before { @@ -489,7 +488,7 @@ &::before { content: ""; - mask-image: var(--editor-toolbar-comment-edit-image); + mask-image: var(--comment-edit-button-icon); mask-repeat: no-repeat; mask-position: center; display: inline-block; diff --git a/web/annotation_layer_builder.css b/web/annotation_layer_builder.css index 95c33f4a2..c1c2a8d54 100644 --- a/web/annotation_layer_builder.css +++ b/web/annotation_layer_builder.css @@ -17,7 +17,6 @@ color-scheme: only light; --annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,"); - --comment-edit-image: url(images/comment-inline-editButton.svg); --input-focus-border-color: Highlight; --input-focus-outline: 1px solid Canvas; --input-unfocused-border-color: transparent; diff --git a/web/comment_manager.css b/web/comment_manager.css index 698ae494c..87410afe8 100644 --- a/web/comment_manager.css +++ b/web/comment_manager.css @@ -310,7 +310,7 @@ height: 100%; mask-repeat: no-repeat; mask-size: cover; - mask-image: var(--comment-edit-image); + mask-image: var(--comment-edit-button-icon); background-color: var(--comment-button-fg); margin: 0; padding: 0; diff --git a/web/images/comment-editButton.svg b/web/images/comment-editButton.svg index fdd8f6d4e..9b32158e4 100644 --- a/web/images/comment-editButton.svg +++ b/web/images/comment-editButton.svg @@ -1,3 +1,8 @@ - - - + + + + + + + + \ No newline at end of file diff --git a/web/images/comment-inline-editButton.svg b/web/images/comment-inline-editButton.svg deleted file mode 100644 index f33e29151..000000000 --- a/web/images/comment-inline-editButton.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/web/viewer.css b/web/viewer.css index daf980b78..ec44fa98d 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -144,6 +144,7 @@ ); --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg); --editorParams-stampAddImage-icon: url(images/toolbarButton-zoomIn.svg); + --comment-edit-button-icon: url(images/comment-editButton.svg); } :root:dir(rtl) {