Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.
Rust apple-notesapple-reminderscloudkitcrdtdesktop-appicloudicloud-calendaricloud-driveicloud-notesicloud-photosiphonelinuxlinux-desktoplocal-firstoffline-firstprivacyrusttauritauri-appwindows
A real app icon, everywhere the app shows itself
Yashwanth Kamireddi63687b2fd459
diff --git a/src-tauri/icons/128x128.png b/src-tauri/icons/128x128.pngnew file mode 100644index 0000000..39ca498Binary files /dev/null and b/src-tauri/icons/128x128.png differdiff --git a/src-tauri/icons/[email protected] b/src-tauri/icons/[email protected]new file mode 100644index 0000000..80ef100Binary files /dev/null and b/src-tauri/icons/[email protected] differdiff --git a/src-tauri/icons/32x32.png b/src-tauri/icons/32x32.pngnew file mode 100644index 0000000..957137cBinary files /dev/null and b/src-tauri/icons/32x32.png differdiff --git a/src-tauri/icons/64x64.png b/src-tauri/icons/64x64.pngnew file mode 100644index 0000000..d1a5d1bBinary files /dev/null and b/src-tauri/icons/64x64.png differdiff --git a/src-tauri/icons/icon.png b/src-tauri/icons/icon.pngindex ac3e021..c8beede 100644Binary files a/src-tauri/icons/icon.png and b/src-tauri/icons/icon.png differdiff --git a/src-tauri/icons/icon.svg b/src-tauri/icons/icon.svgnew file mode 100644index 0000000..a2e5ca1--- /dev/null+++ b/src-tauri/icons/icon.svg@@ -0,0 +1,64 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">+ <!--+ Quince: a quince, ripe gold, against the evening sky its data lives in.+ A quince, not an apple: it narrows to a neck at the stem like a pear, its body sits low+ and a little lopsided, and it has one leaf and no bite. Laid on Apple's icon grid — an+ 824px tile inset on the 1024 canvas — and drawn to read as one gold shape on blue at 16px.+ -->+ <defs>+ <linearGradient id="sky" x1="0.15" y1="0" x2="0.85" y2="1">+ <stop offset="0" stop-color="#4573B8"/>+ <stop offset="0.55" stop-color="#284B85"/>+ <stop offset="1" stop-color="#172C54"/>+ </linearGradient>+ <radialGradient id="glow" cx="0.3" cy="0.12" r="0.8">+ <stop offset="0" stop-color="#8FB4E8" stop-opacity="0.5"/>+ <stop offset="1" stop-color="#8FB4E8" stop-opacity="0"/>+ </radialGradient>+ <radialGradient id="skin" cx="0.38" cy="0.4" r="0.72">+ <stop offset="0" stop-color="#F9D46E"/>+ <stop offset="0.5" stop-color="#E4AE43"/>+ <stop offset="0.82" stop-color="#C8912A"/>+ <stop offset="1" stop-color="#93601A"/>+ </radialGradient>+ <radialGradient id="sheen" cx="0.5" cy="0.5" r="0.5">+ <stop offset="0" stop-color="#FFF6D6" stop-opacity="0.55"/>+ <stop offset="1" stop-color="#FFF6D6" stop-opacity="0"/>+ </radialGradient>+ <linearGradient id="leaf" x1="0" y1="1" x2="1" y2="0">+ <stop offset="0" stop-color="#3D6B29"/>+ <stop offset="1" stop-color="#83B552"/>+ </linearGradient>+ <filter id="shadow" x="-25%" y="-20%" width="150%" height="150%">+ <feDropShadow dx="0" dy="18" stdDeviation="22" flood-color="#06122A" flood-opacity="0.5"/>+ </filter>+ </defs>++ <rect x="100" y="100" width="824" height="824" rx="186" fill="url(#sky)"/>+ <rect x="100" y="100" width="824" height="824" rx="186" fill="url(#glow)"/>+ <rect x="102" y="102" width="820" height="820" rx="184" fill="none"+ stroke="#FFFFFF" stroke-opacity="0.18" stroke-width="4"/>++ <g filter="url(#shadow)">+ <!-- Narrow at the neck, full and low in the body, the right side carrying more weight. -->+ <path fill="url(#skin)" d="+ M500 318+ C540 312 574 330 594 364+ C612 394 640 420 676 446+ C736 490 766 560 760 634+ C752 742 660 816 532 822+ C404 828 288 768 268 652+ C254 572 282 500 342 454+ C380 424 408 398 420 366+ C434 334 462 322 500 318Z"/>+ <!-- Where the skin folds in round the stem. -->+ <path d="M466 330C486 344 522 344 542 330" fill="none" stroke="#8A5815" stroke-opacity="0.6"+ stroke-width="11" stroke-linecap="round"/>+ <ellipse cx="420" cy="560" rx="70" ry="118" transform="rotate(-18 420 560)" fill="url(#sheen)"/>+ <path d="M504 336C498 296 506 262 526 236" fill="none" stroke="#5E3C10" stroke-width="20"+ stroke-linecap="round"/>+ <path fill="url(#leaf)" d="M528 244C564 178 646 156 716 186C696 258 622 300 540 280C532 268 528 256 528 244Z"/>+ <path d="M544 268C594 244 640 220 688 196" fill="none" stroke="#2C501D" stroke-opacity="0.55"+ stroke-width="8" stroke-linecap="round"/>+ </g>+</svg>diff --git a/src-tauri/src/alerts.rs b/src-tauri/src/alerts.rsindex f9425a1..2a797b9 100644--- a/src-tauri/src/alerts.rs+++ b/src-tauri/src/alerts.rs@@ -27,6 +27,27 @@ const STILL_WORTH_SAYING: i64 = 6 * 60 * 60;/// Snooze, as the phone offers it.const SNOOZE: i64 = 60 * 60;+/// The app's icon, carried in the binary so an alert shows it on any desktop. A notification+/// names its icon either from the icon theme — where nothing is installed for a copy run+/// straight from a download or a build, so alerts came up blank — or by file path, which+/// always resolves. So it is written once beside the library and named by path.+const ICON: &[u8] = include_bytes!("../icons/[email protected]");+static ICON_PATH: std::sync::OnceLock<Option<String>> = std::sync::OnceLock::new();++fn icon_path(app: &AppHandle) -> Option<&'static str> {+ ICON_PATH+ .get_or_init(|| {+ let path = crate::state_dir(app).join("quince-alert.png");+ let current = std::fs::read(&path).ok();+ if current.as_deref() != Some(ICON) {+ std::fs::create_dir_all(path.parent()?).ok()?;+ std::fs::write(&path, ICON).ok()?;+ }+ Some(path.to_string_lossy().into_owned())+ })+ .as_deref()+}+/// Emitted to the window to open a reminder an alert was clicked for.pub const OPEN_REMINDER: &str = "quince://open-reminder";@@ -132,7 +153,7 @@ fn show(app: AppHandle, due: DueAlarm) {.appname("Quince").summary(&due.title).body(&body)- .icon("quince")+ .icon(icon_path(&app).unwrap_or("quince")).hint(notify_rust::Hint::Category("reminder".into())).hint(notify_rust::Hint::DesktopEntry("quince".into())).hint(notify_rust::Hint::Resident(true))diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 116a457..4863a65 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -32,6 +32,10 @@"appimage"],"icon": [+ "icons/32x32.png",+ "icons/64x64.png",+ "icons/128x128.png",+ "icons/[email protected]","icons/icon.png"],"category": "Productivity",diff --git a/src/components/Mark.tsx b/src/components/Mark.tsxindex b9074d2..817fd9e 100644--- a/src/components/Mark.tsx+++ b/src/components/Mark.tsx@@ -1,19 +1,9 @@-/** The Quince mark: a pome, a stem, a leaf. Monoline, so the chrome stays quiet. */+import icon from "../../src-tauri/icons/icon.svg";++/**+ * Quince's own icon — the same tile the dock, the tray and every alert show — so the first+ * screen someone sees is the app they will find later, not a separate line drawing of it.+ */export function Mark({ className }: { className?: string }) {- return (- <svg- className={className}- viewBox="0 0 48 48"- fill="none"- stroke="currentColor"- strokeWidth="2.4"- strokeLinecap="round"- strokeLinejoin="round"- aria-hidden="true"- >- <path d="M24 18c-7 0-12.4 5.2-12.4 12.2C11.6 37.1 17 42.5 24 42.5s12.4-5.4 12.4-12.3C36.4 23.2 31 18 24 18Z" />- <path d="M24 18c-.4-3.6.3-6.2 2.1-8.4" />- <path d="M26.6 9.1c2-2.6 5.4-3.6 8.6-2.6.2 3.6-2.3 6.9-6 7.5" />- </svg>- );+ return <img className={className} src={icon} alt="" aria-hidden="true" draggable={false} />;}diff --git a/src/styles/app.css b/src/styles/app.cssindex db311c6..4fb5419 100644--- a/src/styles/app.css+++ b/src/styles/app.css@@ -25,12 +25,14 @@text-align: center;}+/* The icon's own grid leaves a margin round the tile, so it is drawn a little larger than+ the tile is meant to look. */.mark {- width: 52px;- height: 52px;- margin: 0 auto 20px;- color: var(--gold);+ width: 92px;+ height: 92px;+ margin: -10px auto 10px;display: block;+ user-select: none;}.sheet h1 {diff --git a/src/vite-env.d.ts b/src/vite-env.d.tsnew file mode 100644index 0000000..11f02fe--- /dev/null+++ b/src/vite-env.d.ts@@ -0,0 +1 @@+/// <reference types="vite/client" />