From f427993c55ec88b69526dd7336bc66830a51927d Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Tue, 17 Sep 2024 18:08:03 +0200 Subject: [PATCH] Rename the toolbar buttons in order to free their current names which can then be used for their future parent container. This patch aims to simplify a bit the patch in #18385. --- web/viewer.css | 22 +++++++++++----------- web/viewer.html | 22 +++++++++++----------- web/viewer.js | 22 +++++++++++----------- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/web/viewer.css b/web/viewer.css index 68e777c013c505..6ed7f594f01ae1 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -778,12 +778,12 @@ body { background-color: var(--toolbar-icon-hover-bg-color); } -#sidebarToggle::before { +#sidebarToggleButton::before { mask-image: var(--toolbarButton-sidebarToggle-icon); transform: scaleX(var(--dir-factor)); } -#secondaryToolbarToggle::before { +#secondaryToolbarToggleButton::before { mask-image: var(--toolbarButton-secondaryToolbarToggle-icon); transform: scaleX(var(--dir-factor)); } @@ -796,35 +796,35 @@ body { mask-image: var(--toolbarButton-pageDown-icon); } -#zoomOut::before { +#zoomOutButton::before { mask-image: var(--toolbarButton-zoomOut-icon); } -#zoomIn::before { +#zoomInButton::before { mask-image: var(--toolbarButton-zoomIn-icon); } -#editorFreeText::before { +#editorFreeTextButton::before { mask-image: var(--toolbarButton-editorFreeText-icon); } -#editorHighlight::before { +#editorHighlightButton::before { mask-image: var(--toolbarButton-editorHighlight-icon); } -#editorInk::before { +#editorInkButton::before { mask-image: var(--toolbarButton-editorInk-icon); } -#editorStamp::before { +#editorStampButton::before { mask-image: var(--toolbarButton-editorStamp-icon); } -#print::before { +#printButton::before { mask-image: var(--toolbarButton-print-icon); } -#download::before { +#downloadButton::before { mask-image: var(--toolbarButton-download-icon); } @@ -850,7 +850,7 @@ body { transform: scaleX(var(--dir-factor)); } -#viewFind::before { +#viewFindButton::before { mask-image: var(--toolbarButton-search-icon); } diff --git a/web/viewer.html b/web/viewer.html index 9fa087ddaac85b..6567f00e48c5e7 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -340,11 +340,11 @@
-
-
@@ -363,43 +363,43 @@
- - - -
- -
-
-
-
diff --git a/web/viewer.js b/web/viewer.js index 5f93fa321c489e..ca96bebd7e5a36 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -47,31 +47,31 @@ function getViewerConfiguration() { customScaleOption: document.getElementById("customScaleOption"), previous: document.getElementById("previous"), next: document.getElementById("next"), - zoomIn: document.getElementById("zoomIn"), - zoomOut: document.getElementById("zoomOut"), - print: document.getElementById("print"), - editorFreeTextButton: document.getElementById("editorFreeText"), + zoomIn: document.getElementById("zoomInButton"), + zoomOut: document.getElementById("zoomOutButton"), + print: document.getElementById("printButton"), + editorFreeTextButton: document.getElementById("editorFreeTextButton"), editorFreeTextParamsToolbar: document.getElementById( "editorFreeTextParamsToolbar" ), - editorHighlightButton: document.getElementById("editorHighlight"), + editorHighlightButton: document.getElementById("editorHighlightButton"), editorHighlightParamsToolbar: document.getElementById( "editorHighlightParamsToolbar" ), editorHighlightColorPicker: document.getElementById( "editorHighlightColorPicker" ), - editorInkButton: document.getElementById("editorInk"), + editorInkButton: document.getElementById("editorInkButton"), editorInkParamsToolbar: document.getElementById("editorInkParamsToolbar"), - editorStampButton: document.getElementById("editorStamp"), + editorStampButton: document.getElementById("editorStampButton"), editorStampParamsToolbar: document.getElementById( "editorStampParamsToolbar" ), - download: document.getElementById("download"), + download: document.getElementById("downloadButton"), }, secondaryToolbar: { toolbar: document.getElementById("secondaryToolbar"), - toggleButton: document.getElementById("secondaryToolbarToggle"), + toggleButton: document.getElementById("secondaryToolbarToggleButton"), presentationModeButton: document.getElementById("presentationMode"), openFileButton: typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC") @@ -105,7 +105,7 @@ function getViewerConfiguration() { // Divs (and sidebar button) outerContainer: document.getElementById("outerContainer"), sidebarContainer: document.getElementById("sidebarContainer"), - toggleButton: document.getElementById("sidebarToggle"), + toggleButton: document.getElementById("sidebarToggleButton"), resizer: document.getElementById("sidebarResizer"), // Buttons thumbnailButton: document.getElementById("viewThumbnail"), @@ -122,7 +122,7 @@ function getViewerConfiguration() { }, findBar: { bar: document.getElementById("findbar"), - toggleButton: document.getElementById("viewFind"), + toggleButton: document.getElementById("viewFindButton"), findField: document.getElementById("findInput"), highlightAllCheckbox: document.getElementById("findHighlightAll"), caseSensitiveCheckbox: document.getElementById("findMatchCase"),