Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
feat(desktop): redrawn app icons per platform; monochrome menu bar icon
Salman Qureshi09279a698105
diff --git a/apps/desktop/package-lock.json b/apps/desktop/package-lock.jsonindex d8d86cac..79300013 100644--- a/apps/desktop/package-lock.json+++ b/apps/desktop/package-lock.json@@ -39,6 +39,7 @@"zustand": "^5.0.5"},"devDependencies": {+ "@resvg/resvg-js": "^2.6.2","@tauri-apps/cli": "^2.12.4","@types/d3-force": "^3.0.10","@types/d3-hierarchy": "^3.1.7",@@ -1560,6 +1561,234 @@"integrity": "sha512-JtyZR+mqgBibTo8xea3B6ZRmzZiM/YeVBtUkas6zMuXjAlfIFIW2FgqeM9eLyvEaYX66vr6DJMK+4U6LV0KhNw==","license": "MIT"},+ "node_modules/@resvg/resvg-js": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js/-/resvg-js-2.6.2.tgz",+ "integrity": "sha512-xBaJish5OeGmniDj9cW5PRa/PtmuVU3ziqrbr5xJj901ZDN4TosrVaNZpEiLZAxdfnhAe7uQ7QFWfjPe9d9K2Q==",+ "dev": true,+ "license": "MPL-2.0",+ "engines": {+ "node": ">= 10"+ },+ "optionalDependencies": {+ "@resvg/resvg-js-android-arm-eabi": "2.6.2",+ "@resvg/resvg-js-android-arm64": "2.6.2",+ "@resvg/resvg-js-darwin-arm64": "2.6.2",+ "@resvg/resvg-js-darwin-x64": "2.6.2",+ "@resvg/resvg-js-linux-arm-gnueabihf": "2.6.2",+ "@resvg/resvg-js-linux-arm64-gnu": "2.6.2",+ "@resvg/resvg-js-linux-arm64-musl": "2.6.2",+ "@resvg/resvg-js-linux-x64-gnu": "2.6.2",+ "@resvg/resvg-js-linux-x64-musl": "2.6.2",+ "@resvg/resvg-js-win32-arm64-msvc": "2.6.2",+ "@resvg/resvg-js-win32-ia32-msvc": "2.6.2",+ "@resvg/resvg-js-win32-x64-msvc": "2.6.2"+ }+ },+ "node_modules/@resvg/resvg-js-android-arm-eabi": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-android-arm-eabi/-/resvg-js-android-arm-eabi-2.6.2.tgz",+ "integrity": "sha512-FrJibrAk6v29eabIPgcTUMPXiEz8ssrAk7TXxsiZzww9UTQ1Z5KAbFJs+Z0Ez+VZTYgnE5IQJqBcoSiMebtPHA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-android-arm64": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-android-arm64/-/resvg-js-android-arm64-2.6.2.tgz",+ "integrity": "sha512-VcOKezEhm2VqzXpcIJoITuvUS/fcjIw5NA/w3tjzWyzmvoCdd+QXIqy3FBGulWdClvp4g+IfUemigrkLThSjAQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-darwin-arm64": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-darwin-arm64/-/resvg-js-darwin-arm64-2.6.2.tgz",+ "integrity": "sha512-nmok2LnAd6nLUKI16aEB9ydMC6Lidiiq2m1nEBDR1LaaP7FGs4AJ90qDraxX+CWlVuRlvNjyYJTNv8qFjtL9+A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-darwin-x64": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-darwin-x64/-/resvg-js-darwin-x64-2.6.2.tgz",+ "integrity": "sha512-GInyZLjgWDfsVT6+SHxQVRwNzV0AuA1uqGsOAW+0th56J7Nh6bHHKXHBWzUrihxMetcFDmQMAX1tZ1fZDYSRsw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-linux-arm-gnueabihf": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-linux-arm-gnueabihf/-/resvg-js-linux-arm-gnueabihf-2.6.2.tgz",+ "integrity": "sha512-YIV3u/R9zJbpqTTNwTZM5/ocWetDKGsro0SWp70eGEM9eV2MerWyBRZnQIgzU3YBnSBQ1RcxRZvY/UxwESfZIw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-linux-arm64-gnu": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-linux-arm64-gnu/-/resvg-js-linux-arm64-gnu-2.6.2.tgz",+ "integrity": "sha512-zc2BlJSim7YR4FZDQ8OUoJg5holYzdiYMeobb9pJuGDidGL9KZUv7SbiD4E8oZogtYY42UZEap7dqkkYuA91pg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-linux-arm64-musl": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-linux-arm64-musl/-/resvg-js-linux-arm64-musl-2.6.2.tgz",+ "integrity": "sha512-3h3dLPWNgSsD4lQBJPb4f+kvdOSJHa5PjTYVsWHxLUzH4IFTJUAnmuWpw4KqyQ3NA5QCyhw4TWgxk3jRkQxEKg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-linux-x64-gnu": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-linux-x64-gnu/-/resvg-js-linux-x64-gnu-2.6.2.tgz",+ "integrity": "sha512-IVUe+ckIerA7xMZ50duAZzwf1U7khQe2E0QpUxu5MBJNao5RqC0zwV/Zm965vw6D3gGFUl7j4m+oJjubBVoftw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-linux-x64-musl": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-linux-x64-musl/-/resvg-js-linux-x64-musl-2.6.2.tgz",+ "integrity": "sha512-UOf83vqTzoYQO9SZ0fPl2ZIFtNIz/Rr/y+7X8XRX1ZnBYsQ/tTb+cj9TE+KHOdmlTFBxhYzVkP2lRByCzqi4jQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-win32-arm64-msvc": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-win32-arm64-msvc/-/resvg-js-win32-arm64-msvc-2.6.2.tgz",+ "integrity": "sha512-7C/RSgCa+7vqZ7qAbItfiaAWhyRSoD4l4BQAbVDqRRsRgY+S+hgS3in0Rxr7IorKUpGE69X48q6/nOAuTJQxeQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-win32-ia32-msvc": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-win32-ia32-msvc/-/resvg-js-win32-ia32-msvc-2.6.2.tgz",+ "integrity": "sha512-har4aPAlvjnLcil40AC77YDIk6loMawuJwFINEM7n0pZviwMkMvjb2W5ZirsNOZY4aDbo5tLx0wNMREp5Brk+w==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@resvg/resvg-js-win32-x64-msvc": {+ "version": "2.6.2",+ "resolved": "https://registry.npmjs.org/@resvg/resvg-js-win32-x64-msvc/-/resvg-js-win32-x64-msvc-2.6.2.tgz",+ "integrity": "sha512-ZXtYhtUr5SSaBrUDq7DiyjOFJqBVL/dOBN7N/qmi/pO0IgiWW/f/ue3nbvu9joWE5aAKDoIzy/CxsY0suwGosQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },"node_modules/@rolldown/pluginutils": {"version": "1.0.0-beta.27","resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex eaa3363f..e5575880 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -2,7 +2,7 @@"name": "mercury-desktop","private": true,"version": "0.1.0",- "description": "Mercury Desktop — native shell for the Mercury agent runtime",+ "description": "Mercury Desktop \u2014 native shell for the Mercury agent runtime","type": "module","scripts": {"dev": "vite",@@ -12,7 +12,7 @@"tauri": "tauri","desktop:dev": "tauri dev","desktop:build": "tauri build",- "icons": "tauri icon src-tauri/icons/source.png"+ "icons": "node scripts/icons/build.mjs"},"dependencies": {"@fontsource-variable/geist": "^5.3.0",@@ -46,6 +46,7 @@"zustand": "^5.0.5"},"devDependencies": {+ "@resvg/resvg-js": "^2.6.2","@tauri-apps/cli": "^2.12.4","@types/d3-force": "^3.0.10","@types/d3-hierarchy": "^3.1.7",diff --git a/apps/desktop/scripts/icons/build.mjs b/apps/desktop/scripts/icons/build.mjsnew file mode 100644index 00000000..794772b1--- /dev/null+++ b/apps/desktop/scripts/icons/build.mjs@@ -0,0 +1,70 @@+/**+ * Builds every app icon from the vector mark (npm run icons):+ * macOS icon.icns: Apple's grid, a drawing per size (iconutil, macOS only)+ * Windows icon.ico: 16 to 256px, small sizes drawn heavier; Store logos+ * Linux 32/64/128/256/512 PNGs (the bundle installs them into hicolor)+ * Tray macOS menu bar template (monochrome); a colour tile elsewhere+ * Masters are written as SVG next to them.+ */+import { Resvg } from "@resvg/resvg-js";+import { execFileSync } from "node:child_process";+import { mkdirSync, rmSync, writeFileSync } from "node:fs";+import { dirname, join } from "node:path";+import { fileURLToPath } from "node:url";+import { appIcon, markSVG, menuBarIcon } from "./mark.mjs";++const OUT = join(dirname(fileURLToPath(import.meta.url)), "../../src-tauri/icons");+const png = (svg, px) => new Resvg(svg, { fitTo: { mode: "width", value: px } }).render().asPng();+const square = (px) => png(appIcon({ shape: "square", px }), px);++mkdirSync(join(OUT, "tray"), { recursive: true });++// Masters.+writeFileSync(join(OUT, "mark.svg"), markSVG());+writeFileSync(join(OUT, "icon-macos.svg"), appIcon({ shape: "mac" }));+writeFileSync(join(OUT, "icon-square.svg"), appIcon({ shape: "square" }));++// Linux, the window icon, and the sizes Tauri's config lists.+for (const [name, px] of [["32x32.png", 32], ["64x64.png", 64], ["128x128.png", 128], ["[email protected]", 256], ["icon.png", 512]]) {+ writeFileSync(join(OUT, name), square(px));+}++// Windows Store / MSIX tiles.+for (const px of [30, 44, 71, 89, 107, 142, 150, 284, 310]) writeFileSync(join(OUT, `Square${px}x${px}Logo.png`), square(px));+writeFileSync(join(OUT, "StoreLogo.png"), square(50));++// Windows .ico: PNG entries, each size drawn for itself.+const icoSizes = [16, 20, 24, 32, 40, 48, 64, 96, 128, 256];+const images = icoSizes.map((px) => square(px));+const header = Buffer.alloc(6 + 16 * images.length);+header.writeUInt16LE(0, 0); header.writeUInt16LE(1, 2); header.writeUInt16LE(images.length, 4);+let offset = header.length;+images.forEach((img, i) => {+ const e = 6 + 16 * i, px = icoSizes[i];+ header.writeUInt8(px >= 256 ? 0 : px, e); header.writeUInt8(px >= 256 ? 0 : px, e + 1);+ header.writeUInt16LE(1, e + 4); header.writeUInt16LE(32, e + 6);+ header.writeUInt32LE(img.length, e + 8); header.writeUInt32LE(offset, e + 12);+ offset += img.length;+});+writeFileSync(join(OUT, "icon.ico"), Buffer.concat([header, ...images]));++// Tray: the menu bar template on macOS, a small colour tile on Windows and Linux.+const bar = menuBarIcon(36);+writeFileSync(join(OUT, "tray", "macos-template.png"), png(bar.svg, bar.w));+writeFileSync(join(OUT, "tray", "tray.png"), square(32));++// macOS .icns.+if (process.platform === "darwin") {+ const set = join(OUT, "icon.iconset");+ rmSync(set, { recursive: true, force: true });+ mkdirSync(set);+ for (const [pt, scale] of [[16, 1], [16, 2], [32, 1], [32, 2], [128, 1], [128, 2], [256, 1], [256, 2], [512, 1], [512, 2]]) {+ const px = pt * scale;+ writeFileSync(join(set, `icon_${pt}x${pt}${scale === 2 ? "@2x" : ""}.png`), png(appIcon({ shape: "mac", px }), px));+ }+ execFileSync("iconutil", ["-c", "icns", set, "-o", join(OUT, "icon.icns")]);+ rmSync(set, { recursive: true, force: true });+} else {+ console.warn("icon.icns needs macOS (iconutil); left as is.");+}+console.log(`Icons written to ${OUT}`);diff --git a/apps/desktop/scripts/icons/mark.mjs b/apps/desktop/scripts/icons/mark.mjsnew file mode 100644index 00000000..e0063254--- /dev/null+++ b/apps/desktop/scripts/icons/mark.mjs@@ -0,0 +1,114 @@+/**+ * The Mercury mark (a cat whose head is the ☿ symbol) drawn as vectors, and+ * the app icons built from it. Coordinates are the original 1024px+ * artwork's, so the mark lines up with the logo used everywhere else.+ *+ * Small sizes get their own drawing, not a shrunk big one: strokes thicken+ * as the icon shrinks, and at 20px and below (and in the menu bar) the head+ * turns solid with the face cut out, because outlines fall apart there.+ */++/** The mark's bounding box in artwork units. */+export const BOX = { x: 362, y: 312, w: 298, h: 403, cx: 511, cy: 513.5 };++const EAR = "M 393 414 C 378 372, 376 334, 396 325 C 413 318, 434 338, 452 363";+const MIRROR = "translate(1022 0) scale(-1 1)";++/** The outline mark: ears, head ring, ☿ cross, eyes, smile. */+export function markOutline({ s = 20, eye = 18.5, smile = true, color = "#fff" } = {}) {+ const st = `fill="none" stroke="${color}" stroke-width="${s}" stroke-linecap="round" stroke-linejoin="round"`;+ return [+ `<path d="${EAR}" ${st}/>`,+ `<path d="${EAR}" ${st} transform="${MIRROR}"/>`,+ `<circle cx="511" cy="495" r="${149 - s / 2}" ${st}/>`,+ `<path d="M 511 ${644 - s / 2} V ${712 - s / 2}" ${st}/>`,+ `<path d="M ${468 + s / 2} 677 H ${555 - s / 2}" ${st}/>`,+ `<circle cx="451" cy="497" r="${eye}" fill="${color}"/>`,+ `<circle cx="571" cy="497" r="${eye}" fill="${color}"/>`,+ smile ? `<path d="M 492 540 Q 511.5 561 531 540" fill="none" stroke="${color}" stroke-width="${smile === true ? Math.min(s, 19) : smile}" stroke-linecap="round"/>` : "",+ ].join("");+}++/** The solid mark: a filled head with the face cut out. `long` stretches the cross for the menu bar. */+export function markSolid({ color = "#000", id = "face", eye = 30, cross = 44, long = false } = {}) {+ const ear = (t = "") => `<path d="${EAR} L 511 400 Z" stroke="${color}" stroke-width="40" stroke-linejoin="round"${t}/>`;+ const bar = (d) => `<path d="${d}" stroke="${color}" stroke-width="${cross}" stroke-linecap="round"/>`;+ const c = cross / 2;+ return `<mask id="${id}" maskUnits="userSpaceOnUse" x="0" y="0" width="1024" height="1024"><rect width="1024" height="1024" fill="#fff"/>+<circle cx="451" cy="497" r="${eye}" fill="#000"/><circle cx="571" cy="497" r="${eye}" fill="#000"/>+<path d="M 488 544 Q 511.5 568 535 544" fill="none" stroke="#000" stroke-width="26" stroke-linecap="round"/></mask>+<g mask="url(#${id})" fill="${color}">${ear()}${ear(` transform="${MIRROR}"`)}<circle cx="511" cy="495" r="149"/></g>+${long ? bar(`M 511 630 V ${752 - c}`) + bar(`M ${452 + c} 706 H ${570 - c}`) : bar(`M 511 630 V ${712 - c}`) + bar(`M ${468 + c} 677 H ${555 - c}`)}`;+}++/** Line weight for the pixel size the icon is drawn at. */+export function detailFor(px) {+ if (px <= 20) return { solid: true };+ if (px <= 40) return { s: 32, eye: 24, smile: 26 };+ if (px <= 80) return { s: 28, eye: 22, smile: 22 };+ return { s: 25, eye: 21, smile: 20 };+}++/** Apple's continuous-corner plate, approximated by a superellipse (n = 5). */+export function squircle(x, y, w, h, n = 5, steps = 360) {+ const cx = x + w / 2, cy = y + h / 2, a = w / 2, b = h / 2, pts = [];+ for (let i = 0; i < steps; i++) {+ const t = (i / steps) * 2 * Math.PI, c = Math.cos(t), s = Math.sin(t);+ pts.push(`${(cx + a * Math.sign(c) * Math.abs(c) ** (2 / n)).toFixed(2)} ${(cy + b * Math.sign(s) * Math.abs(s) ** (2 / n)).toFixed(2)}`);+ }+ return `M ${pts.join(" L ")} Z`;+}++function roundRect(x, y, w, h, r) {+ return `M ${x + r} ${y} H ${x + w - r} A ${r} ${r} 0 0 1 ${x + w} ${y + r} V ${y + h - r} A ${r} ${r} 0 0 1 ${x + w - r} ${y + h} H ${x + r} A ${r} ${r} 0 0 1 ${x} ${y + h - r} V ${y + r} A ${r} ${r} 0 0 1 ${x + r} ${y} Z`;+}++/**+ * The app icon on a 1024 canvas, for drawing at `px` pixels.+ * - "mac": an 824px squircle on Apple's grid (100px margin, no baked shadow:+ * macOS 26 adds its own, and anything outside the shape gets the icon+ * shrunk onto a grey plate).+ * - "square": a rounded square for Windows and Linux, nearly full-bleed.+ * Brand green mark on a near-black plate, lit softly from above.+ */+export function appIcon({ shape = "mac", px = 1024 } = {}) {+ const plate = shape === "mac" ? { x: 100, w: 824 } : { x: 40, w: 944 };+ const d = shape === "mac" ? squircle(plate.x, plate.x, plate.w, plate.w) : roundRect(plate.x, plate.x, plate.w, plate.w, plate.w * 0.225);+ const det = detailFor(px);+ const small = px <= 40;+ const k = (plate.w * (small ? 0.7 : 0.6)) / BOX.h;+ const tx = 512 - BOX.cx * k, ty = 512 - BOX.cy * k + plate.w * 0.005;+ const mark = det.solid ? markSolid({ color: "url(#mark)", eye: 34 }) : markOutline({ ...det, color: "url(#mark)" });+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="${px}" height="${px}">+<defs>+ <linearGradient id="plate" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#1A2924"/><stop offset="1" stop-color="#090D0C"/></linearGradient>+ <radialGradient id="glow" cx="0.5" cy="0.42" r="0.55"><stop offset="0" stop-color="#34E1A1" stop-opacity="${small ? 0 : 0.16}"/><stop offset="1" stop-color="#34E1A1" stop-opacity="0"/></radialGradient>+ <linearGradient id="sheen" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity="0.10"/><stop offset="0.5" stop-color="#fff" stop-opacity="0"/></linearGradient>+ <linearGradient id="mark" gradientUnits="userSpaceOnUse" x1="0" y1="312" x2="0" y2="715"><stop offset="0" stop-color="#7DF5C8"/><stop offset="1" stop-color="#22C98B"/></linearGradient>+ <clipPath id="clip"><path d="${d}"/></clipPath>+</defs>+<path d="${d}" fill="url(#plate)"/>+<g clip-path="url(#clip)"><rect width="1024" height="1024" fill="url(#glow)"/><rect width="1024" height="1024" fill="url(#sheen)"/></g>+<g transform="translate(${tx.toFixed(2)} ${ty.toFixed(2)}) scale(${k.toFixed(4)})">${mark}</g>+</svg>`;+}++/**+ * The macOS menu bar icon: a black solid mark on transparent, used as a+ * template image (macOS keeps only the alpha and tints it for the menu bar,+ * light or dark). The tray library sets it to 18pt tall, so it's drawn 36px+ * tall: exactly 2x, sharp on Retina.+ */+export function menuBarIcon(heightPx = 36) {+ const box = { cx: 511, cy: 532, w: 298, h: 440 };+ const pad = 1.5 / 36;+ const k = (heightPx * (1 - 2 * pad)) / box.h;+ const w = Math.ceil(box.w * k + heightPx * pad * 2);+ const tx = w / 2 - box.cx * k, ty = heightPx / 2 - box.cy * k;+ return { w, svg: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${w} ${heightPx}" width="${w}" height="${heightPx}"><g transform="translate(${tx.toFixed(3)} ${ty.toFixed(3)}) scale(${k.toFixed(5)})">${markSolid({ color: "#000", eye: 31, cross: 40, long: true })}</g></svg>` };+}++/** The mark alone, white, for anywhere a plain vector is wanted. */+export function markSVG() {+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${BOX.x - 20} ${BOX.y - 20} ${BOX.w + 40} ${BOX.h + 40}">${markOutline({ s: 25, eye: 21, smile: 20, color: "#fff" })}</svg>`;+}diff --git a/apps/desktop/src-tauri/icons/128x128.png b/apps/desktop/src-tauri/icons/128x128.pngindex 8d56ef05..b68b3229 100644Binary files a/apps/desktop/src-tauri/icons/128x128.png and b/apps/desktop/src-tauri/icons/128x128.png differdiff --git a/apps/desktop/src-tauri/icons/[email protected] b/apps/desktop/src-tauri/icons/[email protected]index 7e65db5a..e5063af3 100644Binary files a/apps/desktop/src-tauri/icons/[email protected] and b/apps/desktop/src-tauri/icons/[email protected] differdiff --git a/apps/desktop/src-tauri/icons/32x32.png b/apps/desktop/src-tauri/icons/32x32.pngindex 483b9723..8168113d 100644Binary files a/apps/desktop/src-tauri/icons/32x32.png and b/apps/desktop/src-tauri/icons/32x32.png differdiff --git a/apps/desktop/src-tauri/icons/64x64.png b/apps/desktop/src-tauri/icons/64x64.pngindex cbd02683..a3a90aa7 100644Binary files a/apps/desktop/src-tauri/icons/64x64.png and b/apps/desktop/src-tauri/icons/64x64.png differdiff --git a/apps/desktop/src-tauri/icons/Square107x107Logo.png b/apps/desktop/src-tauri/icons/Square107x107Logo.pngindex ca201e86..20348eb0 100644Binary files a/apps/desktop/src-tauri/icons/Square107x107Logo.png and b/apps/desktop/src-tauri/icons/Square107x107Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square142x142Logo.png b/apps/desktop/src-tauri/icons/Square142x142Logo.pngindex e54c7ea2..4bff9131 100644Binary files a/apps/desktop/src-tauri/icons/Square142x142Logo.png and b/apps/desktop/src-tauri/icons/Square142x142Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square150x150Logo.png b/apps/desktop/src-tauri/icons/Square150x150Logo.pngindex 85c66ce8..a1ea4f75 100644Binary files a/apps/desktop/src-tauri/icons/Square150x150Logo.png and b/apps/desktop/src-tauri/icons/Square150x150Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square284x284Logo.png b/apps/desktop/src-tauri/icons/Square284x284Logo.pngindex 09004fe1..4bf04c4a 100644Binary files a/apps/desktop/src-tauri/icons/Square284x284Logo.png and b/apps/desktop/src-tauri/icons/Square284x284Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square30x30Logo.png b/apps/desktop/src-tauri/icons/Square30x30Logo.pngindex 1a9f254e..474f4d7a 100644Binary files a/apps/desktop/src-tauri/icons/Square30x30Logo.png and b/apps/desktop/src-tauri/icons/Square30x30Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square310x310Logo.png b/apps/desktop/src-tauri/icons/Square310x310Logo.pngindex 89b7d014..8119caea 100644Binary files a/apps/desktop/src-tauri/icons/Square310x310Logo.png and b/apps/desktop/src-tauri/icons/Square310x310Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square44x44Logo.png b/apps/desktop/src-tauri/icons/Square44x44Logo.pngindex aabfaac6..077201f2 100644Binary files a/apps/desktop/src-tauri/icons/Square44x44Logo.png and b/apps/desktop/src-tauri/icons/Square44x44Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square71x71Logo.png b/apps/desktop/src-tauri/icons/Square71x71Logo.pngindex 810ef6a6..9d50d592 100644Binary files a/apps/desktop/src-tauri/icons/Square71x71Logo.png and b/apps/desktop/src-tauri/icons/Square71x71Logo.png differdiff --git a/apps/desktop/src-tauri/icons/Square89x89Logo.png b/apps/desktop/src-tauri/icons/Square89x89Logo.pngindex b2a40791..6a31072e 100644Binary files a/apps/desktop/src-tauri/icons/Square89x89Logo.png and b/apps/desktop/src-tauri/icons/Square89x89Logo.png differdiff --git a/apps/desktop/src-tauri/icons/StoreLogo.png b/apps/desktop/src-tauri/icons/StoreLogo.pngindex 2ce055d8..cb6ba159 100644Binary files a/apps/desktop/src-tauri/icons/StoreLogo.png and b/apps/desktop/src-tauri/icons/StoreLogo.png differdiff --git a/apps/desktop/src-tauri/icons/icon-macos.svg b/apps/desktop/src-tauri/icons/icon-macos.svgnew file mode 100644index 00000000..b1f57aa6--- /dev/null+++ b/apps/desktop/src-tauri/icons/icon-macos.svg@@ -0,0 +1,12 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">+<defs>+ <linearGradient id="plate" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#1A2924"/><stop offset="1" stop-color="#090D0C"/></linearGradient>+ <radialGradient id="glow" cx="0.5" cy="0.42" r="0.55"><stop offset="0" stop-color="#34E1A1" stop-opacity="0.16"/><stop offset="1" stop-color="#34E1A1" stop-opacity="0"/></radialGradient>+ <linearGradient id="sheen" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity="0.10"/><stop offset="0.5" stop-color="#fff" stop-opacity="0"/></linearGradient>+ <linearGradient id="mark" gradientUnits="userSpaceOnUse" x1="0" y1="312" x2="0" y2="715"><stop offset="0" stop-color="#7DF5C8"/><stop offset="1" stop-color="#22C98B"/></linearGradient>+ <clipPath id="clip"><path d="M 924.00 512.00 L 923.97 593.59 L 923.90 619.65 L 923.77 638.60 L 923.60 654.01 L 923.37 667.24 L 923.10 678.95 L 922.77 689.52 L 922.39 699.21 L 921.96 708.17 L 921.48 716.53 L 920.96 724.39 L 920.37 731.81 L 919.74 738.85 L 919.06 745.54 L 918.33 751.94 L 917.54 758.06 L 916.70 763.93 L 915.81 769.57 L 914.87 775.00 L 913.88 780.24 L 912.83 785.29 L 911.73 790.18 L 910.57 794.91 L 909.36 799.49 L 908.10 803.93 L 906.79 808.23 L 905.41 812.41 L 903.99 816.47 L 902.50 820.41 L 900.96 824.24 L 899.37 827.96 L 897.71 831.58 L 896.00 835.10 L 894.23 838.53 L 892.40 841.86 L 890.51 845.11 L 888.56 848.27 L 886.55 851.34 L 884.48 854.33 L 882.34 857.24 L 880.14 860.08 L 877.87 862.83 L 875.54 865.52 L 873.14 868.13 L 870.67 870.67 L 868.13 873.14 L 865.52 875.54 L 862.83 877.87 L 860.08 880.14 L 857.24 882.34 L 854.33 884.48 L 851.34 886.55 L 848.27 888.56 L 845.11 890.51 L 841.86 892.40 L 838.53 894.23 L 835.10 896.00 L 831.58 897.71 L 827.96 899.37 L 824.24 900.96 L 820.41 902.50 L 816.47 903.99 L 812.41 905.41 L 808.23 906.79 L 803.93 908.10 L 799.49 909.36 L 794.91 910.57 L 790.18 911.73 L 785.29 912.83 L 780.24 913.88 L 775.00 914.87 L 769.57 915.81 L 763.93 916.70 L 758.06 917.54 L 751.94 918.33 L 745.54 919.06 L 738.85 919.74 L 731.81 920.37 L 724.39 920.96 L 716.53 921.48 L 708.17 921.96 L 699.21 922.39 L 689.52 922.77 L 678.95 923.10 L 667.24 923.37 L 654.01 923.60 L 638.60 923.77 L 619.65 923.90 L 593.59 923.97 L 512.00 924.00 L 430.41 923.97 L 404.35 923.90 L 385.40 923.77 L 369.99 923.60 L 356.76 923.37 L 345.05 923.10 L 334.48 922.77 L 324.79 922.39 L 315.83 921.96 L 307.47 921.48 L 299.61 920.96 L 292.19 920.37 L 285.15 919.74 L 278.46 919.06 L 272.06 918.33 L 265.94 917.54 L 260.07 916.70 L 254.43 915.81 L 249.00 914.87 L 243.76 913.88 L 238.71 912.83 L 233.82 911.73 L 229.09 910.57 L 224.51 909.36 L 220.07 908.10 L 215.77 906.79 L 211.59 905.41 L 207.53 903.99 L 203.59 902.50 L 199.76 900.96 L 196.04 899.37 L 192.42 897.71 L 188.90 896.00 L 185.47 894.23 L 182.14 892.40 L 178.89 890.51 L 175.73 888.56 L 172.66 886.55 L 169.67 884.48 L 166.76 882.34 L 163.92 880.14 L 161.17 877.87 L 158.48 875.54 L 155.87 873.14 L 153.33 870.67 L 150.86 868.13 L 148.46 865.52 L 146.13 862.83 L 143.86 860.08 L 141.66 857.24 L 139.52 854.33 L 137.45 851.34 L 135.44 848.27 L 133.49 845.11 L 131.60 841.86 L 129.77 838.53 L 128.00 835.10 L 126.29 831.58 L 124.63 827.96 L 123.04 824.24 L 121.50 820.41 L 120.01 816.47 L 118.59 812.41 L 117.21 808.23 L 115.90 803.93 L 114.64 799.49 L 113.43 794.91 L 112.27 790.18 L 111.17 785.29 L 110.12 780.24 L 109.13 775.00 L 108.19 769.57 L 107.30 763.93 L 106.46 758.06 L 105.67 751.94 L 104.94 745.54 L 104.26 738.85 L 103.63 731.81 L 103.04 724.39 L 102.52 716.53 L 102.04 708.17 L 101.61 699.21 L 101.23 689.52 L 100.90 678.95 L 100.63 667.24 L 100.40 654.01 L 100.23 638.60 L 100.10 619.65 L 100.03 593.59 L 100.00 512.00 L 100.03 430.41 L 100.10 404.35 L 100.23 385.40 L 100.40 369.99 L 100.63 356.76 L 100.90 345.05 L 101.23 334.48 L 101.61 324.79 L 102.04 315.83 L 102.52 307.47 L 103.04 299.61 L 103.63 292.19 L 104.26 285.15 L 104.94 278.46 L 105.67 272.06 L 106.46 265.94 L 107.30 260.07 L 108.19 254.43 L 109.13 249.00 L 110.12 243.76 L 111.17 238.71 L 112.27 233.82 L 113.43 229.09 L 114.64 224.51 L 115.90 220.07 L 117.21 215.77 L 118.59 211.59 L 120.01 207.53 L 121.50 203.59 L 123.04 199.76 L 124.63 196.04 L 126.29 192.42 L 128.00 188.90 L 129.77 185.47 L 131.60 182.14 L 133.49 178.89 L 135.44 175.73 L 137.45 172.66 L 139.52 169.67 L 141.66 166.76 L 143.86 163.92 L 146.13 161.17 L 148.46 158.48 L 150.86 155.87 L 153.33 153.33 L 155.87 150.86 L 158.48 148.46 L 161.17 146.13 L 163.92 143.86 L 166.76 141.66 L 169.67 139.52 L 172.66 137.45 L 175.73 135.44 L 178.89 133.49 L 182.14 131.60 L 185.47 129.77 L 188.90 128.00 L 192.42 126.29 L 196.04 124.63 L 199.76 123.04 L 203.59 121.50 L 207.53 120.01 L 211.59 118.59 L 215.77 117.21 L 220.07 115.90 L 224.51 114.64 L 229.09 113.43 L 233.82 112.27 L 238.71 111.17 L 243.76 110.12 L 249.00 109.13 L 254.43 108.19 L 260.07 107.30 L 265.94 106.46 L 272.06 105.67 L 278.46 104.94 L 285.15 104.26 L 292.19 103.63 L 299.61 103.04 L 307.47 102.52 L 315.83 102.04 L 324.79 101.61 L 334.48 101.23 L 345.05 100.90 L 356.76 100.63 L 369.99 100.40 L 385.40 100.23 L 404.35 100.10 L 430.41 100.03 L 512.00 100.00 L 593.59 100.03 L 619.65 100.10 L 638.60 100.23 L 654.01 100.40 L 667.24 100.63 L 678.95 100.90 L 689.52 101.23 L 699.21 101.61 L 708.17 102.04 L 716.53 102.52 L 724.39 103.04 L 731.81 103.63 L 738.85 104.26 L 745.54 104.94 L 751.94 105.67 L 758.06 106.46 L 763.93 107.30 L 769.57 108.19 L 775.00 109.13 L 780.24 110.12 L 785.29 111.17 L 790.18 112.27 L 794.91 113.43 L 799.49 114.64 L 803.93 115.90 L 808.23 117.21 L 812.41 118.59 L 816.47 120.01 L 820.41 121.50 L 824.24 123.04 L 827.96 124.63 L 831.58 126.29 L 835.10 128.00 L 838.53 129.77 L 841.86 131.60 L 845.11 133.49 L 848.27 135.44 L 851.34 137.45 L 854.33 139.52 L 857.24 141.66 L 860.08 143.86 L 862.83 146.13 L 865.52 148.46 L 868.13 150.86 L 870.67 153.33 L 873.14 155.87 L 875.54 158.48 L 877.87 161.17 L 880.14 163.92 L 882.34 166.76 L 884.48 169.67 L 886.55 172.66 L 888.56 175.73 L 890.51 178.89 L 892.40 182.14 L 894.23 185.47 L 896.00 188.90 L 897.71 192.42 L 899.37 196.04 L 900.96 199.76 L 902.50 203.59 L 903.99 207.53 L 905.41 211.59 L 906.79 215.77 L 908.10 220.07 L 909.36 224.51 L 910.57 229.09 L 911.73 233.82 L 912.83 238.71 L 913.88 243.76 L 914.87 249.00 L 915.81 254.43 L 916.70 260.07 L 917.54 265.94 L 918.33 272.06 L 919.06 278.46 L 919.74 285.15 L 920.37 292.19 L 920.96 299.61 L 921.48 307.47 L 921.96 315.83 L 922.39 324.79 L 922.77 334.48 L 923.10 345.05 L 923.37 356.76 L 923.60 369.99 L 923.77 385.40 L 923.90 404.35 L 923.97 430.41 Z"/></clipPath>+</defs>+<path d="M 924.00 512.00 L 923.97 593.59 L 923.90 619.65 L 923.77 638.60 L 923.60 654.01 L 923.37 667.24 L 923.10 678.95 L 922.77 689.52 L 922.39 699.21 L 921.96 708.17 L 921.48 716.53 L 920.96 724.39 L 920.37 731.81 L 919.74 738.85 L 919.06 745.54 L 918.33 751.94 L 917.54 758.06 L 916.70 763.93 L 915.81 769.57 L 914.87 775.00 L 913.88 780.24 L 912.83 785.29 L 911.73 790.18 L 910.57 794.91 L 909.36 799.49 L 908.10 803.93 L 906.79 808.23 L 905.41 812.41 L 903.99 816.47 L 902.50 820.41 L 900.96 824.24 L 899.37 827.96 L 897.71 831.58 L 896.00 835.10 L 894.23 838.53 L 892.40 841.86 L 890.51 845.11 L 888.56 848.27 L 886.55 851.34 L 884.48 854.33 L 882.34 857.24 L 880.14 860.08 L 877.87 862.83 L 875.54 865.52 L 873.14 868.13 L 870.67 870.67 L 868.13 873.14 L 865.52 875.54 L 862.83 877.87 L 860.08 880.14 L 857.24 882.34 L 854.33 884.48 L 851.34 886.55 L 848.27 888.56 L 845.11 890.51 L 841.86 892.40 L 838.53 894.23 L 835.10 896.00 L 831.58 897.71 L 827.96 899.37 L 824.24 900.96 L 820.41 902.50 L 816.47 903.99 L 812.41 905.41 L 808.23 906.79 L 803.93 908.10 L 799.49 909.36 L 794.91 910.57 L 790.18 911.73 L 785.29 912.83 L 780.24 913.88 L 775.00 914.87 L 769.57 915.81 L 763.93 916.70 L 758.06 917.54 L 751.94 918.33 L 745.54 919.06 L 738.85 919.74 L 731.81 920.37 L 724.39 920.96 L 716.53 921.48 L 708.17 921.96 L 699.21 922.39 L 689.52 922.77 L 678.95 923.10 L 667.24 923.37 L 654.01 923.60 L 638.60 923.77 L 619.65 923.90 L 593.59 923.97 L 512.00 924.00 L 430.41 923.97 L 404.35 923.90 L 385.40 923.77 L 369.99 923.60 L 356.76 923.37 L 345.05 923.10 L 334.48 922.77 L 324.79 922.39 L 315.83 921.96 L 307.47 921.48 L 299.61 920.96 L 292.19 920.37 L 285.15 919.74 L 278.46 919.06 L 272.06 918.33 L 265.94 917.54 L 260.07 916.70 L 254.43 915.81 L 249.00 914.87 L 243.76 913.88 L 238.71 912.83 L 233.82 911.73 L 229.09 910.57 L 224.51 909.36 L 220.07 908.10 L 215.77 906.79 L 211.59 905.41 L 207.53 903.99 L 203.59 902.50 L 199.76 900.96 L 196.04 899.37 L 192.42 897.71 L 188.90 896.00 L 185.47 894.23 L 182.14 892.40 L 178.89 890.51 L 175.73 888.56 L 172.66 886.55 L 169.67 884.48 L 166.76 882.34 L 163.92 880.14 L 161.17 877.87 L 158.48 875.54 L 155.87 873.14 L 153.33 870.67 L 150.86 868.13 L 148.46 865.52 L 146.13 862.83 L 143.86 860.08 L 141.66 857.24 L 139.52 854.33 L 137.45 851.34 L 135.44 848.27 L 133.49 845.11 L 131.60 841.86 L 129.77 838.53 L 128.00 835.10 L 126.29 831.58 L 124.63 827.96 L 123.04 824.24 L 121.50 820.41 L 120.01 816.47 L 118.59 812.41 L 117.21 808.23 L 115.90 803.93 L 114.64 799.49 L 113.43 794.91 L 112.27 790.18 L 111.17 785.29 L 110.12 780.24 L 109.13 775.00 L 108.19 769.57 L 107.30 763.93 L 106.46 758.06 L 105.67 751.94 L 104.94 745.54 L 104.26 738.85 L 103.63 731.81 L 103.04 724.39 L 102.52 716.53 L 102.04 708.17 L 101.61 699.21 L 101.23 689.52 L 100.90 678.95 L 100.63 667.24 L 100.40 654.01 L 100.23 638.60 L 100.10 619.65 L 100.03 593.59 L 100.00 512.00 L 100.03 430.41 L 100.10 404.35 L 100.23 385.40 L 100.40 369.99 L 100.63 356.76 L 100.90 345.05 L 101.23 334.48 L 101.61 324.79 L 102.04 315.83 L 102.52 307.47 L 103.04 299.61 L 103.63 292.19 L 104.26 285.15 L 104.94 278.46 L 105.67 272.06 L 106.46 265.94 L 107.30 260.07 L 108.19 254.43 L 109.13 249.00 L 110.12 243.76 L 111.17 238.71 L 112.27 233.82 L 113.43 229.09 L 114.64 224.51 L 115.90 220.07 L 117.21 215.77 L 118.59 211.59 L 120.01 207.53 L 121.50 203.59 L 123.04 199.76 L 124.63 196.04 L 126.29 192.42 L 128.00 188.90 L 129.77 185.47 L 131.60 182.14 L 133.49 178.89 L 135.44 175.73 L 137.45 172.66 L 139.52 169.67 L 141.66 166.76 L 143.86 163.92 L 146.13 161.17 L 148.46 158.48 L 150.86 155.87 L 153.33 153.33 L 155.87 150.86 L 158.48 148.46 L 161.17 146.13 L 163.92 143.86 L 166.76 141.66 L 169.67 139.52 L 172.66 137.45 L 175.73 135.44 L 178.89 133.49 L 182.14 131.60 L 185.47 129.77 L 188.90 128.00 L 192.42 126.29 L 196.04 124.63 L 199.76 123.04 L 203.59 121.50 L 207.53 120.01 L 211.59 118.59 L 215.77 117.21 L 220.07 115.90 L 224.51 114.64 L 229.09 113.43 L 233.82 112.27 L 238.71 111.17 L 243.76 110.12 L 249.00 109.13 L 254.43 108.19 L 260.07 107.30 L 265.94 106.46 L 272.06 105.67 L 278.46 104.94 L 285.15 104.26 L 292.19 103.63 L 299.61 103.04 L 307.47 102.52 L 315.83 102.04 L 324.79 101.61 L 334.48 101.23 L 345.05 100.90 L 356.76 100.63 L 369.99 100.40 L 385.40 100.23 L 404.35 100.10 L 430.41 100.03 L 512.00 100.00 L 593.59 100.03 L 619.65 100.10 L 638.60 100.23 L 654.01 100.40 L 667.24 100.63 L 678.95 100.90 L 689.52 101.23 L 699.21 101.61 L 708.17 102.04 L 716.53 102.52 L 724.39 103.04 L 731.81 103.63 L 738.85 104.26 L 745.54 104.94 L 751.94 105.67 L 758.06 106.46 L 763.93 107.30 L 769.57 108.19 L 775.00 109.13 L 780.24 110.12 L 785.29 111.17 L 790.18 112.27 L 794.91 113.43 L 799.49 114.64 L 803.93 115.90 L 808.23 117.21 L 812.41 118.59 L 816.47 120.01 L 820.41 121.50 L 824.24 123.04 L 827.96 124.63 L 831.58 126.29 L 835.10 128.00 L 838.53 129.77 L 841.86 131.60 L 845.11 133.49 L 848.27 135.44 L 851.34 137.45 L 854.33 139.52 L 857.24 141.66 L 860.08 143.86 L 862.83 146.13 L 865.52 148.46 L 868.13 150.86 L 870.67 153.33 L 873.14 155.87 L 875.54 158.48 L 877.87 161.17 L 880.14 163.92 L 882.34 166.76 L 884.48 169.67 L 886.55 172.66 L 888.56 175.73 L 890.51 178.89 L 892.40 182.14 L 894.23 185.47 L 896.00 188.90 L 897.71 192.42 L 899.37 196.04 L 900.96 199.76 L 902.50 203.59 L 903.99 207.53 L 905.41 211.59 L 906.79 215.77 L 908.10 220.07 L 909.36 224.51 L 910.57 229.09 L 911.73 233.82 L 912.83 238.71 L 913.88 243.76 L 914.87 249.00 L 915.81 254.43 L 916.70 260.07 L 917.54 265.94 L 918.33 272.06 L 919.06 278.46 L 919.74 285.15 L 920.37 292.19 L 920.96 299.61 L 921.48 307.47 L 921.96 315.83 L 922.39 324.79 L 922.77 334.48 L 923.10 345.05 L 923.37 356.76 L 923.60 369.99 L 923.77 385.40 L 923.90 404.35 L 923.97 430.41 Z" fill="url(#plate)"/>+<g clip-path="url(#clip)"><rect width="1024" height="1024" fill="url(#glow)"/><rect width="1024" height="1024" fill="url(#sheen)"/></g>+<g transform="translate(-114.89 -113.84) scale(1.2268)"><path d="M 393 414 C 378 372, 376 334, 396 325 C 413 318, 434 338, 452 363" fill="none" stroke="url(#mark)" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><path d="M 393 414 C 378 372, 376 334, 396 325 C 413 318, 434 338, 452 363" fill="none" stroke="url(#mark)" stroke-width="25" stroke-linecap="round" stroke-linejoin="round" transform="translate(1022 0) scale(-1 1)"/><circle cx="511" cy="495" r="136.5" fill="none" stroke="url(#mark)" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><path d="M 511 631.5 V 699.5" fill="none" stroke="url(#mark)" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><path d="M 480.5 677 H 542.5" fill="none" stroke="url(#mark)" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><circle cx="451" cy="497" r="21" fill="url(#mark)"/><circle cx="571" cy="497" r="21" fill="url(#mark)"/><path d="M 492 540 Q 511.5 561 531 540" fill="none" stroke="url(#mark)" stroke-width="20" stroke-linecap="round"/></g>+</svg>\ No newline at end of filediff --git a/apps/desktop/src-tauri/icons/icon-square.svg b/apps/desktop/src-tauri/icons/icon-square.svgnew file mode 100644index 00000000..82d0e50f--- /dev/null+++ b/apps/desktop/src-tauri/icons/icon-square.svg@@ -0,0 +1,12 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">+<defs>+ <linearGradient id="plate" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#1A2924"/><stop offset="1" stop-color="#090D0C"/></linearGradient>+ <radialGradient id="glow" cx="0.5" cy="0.42" r="0.55"><stop offset="0" stop-color="#34E1A1" stop-opacity="0.16"/><stop offset="1" stop-color="#34E1A1" stop-opacity="0"/></radialGradient>+ <linearGradient id="sheen" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity="0.10"/><stop offset="0.5" stop-color="#fff" stop-opacity="0"/></linearGradient>+ <linearGradient id="mark" gradientUnits="userSpaceOnUse" x1="0" y1="312" x2="0" y2="715"><stop offset="0" stop-color="#7DF5C8"/><stop offset="1" stop-color="#22C98B"/></linearGradient>+ <clipPath id="clip"><path d="M 252.4 40 H 771.6 A 212.4 212.4 0 0 1 984 252.4 V 771.6 A 212.4 212.4 0 0 1 771.6 984 H 252.4 A 212.4 212.4 0 0 1 40 771.6 V 252.4 A 212.4 212.4 0 0 1 252.4 40 Z"/></clipPath>+</defs>+<path d="M 252.4 40 H 771.6 A 212.4 212.4 0 0 1 984 252.4 V 771.6 A 212.4 212.4 0 0 1 771.6 984 H 252.4 A 212.4 212.4 0 0 1 40 771.6 V 252.4 A 212.4 212.4 0 0 1 252.4 40 Z" fill="url(#plate)"/>+<g clip-path="url(#clip)"><rect width="1024" height="1024" fill="url(#glow)"/><rect width="1024" height="1024" fill="url(#sheen)"/></g>+<g transform="translate(-206.19 -204.98) scale(1.4055)"><path d="M 393 414 C 378 372, 376 334, 396 325 C 413 318, 434 338, 452 363" fill="none" stroke="url(#mark)" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><path d="M 393 414 C 378 372, 376 334, 396 325 C 413 318, 434 338, 452 363" fill="none" stroke="url(#mark)" stroke-width="25" stroke-linecap="round" stroke-linejoin="round" transform="translate(1022 0) scale(-1 1)"/><circle cx="511" cy="495" r="136.5" fill="none" stroke="url(#mark)" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><path d="M 511 631.5 V 699.5" fill="none" stroke="url(#mark)" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><path d="M 480.5 677 H 542.5" fill="none" stroke="url(#mark)" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><circle cx="451" cy="497" r="21" fill="url(#mark)"/><circle cx="571" cy="497" r="21" fill="url(#mark)"/><path d="M 492 540 Q 511.5 561 531 540" fill="none" stroke="url(#mark)" stroke-width="20" stroke-linecap="round"/></g>+</svg>\ No newline at end of filediff --git a/apps/desktop/src-tauri/icons/icon.icns b/apps/desktop/src-tauri/icons/icon.icnsindex 52ab836c..f57d9390 100644Binary files a/apps/desktop/src-tauri/icons/icon.icns and b/apps/desktop/src-tauri/icons/icon.icns differdiff --git a/apps/desktop/src-tauri/icons/icon.ico b/apps/desktop/src-tauri/icons/icon.icoindex b23da8a2..61730d31 100644Binary files a/apps/desktop/src-tauri/icons/icon.ico and b/apps/desktop/src-tauri/icons/icon.ico differdiff --git a/apps/desktop/src-tauri/icons/icon.png b/apps/desktop/src-tauri/icons/icon.pngindex d17cb785..b3ac756b 100644Binary files a/apps/desktop/src-tauri/icons/icon.png and b/apps/desktop/src-tauri/icons/icon.png differdiff --git a/apps/desktop/src-tauri/icons/mark.svg b/apps/desktop/src-tauri/icons/mark.svgnew file mode 100644index 00000000..c3f6f73b--- /dev/null+++ b/apps/desktop/src-tauri/icons/mark.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="342 292 338 443"><path d="M 393 414 C 378 372, 376 334, 396 325 C 413 318, 434 338, 452 363" fill="none" stroke="#fff" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><path d="M 393 414 C 378 372, 376 334, 396 325 C 413 318, 434 338, 452 363" fill="none" stroke="#fff" stroke-width="25" stroke-linecap="round" stroke-linejoin="round" transform="translate(1022 0) scale(-1 1)"/><circle cx="511" cy="495" r="136.5" fill="none" stroke="#fff" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><path d="M 511 631.5 V 699.5" fill="none" stroke="#fff" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><path d="M 480.5 677 H 542.5" fill="none" stroke="#fff" stroke-width="25" stroke-linecap="round" stroke-linejoin="round"/><circle cx="451" cy="497" r="21" fill="#fff"/><circle cx="571" cy="497" r="21" fill="#fff"/><path d="M 492 540 Q 511.5 561 531 540" fill="none" stroke="#fff" stroke-width="20" stroke-linecap="round"/></svg>\ No newline at end of filediff --git a/apps/desktop/src-tauri/icons/source.png b/apps/desktop/src-tauri/icons/source.pngdeleted file mode 100644index 4d2b00cc..00000000Binary files a/apps/desktop/src-tauri/icons/source.png and /dev/null differdiff --git a/apps/desktop/src-tauri/icons/tray/macos-template.png b/apps/desktop/src-tauri/icons/tray/macos-template.pngnew file mode 100644index 00000000..d2fa2285Binary files /dev/null and b/apps/desktop/src-tauri/icons/tray/macos-template.png differdiff --git a/apps/desktop/src-tauri/icons/tray/tray.png b/apps/desktop/src-tauri/icons/tray/tray.pngnew file mode 100644index 00000000..8168113dBinary files /dev/null and b/apps/desktop/src-tauri/icons/tray/tray.png differdiff --git a/apps/desktop/src-tauri/src/tray.rs b/apps/desktop/src-tauri/src/tray.rsindex b36b9144..160b81e4 100644--- a/apps/desktop/src-tauri/src/tray.rs+++ b/apps/desktop/src-tauri/src/tray.rs@@ -1,4 +1,5 @@use tauri::{+ image::Image,menu::{Menu, MenuItem, PredefinedMenuItem},tray::{MouseButton, MouseButtonState, TrayIconBuilder, TrayIconEvent},AppHandle,@@ -11,13 +12,19 @@ pub fn install(app: &AppHandle) -> tauri::Result<()> {let separator = PredefinedMenuItem::separator(app)?;let menu = Menu::with_items(app, &[&open, &separator, &quit])?;- let icon = app- .default_window_icon()- .cloned()- .ok_or_else(|| tauri::Error::AssetNotFound("default window icon".into()))?;+ // macOS: a monochrome template image, tinted by the system to match the+ // menu bar (light, dark, tinted wallpapers). Elsewhere: the colour tile.+ #[cfg(target_os = "macos")]+ let (icon, template) = (+ Image::from_bytes(include_bytes!("../icons/tray/macos-template.png"))?,+ true,+ );+ #[cfg(not(target_os = "macos"))]+ let (icon, template) = (Image::from_bytes(include_bytes!("../icons/tray/tray.png"))?, false);TrayIconBuilder::with_id("main").icon(icon)+ .icon_as_template(template).tooltip("Mercury").menu(&menu).show_menu_on_left_click(false)