@bobfrankston/rmfmail 1.1.193 → 1.1.195
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/app.bundle.js +14 -1
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +24 -4
- package/client/app.js.map +1 -1
- package/client/app.ts +23 -4
- package/package.json +3 -3
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +13 -1
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +13 -1
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-52192 → node_modules.npmglobalize-stash-43840}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -6951,7 +6951,20 @@ function updateBadge(count) {
|
|
|
6951
6951
|
const hostApi = window.mailxapi;
|
|
6952
6952
|
if (hostApi?.setTaskbarOverlay) {
|
|
6953
6953
|
if (count > 0) {
|
|
6954
|
-
const
|
|
6954
|
+
const bc = document.createElement("canvas");
|
|
6955
|
+
bc.width = 32;
|
|
6956
|
+
bc.height = 32;
|
|
6957
|
+
const bx = bc.getContext("2d");
|
|
6958
|
+
bx.fillStyle = "#e33";
|
|
6959
|
+
bx.beginPath();
|
|
6960
|
+
bx.arc(16, 16, 15, 0, Math.PI * 2);
|
|
6961
|
+
bx.fill();
|
|
6962
|
+
bx.fillStyle = "#fff";
|
|
6963
|
+
bx.font = "bold 20px sans-serif";
|
|
6964
|
+
bx.textAlign = "center";
|
|
6965
|
+
bx.textBaseline = "middle";
|
|
6966
|
+
bx.fillText(count > 99 ? "99+" : String(count), 16, 17);
|
|
6967
|
+
const b64 = bc.toDataURL("image/png").split(",")[1] || "";
|
|
6955
6968
|
hostApi.setTaskbarOverlay(b64, `${count} unread`);
|
|
6956
6969
|
} else {
|
|
6957
6970
|
hostApi.setTaskbarOverlay("", "");
|