diff --git a/src/main/resources/static/css/dark-mode.css b/src/main/resources/static/css/dark-mode.css index 5c35a13c..9223c798 100644 --- a/src/main/resources/static/css/dark-mode.css +++ b/src/main/resources/static/css/dark-mode.css @@ -25,7 +25,5 @@ body { background-color: #444 !important; } -.home-card-icon-colour { -filter: invert(0.2) sepia(2) saturate(50) hue-rotate(190deg); -} + diff --git a/src/main/resources/templates/fragments/card.html b/src/main/resources/templates/fragments/card.html index b56ef422..9242b862 100644 --- a/src/main/resources/templates/fragments/card.html +++ b/src/main/resources/templates/fragments/card.html @@ -1,8 +1,8 @@
- Your SVG description -
+ Icon +

diff --git a/src/main/resources/templates/fragments/navbar.html b/src/main/resources/templates/fragments/navbar.html index 10596748..fbb3574b 100644 --- a/src/main/resources/templates/fragments/navbar.html +++ b/src/main/resources/templates/fragments/navbar.html @@ -124,7 +124,7 @@ function compareVersions(version1, version2) {
- Page Operations Icon + icon @@ -139,36 +139,36 @@ function compareVersions(version1, version2) { @@ -264,22 +264,22 @@ function compareVersions(version1, version2) { @@ -289,7 +289,7 @@ function compareVersions(version1, version2) {
- +
diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html index d7605a6c..7cee9a18 100644 --- a/src/main/resources/templates/home.html +++ b/src/main/resources/templates/home.html @@ -45,7 +45,7 @@ text-decoration: underline; } .card-title.text-primary { - color: #013275; /* Replace with your desired shade of blue */ + color: #000; /* Replace with your desired shade of blue */ } .home-card-icon { @@ -53,6 +53,10 @@ height: 30px; transform: translateY(-5px); } +.home-card-icon-colour { +filter: invert(0.2) sepia(2) saturate(50) hue-rotate(190deg); +} + diff --git a/src/main/resources/templates/multi-tool.html b/src/main/resources/templates/multi-tool.html index bacb0f90..63ede894 100644 --- a/src/main/resources/templates/multi-tool.html +++ b/src/main/resources/templates/multi-tool.html @@ -285,14 +285,24 @@ pdfDoc.addPage(page); } - const pdfBytes = await pdfDoc.save() + const pdfBytes = await pdfDoc.save(); const pdfBlob = new Blob([pdfBytes], { type: 'application/pdf' }); const url = URL.createObjectURL(pdfBlob); + const downloadOption = localStorage.getItem('downloadOption'); - const downloadLink = document.createElement('a'); - downloadLink.href = url; - downloadLink.download = fileName ? fileName : 'managed.pdf'; - downloadLink.click(); // Simulate a click on the download link to start the download + if (downloadOption === 'sameWindow') { + // Open the file in the same window + window.location.href = url; + } else if (downloadOption === 'newWindow') { + // Open the file in a new window + window.open(url, '_blank'); + } else { + // Download the file + const downloadLink = document.createElement('a'); + downloadLink.href = url; + downloadLink.download = fileName ? fileName : 'managed.pdf'; + downloadLink.click(); + } } async function loadFile(file) {