RED-5219: update load all annotations icon

This commit is contained in:
Dan Percic 2022-12-16 12:27:18 +02:00
parent c2d3834ad7
commit ba84afc3df
3 changed files with 21 additions and 4 deletions

View File

@ -93,7 +93,7 @@ export class ViewerHeaderService {
return {
type: 'actionButton',
title: this._translateService.instant('viewer-header.load-all-annotations'),
img: this._convertPath('/assets/icons/general/pdftron-action-disable-tooltips.svg'),
img: this._convertPath('/assets/icons/general/pdftron-action-load-all-annotations.svg'),
onClick: () => this.#events$.next({ type: ViewerEvents.LOAD_ALL_ANNOTATIONS }),
dataElement: HeaderElements.LOAD_ALL_ANNOTATIONS,
};
@ -235,9 +235,10 @@ export class ViewerHeaderService {
this._pdf.instance?.UI.setHeaderItems(header => {
const enabledItems: IHeaderElement[] = [];
const groups: HeaderElementType[][] = [
[HeaderElements.COMPARE_BUTTON, HeaderElements.CLOSE_COMPARE_BUTTON, HeaderElements.LOAD_ALL_ANNOTATIONS],
[HeaderElements.COMPARE_BUTTON, HeaderElements.CLOSE_COMPARE_BUTTON],
[HeaderElements.TOGGLE_TOOLTIPS, HeaderElements.TOGGLE_READABLE_REDACTIONS],
[HeaderElements.SHAPE_TOOL_GROUP_BUTTON],
[HeaderElements.LOAD_ALL_ANNOTATIONS],
[
HeaderElements.ROTATE_LEFT_BUTTON,
HeaderElements.ROTATE_RIGHT_BUTTON,
@ -256,14 +257,14 @@ export class ViewerHeaderService {
disableLoadAllAnnotations(): void {
this._pdf.instance.UI.updateElement(HeaderElements.LOAD_ALL_ANNOTATIONS, {
img: this._convertPath('/assets/icons/general/pdftron-action-enable-tooltips.svg'),
img: this._convertPath('/assets/icons/general/pdftron-action-load-all-annotations-disabled.svg'),
onClick: undefined,
});
}
enableLoadAllAnnotations(): void {
this._pdf.instance.UI.updateElement(HeaderElements.LOAD_ALL_ANNOTATIONS, {
img: this._convertPath('/assets/icons/general/pdftron-action-disable-tooltips.svg'),
img: this._convertPath('/assets/icons/general/pdftron-action-load-all-annotations.svg'),
onClick: () => this.#events$.next({ type: ViewerEvents.LOAD_ALL_ANNOTATIONS }),
});
}

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.4.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg fill="#868E96" id="Layer_1" opacity="0.3" style="enable-background:new 0 0 101 100;" version="1.1" viewBox="0 0 101 100" x="0px"
xml:space="preserve" xmlns="http://www.w3.org/2000/svg" y="0px">
<path class="st0" d="M0.5,35v30h100V35H0.5z M90.5,55h-80V45h80V55z M45.5,0h10v15h-10V0z M18.7,11.2l10.6,10.6l-7.1,7.1L11.7,18.3
L18.7,11.2z M18.7,88.9l-7.1-7.1l10.6-10.6l7.1,7.1L18.7,88.9z M45.5,85h10v15h-10V85z M82.4,89L71.8,78.4l7.1-7.1l10.6,10.6
L82.4,89z M82.3,11.1l7.1,7.1L78.8,28.8l-7.1-7.1L82.3,11.1z" />
</svg>

After

Width:  |  Height:  |  Size: 663 B

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.4.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg fill="#868E96" id="Layer_1" style="enable-background:new 0 0 101 100;" version="1.1" viewBox="0 0 101 100" x="0px"
xml:space="preserve" xmlns="http://www.w3.org/2000/svg" y="0px">
<path class="st0" d="M0.5,35v30h100V35H0.5z M90.5,55h-80V45h80V55z M45.5,0h10v15h-10V0z M18.7,11.2l10.6,10.6l-7.1,7.1L11.7,18.3
L18.7,11.2z M18.7,88.9l-7.1-7.1l10.6-10.6l7.1,7.1L18.7,88.9z M45.5,85h10v15h-10V85z M82.4,89L71.8,78.4l7.1-7.1l10.6,10.6
L82.4,89z M82.3,11.1l7.1,7.1L78.8,28.8l-7.1-7.1L82.3,11.1z" />
</svg>

After

Width:  |  Height:  |  Size: 649 B