Skip to content

A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.

TypeScript

feat(desktop): make the floating Dot, tray, and app icon our glowing rose

Alan Buscagliaa5e1c5b4bde4
diff --git a/apps/desktop/README.md b/apps/desktop/README.md
index 2c5ea37..6e6a6fb 100644
--- a/apps/desktop/README.md
+++ b/apps/desktop/README.md
@@ -58,16 +58,20 @@ Runtime overrides:
| Launch at login | Turns the login item on or off (macOS LaunchAgent). This menu item is the source of truth; `launchAtLogin` in `config.json` is not read. |
| Quit | Stops the daemon the app started (SIGTERM), then quits. A daemon started elsewhere keeps running. |
-The menu bar title shows a short marker for the agent state that the UI reports through `set_dot_state`, and the tooltip names it.
+The menu bar icon changes with the agent state that the UI reports through `set_dot_state` (ready, working, needs you, unavailable), and the tooltip names it.
## Icons
-`scripts/make-icon.mjs` draws the violet circle used for the app icons, with no dependencies:
+All icons come from the rose (`docs/brand/`). `scripts/make-icon.mjs` renders them with Playwright's Chromium:
+
+- `src-tauri/icons/tray/<glyph>.png` and `<glyph>@2x.png` (18 and 36 px): the menu bar glyph `rose-glyph.svg` for `ready`, `working` (dashed outer petals), `needs-you` (badge dot), and `unavailable` (dimmed). They are template images, so macOS uses only their alpha and tints them for the menu bar. The app embeds the 36 px files, which macOS draws at 18 pt.
+- `src-tauri/icons/source.png` (1024 px): the neon rose `rose-source.png` on a black macOS squircle with a faint pink rim.
+- `packages/ui/public/favicon.svg` and `favicon.png`: the glyph in neon pink for the browser tab.
```sh
-node scripts/make-icon.mjs src-tauri/icons/source.png 1024 '#7C5CFF'
-node scripts/make-icon.mjs src-tauri/icons/tray.png 32 '#000000'
-pnpm --filter @gentle-dot/desktop tauri icon src-tauri/icons/source.png
+node scripts/make-icon.mjs
+pnpm --filter @gentle-dot/desktop tauri icon src-tauri/icons/source.png -o /tmp/gentle-dot-icons
+cp /tmp/gentle-dot-icons/{32x32,64x64,128x128,128x128@2x}.png /tmp/gentle-dot-icons/icon.{icns,png} src-tauri/icons/
```
-The tray icon is a template image, so macOS uses only its alpha and tints it to match the menu bar.
+`tauri icon` also writes Android, iOS, and Windows icons, which this macOS app does not use, so they go to a scratch directory and only the files `tauri.conf.json` lists (plus `64x64.png`) are copied.
diff --git a/apps/desktop/scripts/make-icon.mjs b/apps/desktop/scripts/make-icon.mjs
index 2b55513..5c0ac53 100644
--- a/apps/desktop/scripts/make-icon.mjs
+++ b/apps/desktop/scripts/make-icon.mjs
@@ -1,63 +1,100 @@
#!/usr/bin/env node
-// Writes a filled, anti-aliased circle on a transparent background as an RGBA PNG.
-// Usage: node scripts/make-icon.mjs <out.png> [size=1024] [hex=#7C5CFF]
-import { writeFileSync } from "node:fs";
-import { crc32, deflateSync } from "node:zlib";
-
-const [out, sizeArg = "1024", hex = "#7C5CFF"] = process.argv.slice(2);
-if (!out) {
- console.error("usage: make-icon.mjs <out.png> [size] [hex]");
- process.exit(1);
+// Renders the rose icons with Playwright's Chromium (design sheet: docs/brand/rose-design.html):
+// src-tauri/icons/tray/<glyph>.png, <glyph>@2x.png menu bar template images, 18 and 36 px
+// src-tauri/icons/source.png 1024 px app icon master (neon rose, black squircle)
+// packages/ui/public/favicon.svg, favicon.png the menu bar glyph in neon pink (the traced
+// strokes are illegible at tab size), and a 64 px PNG
+// Usage: node scripts/make-icon.mjs, then regenerate the bundle icons from source.png (see README).
+import { readFileSync, writeFileSync } from "node:fs";
+import { mkdir } from "node:fs/promises";
+import { fileURLToPath } from "node:url";
+import { chromium } from "@playwright/test";
+
+const path = (relative) => fileURLToPath(new URL(relative, import.meta.url));
+const brand = (file) => path(`../../../docs/brand/${file}`);
+
+// ---------- Menu bar ----------
+// Template images: macOS reads only the alpha channel and tints them for the menu bar.
+const glyphPaths = [...readFileSync(brand("rose-glyph.svg"), "utf8").matchAll(/<path d="([^"]+)"\/>/g)].map(
+ (m) => m[1],
+);
+const OUTER_PETALS = 2; // the first two paths of rose-glyph.svg
+const BADGE = { cx: 15.2, cy: 3, r: 2.6, gap: 1.3 };
+
+function glyph({ dashed = false, badge = false, opacity = 1 }) {
+ const strokes = glyphPaths
+ .map((d, i) => `<path d="${d}"${dashed && i < OUTER_PETALS ? ' stroke-dasharray="1.3 1.4"' : ""}/>`)
+ .join("");
+ const knockout = badge
+ ? `<mask id="m"><rect width="18" height="18" fill="#fff"/><circle cx="${BADGE.cx}" cy="${BADGE.cy}" r="${BADGE.r + BADGE.gap}"/></mask>`
+ : "";
+ const dot = badge
+ ? `<circle cx="${BADGE.cx}" cy="${BADGE.cy}" r="${BADGE.r}" fill="#000" stroke="none"/>`
+ : "";
+ return `${knockout}<g opacity="${opacity}" fill="none" stroke="#000" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"${badge ? ' mask="url(#m)"' : ""}>${strokes}</g>${dot}`;
}
-const size = Number(sizeArg);
-const [r, g, b] = [1, 3, 5].map((i) => Number.parseInt(hex.slice(i, i + 2), 16));
-
-// Each scanline starts with filter byte 0 (None), followed by RGBA pixels.
-const raw = Buffer.alloc(size * (size * 4 + 1));
-const center = size / 2;
-const radius = size / 2 - Math.max(1, size / 64);
-const samples = 4;
-for (let y = 0; y < size; y++) {
- const row = y * (size * 4 + 1);
- for (let x = 0; x < size; x++) {
- // Supersample each pixel so the edge is smooth at small sizes.
- let covered = 0;
- for (let sy = 0; sy < samples; sy++) {
- for (let sx = 0; sx < samples; sx++) {
- const dx = x + (sx + 0.5) / samples - center;
- const dy = y + (sy + 0.5) / samples - center;
- if (dx * dx + dy * dy <= radius * radius) covered++;
- }
- }
- const offset = row + 1 + x * 4;
- raw[offset] = r;
- raw[offset + 1] = g;
- raw[offset + 2] = b;
- raw[offset + 3] = Math.round((covered / (samples * samples)) * 255);
+
+const glyphs = {
+ ready: glyph({}),
+ working: glyph({ dashed: true }),
+ "needs-you": glyph({ badge: true }),
+ unavailable: glyph({ opacity: 0.4 }),
+};
+
+const favicon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><title>Gentle Dot</title>${glyph({}).replaceAll("#000", "#ff2d7a")}</svg>\n`;
+
+// ---------- App icon ----------
+// macOS icon grid: an 824 px squircle centered in 1024, leaving room for its shadow.
+function squircle(center, radius, exponent = 5, steps = 240) {
+ const points = [];
+ for (let i = 0; i < steps; i++) {
+ const t = (i / steps) * 2 * Math.PI;
+ const [c, s] = [Math.cos(t), Math.sin(t)];
+ const x = center + radius * Math.sign(c) * Math.abs(c) ** (2 / exponent);
+ const y = center + radius * Math.sign(s) * Math.abs(s) ** (2 / exponent);
+ points.push(`${x.toFixed(2)} ${y.toFixed(2)}`);
}
+ return `M${points.join("L")}Z`;
}
-function chunk(type, data) {
- const length = Buffer.alloc(4);
- length.writeUInt32BE(data.length);
- const body = Buffer.concat([Buffer.from(type, "ascii"), data]);
- const crc = Buffer.alloc(4);
- crc.writeUInt32BE(crc32(body));
- return Buffer.concat([length, body, crc]);
+const rose = readFileSync(brand("rose-source.png")).toString("base64");
+const shape = squircle(512, 412);
+const art = 758; // the rose fills 92% of the squircle, as on the sheet
+const appIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
+<defs>
+ <radialGradient id="bg" cx="50%" cy="40%" r="62%"><stop offset="0" stop-color="#1a0a12"/><stop offset="0.75" stop-color="#050506"/></radialGradient>
+ <clipPath id="clip"><path d="${shape}"/></clipPath>
+ <filter id="shadow" x="-20%" y="-20%" width="140%" height="140%"><feDropShadow dx="0" dy="12" stdDeviation="14" flood-color="#000" flood-opacity="0.5"/></filter>
+</defs>
+<path d="${shape}" fill="url(#bg)" filter="url(#shadow)"/>
+<g clip-path="url(#clip)">
+ <image href="data:image/png;base64,${rose}" x="${512 - art / 2}" y="${512 - art / 2}" width="${art}" height="${art}" style="mix-blend-mode: screen"/>
+ <path d="${shape}" transform="translate(0 4)" fill="none" stroke="rgba(255,255,255,0.10)" stroke-width="4"/>
+ <path d="${shape}" fill="none" stroke="rgba(255,45,122,0.22)" stroke-width="8"/>
+</g>
+</svg>`;
+
+// ---------- Render ----------
+const browser = await chromium.launch();
+const page = await browser.newPage({ deviceScaleFactor: 1 });
+
+async function render(svg, size, out) {
+ await page.setContent(`<body style="margin:0;background:transparent">${svg}</body>`);
+ await page.locator("svg").evaluate((el, s) => {
+ el.setAttribute("width", s);
+ el.setAttribute("height", s);
+ }, size);
+ await page.locator("svg").screenshot({ path: out, omitBackground: true });
+ console.log(`wrote ${out} (${size}px)`);
}
-const header = Buffer.alloc(13);
-header.writeUInt32BE(size, 0);
-header.writeUInt32BE(size, 4);
-header[8] = 8; // bit depth
-header[9] = 6; // color type: RGBA
-writeFileSync(
- out,
- Buffer.concat([
- Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]),
- chunk("IHDR", header),
- chunk("IDAT", deflateSync(raw)),
- chunk("IEND", Buffer.alloc(0)),
- ]),
-);
-console.log(`wrote ${out} (${size}x${size}, ${hex})`);
+await mkdir(path("../src-tauri/icons/tray"), { recursive: true });
+for (const [name, body] of Object.entries(glyphs)) {
+ const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">${body}</svg>`;
+ await render(svg, 18, path(`../src-tauri/icons/tray/${name}.png`));
+ await render(svg, 36, path(`../src-tauri/icons/tray/${name}@2x.png`));
+}
+await render(appIcon, 1024, path("../src-tauri/icons/source.png"));
+writeFileSync(path("../../../packages/ui/public/favicon.svg"), favicon);
+await render(favicon, 64, path("../../../packages/ui/public/favicon.png"));
+await browser.close();
diff --git a/apps/desktop/src-tauri/icons/128x128.png b/apps/desktop/src-tauri/icons/128x128.png
index bae10e9..692da23 100644
Binary files a/apps/desktop/src-tauri/icons/128x128.png and b/apps/desktop/src-tauri/icons/128x128.png differ
diff --git a/apps/desktop/src-tauri/icons/[email protected] b/apps/desktop/src-tauri/icons/[email protected]
index 04bb9e0..21eef0d 100644
Binary files a/apps/desktop/src-tauri/icons/[email protected] and b/apps/desktop/src-tauri/icons/[email protected] differ
diff --git a/apps/desktop/src-tauri/icons/32x32.png b/apps/desktop/src-tauri/icons/32x32.png
index d183185..a2f93fc 100644
Binary files a/apps/desktop/src-tauri/icons/32x32.png and b/apps/desktop/src-tauri/icons/32x32.png differ
diff --git a/apps/desktop/src-tauri/icons/64x64.png b/apps/desktop/src-tauri/icons/64x64.png
index d536042..c04ec63 100644
Binary files a/apps/desktop/src-tauri/icons/64x64.png and b/apps/desktop/src-tauri/icons/64x64.png differ
diff --git a/apps/desktop/src-tauri/icons/icon.icns b/apps/desktop/src-tauri/icons/icon.icns
index 01729ed..5569644 100644
Binary files a/apps/desktop/src-tauri/icons/icon.icns and b/apps/desktop/src-tauri/icons/icon.icns differ
diff --git a/apps/desktop/src-tauri/icons/icon.png b/apps/desktop/src-tauri/icons/icon.png
index 58528bb..004b8c0 100644
Binary files a/apps/desktop/src-tauri/icons/icon.png and b/apps/desktop/src-tauri/icons/icon.png differ
diff --git a/apps/desktop/src-tauri/icons/source.png b/apps/desktop/src-tauri/icons/source.png
index 647b4da..ab07875 100644
Binary files a/apps/desktop/src-tauri/icons/source.png and b/apps/desktop/src-tauri/icons/source.png differ
diff --git a/apps/desktop/src-tauri/icons/tray.png b/apps/desktop/src-tauri/icons/tray.png
deleted file mode 100644
index a9f3b6b..0000000
Binary files a/apps/desktop/src-tauri/icons/tray.png and /dev/null differ
diff --git a/apps/desktop/src-tauri/icons/tray/needs-you.png b/apps/desktop/src-tauri/icons/tray/needs-you.png
new file mode 100644
index 0000000..58aa107
Binary files /dev/null and b/apps/desktop/src-tauri/icons/tray/needs-you.png differ
diff --git a/apps/desktop/src-tauri/icons/tray/[email protected] b/apps/desktop/src-tauri/icons/tray/[email protected]
new file mode 100644
index 0000000..7f5f938
Binary files /dev/null and b/apps/desktop/src-tauri/icons/tray/[email protected] differ
diff --git a/apps/desktop/src-tauri/icons/tray/ready.png b/apps/desktop/src-tauri/icons/tray/ready.png
new file mode 100644
index 0000000..0291452
Binary files /dev/null and b/apps/desktop/src-tauri/icons/tray/ready.png differ
diff --git a/apps/desktop/src-tauri/icons/tray/[email protected] b/apps/desktop/src-tauri/icons/tray/[email protected]
new file mode 100644
index 0000000..1d1393d
Binary files /dev/null and b/apps/desktop/src-tauri/icons/tray/[email protected] differ
diff --git a/apps/desktop/src-tauri/icons/tray/unavailable.png b/apps/desktop/src-tauri/icons/tray/unavailable.png
new file mode 100644
index 0000000..2b548ef
Binary files /dev/null and b/apps/desktop/src-tauri/icons/tray/unavailable.png differ
diff --git a/apps/desktop/src-tauri/icons/tray/[email protected] b/apps/desktop/src-tauri/icons/tray/[email protected]
new file mode 100644
index 0000000..2354e2d
Binary files /dev/null and b/apps/desktop/src-tauri/icons/tray/[email protected] differ
diff --git a/apps/desktop/src-tauri/icons/tray/working.png b/apps/desktop/src-tauri/icons/tray/working.png
new file mode 100644
index 0000000..f3730ec
Binary files /dev/null and b/apps/desktop/src-tauri/icons/tray/working.png differ
diff --git a/apps/desktop/src-tauri/icons/tray/[email protected] b/apps/desktop/src-tauri/icons/tray/[email protected]
new file mode 100644
index 0000000..7c7747b
Binary files /dev/null and b/apps/desktop/src-tauri/icons/tray/[email protected] differ
diff --git a/apps/desktop/src-tauri/src/geometry.rs b/apps/desktop/src-tauri/src/geometry.rs
index 02f0a53..1417e6e 100644
--- a/apps/desktop/src-tauri/src/geometry.rs
+++ b/apps/desktop/src-tauri/src/geometry.rs
@@ -83,6 +83,22 @@ pub fn default_dot_position(monitor: Rect, size: (i32, i32), margin: i32) -> (i3
(monitor.right() - size.0 - margin, monitor.y + (monitor.height - size.1) / 2)
}
+/// Where the Dot starts: the saved position re-snapped to the current monitors
+/// (they may have changed since it was saved), or the right edge of the
+/// primary work area. `size` is the Dot's real window size.
+pub fn initial_dot_position(
+ saved: Option<(i32, i32)>,
+ size: (i32, i32),
+ monitors: &[Rect],
+ primary: Option<Rect>,
+ margin: i32,
+) -> Option<(i32, i32)> {
+ match saved {
+ Some((x, y)) if !monitors.is_empty() => Some(snap_to_edge(Rect::new(x, y, size.0, size.1), monitors, margin)),
+ _ => primary.map(|work| default_dot_position(work, size, margin)),
+ }
+}
+
/// Places the panel beside the Dot on the side with more room, vertically
/// centered on the Dot, and clamped inside the monitor.
pub fn place_panel(dot: Rect, panel: (i32, i32), monitor: Rect, gap: i32, margin: i32) -> (i32, i32) {
@@ -153,6 +169,33 @@ mod tests {
assert_eq!(default_dot_position(Rect::new(1920, -200, 2560, 1440), (112, 112), 24), (4344, 464));
}
+ /// The rose window is taller than wide: 64 × 84 pt, here at 2× scale.
+ fn rose(x: i32, y: i32) -> Rect {
+ Rect::new(x, y, 128, 168)
+ }
+
+ #[test]
+ fn snaps_a_tall_window_by_its_real_size() {
+ assert_eq!(snap_to_edge(rose(1700, 500), &[SCREEN], 24), (1768, 500));
+ assert_eq!(snap_to_edge(rose(900, 900), &[SCREEN], 24), (900, 888));
+ assert_eq!(snap_to_edge(rose(1850, 1000), &[SCREEN], 24), (1768, 888));
+ }
+
+ #[test]
+ fn initial_position_restores_the_saved_spot_with_the_real_size() {
+ // Saved near the bottom-right corner: the full 168 px height stays on screen.
+ assert_eq!(initial_dot_position(Some((1768, 1000)), (128, 168), &[SCREEN], Some(SCREEN), 24), Some((1768, 888)));
+ assert_eq!(initial_dot_position(Some((24, 300)), (128, 168), &[SCREEN], Some(SCREEN), 24), Some((24, 300)));
+ }
+
+ #[test]
+ fn initial_position_defaults_to_the_primary_right_edge() {
+ assert_eq!(initial_dot_position(None, (128, 168), &[SCREEN], Some(SCREEN), 24), Some((1768, 456)));
+ // Without monitor information the saved spot cannot be checked, so use the primary monitor.
+ assert_eq!(initial_dot_position(Some((5, 5)), (128, 168), &[], Some(SCREEN), 24), Some((1768, 456)));
+ assert_eq!(initial_dot_position(None, (128, 168), &[], None, 24), None);
+ }
+
#[test]
fn panel_opens_toward_the_side_with_more_room() {
assert_eq!(place_panel(dot(1852, 500), (420, 640), SCREEN, 8, 12), (1424, 208));
diff --git a/apps/desktop/src-tauri/src/shell.rs b/apps/desktop/src-tauri/src/shell.rs
index d455e5d..9ef3a70 100644
--- a/apps/desktop/src-tauri/src/shell.rs
+++ b/apps/desktop/src-tauri/src/shell.rs
@@ -5,7 +5,7 @@ use crate::config::{self, ConnectionInfo, DesktopConfig, DEFAULT_SHORTCUT};
use crate::daemon::{Daemon, RestartOutcome};
use crate::geometry::{self, Rect};
use crate::position::{self, DotPosition};
-use crate::status::tray_status;
+use crate::status::{tray_status, TrayGlyph};
use std::sync::{mpsc, Arc};
use std::thread;
use std::time::Duration;
@@ -25,7 +25,8 @@ use tauri_plugin_opener::OpenerExt;
const DOT: &str = "dot";
const PANEL: &str = "panel";
const TRAY: &str = "main";
-const DOT_SIZE: f64 = 56.0;
+/// The rose window, in logical pixels: the rose's aspect (860 × 1130 crop).
+const DOT_SIZE: (f64, f64) = (64.0, 84.0);
const PANEL_SIZE: (f64, f64) = (420.0, 640.0);
const EDGE_MARGIN: f64 = 12.0;
const PANEL_GAP: f64 = 8.0;
@@ -87,7 +88,8 @@ fn set_dot_state(app: AppHandle, state: String) -> CommandResult {
let status = tray_status(&state).ok_or_else(|| format!("unknown state `{state}`"))?;
let tray = app.tray_by_id(TRAY).ok_or("tray icon is missing")?;
tray.set_tooltip(Some(&status.tooltip)).map_err(err)?;
- tray.set_title((!status.title.is_empty()).then_some(status.title)).map_err(err)
+ tray.set_icon(Some(Image::from_bytes(status.glyph.png()).map_err(err)?)).map_err(err)?;
+ tray.set_icon_as_template(true).map_err(err)
}
fn rect_of(window: &WebviewWindow) -> CommandResult<Rect> {
@@ -176,7 +178,7 @@ fn spawn_snapper(app: AppHandle) -> mpsc::Sender<()> {
fn build_windows(app: &AppHandle, config: &DesktopConfig) -> tauri::Result<()> {
let dot = WebviewWindowBuilder::new(app, DOT, WebviewUrl::App("index.html?surface=dot".into()))
.title("Gentle Dot")
- .inner_size(DOT_SIZE, DOT_SIZE)
+ .inner_size(DOT_SIZE.0, DOT_SIZE.1)
.transparent(true)
.decorations(false)
.always_on_top(true)
@@ -202,17 +204,15 @@ fn build_windows(app: &AppHandle, config: &DesktopConfig) -> tauri::Result<()> {
// Restore the saved position (re-snapped in case the monitors changed), or
// default to the right edge of the primary monitor, vertically centered.
let monitors = monitor_rects(&dot).unwrap_or_default();
- let size = scaled(&dot, DOT_SIZE);
- let margin = scaled(&dot, EDGE_MARGIN);
- let saved = position::load(&config.data_dir.join("desktop.json"));
- let target = match (saved, monitors.is_empty()) {
- (Some(p), false) => Some(geometry::snap_to_edge(Rect::new(p.x, p.y, size, size), &monitors, margin)),
- _ => app.primary_monitor()?.map(|m| {
- let area = m.work_area();
- let work = Rect::new(area.position.x, area.position.y, area.size.width as i32, area.size.height as i32);
- geometry::default_dot_position(work, (size, size), margin)
- }),
- };
+ // The real window size, so a tall rose snapped to the bottom edge stays fully on screen.
+ let fallback = (scaled(&dot, DOT_SIZE.0), scaled(&dot, DOT_SIZE.1));
+ let size = rect_of(&dot).map(|r| (r.width, r.height)).unwrap_or(fallback);
+ let primary = app.primary_monitor()?.map(|m| {
+ let area = m.work_area();
+ Rect::new(area.position.x, area.position.y, area.size.width as i32, area.size.height as i32)
+ });
+ let saved = position::load(&config.data_dir.join("desktop.json")).map(|p| (p.x, p.y));
+ let target = geometry::initial_dot_position(saved, size, &monitors, primary, scaled(&dot, EDGE_MARGIN));
if let Some((x, y)) = target {
dot.set_position(PhysicalPosition::new(x, y))?;
}
@@ -239,7 +239,7 @@ fn build_tray(app: &AppHandle, config: &DesktopConfig) -> tauri::Result<TrayIcon
],
)?;
TrayIconBuilder::with_id(TRAY)
- .icon(Image::from_bytes(include_bytes!("../icons/tray.png"))?)
+ .icon(Image::from_bytes(TrayGlyph::Unavailable.png())?)
.icon_as_template(true)
.tooltip("Gentle Dot")
.menu(&menu)
diff --git a/apps/desktop/src-tauri/src/status.rs b/apps/desktop/src-tauri/src/status.rs
index 90297cd..f4a2951 100644
--- a/apps/desktop/src-tauri/src/status.rs
+++ b/apps/desktop/src-tauri/src/status.rs
@@ -1,25 +1,49 @@
-//! Menu bar tooltip and title marker for each `AgentState` (protocol v1).
+//! Menu bar tooltip and glyph for each `AgentState` (protocol v1).
+
+/// The menu bar rose (`docs/brand/rose-glyph.svg`), one template image per
+/// state family. The PNGs are 36 px, drawn at 18 pt on Retina menu bars, and
+/// rendered by `apps/desktop/scripts/render-icons.mjs`.
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum TrayGlyph {
+ Ready,
+ /// Dashed outer petals.
+ Working,
+ /// A filled badge dot at the top right.
+ NeedsYou,
+ /// Dimmed.
+ Unavailable,
+}
+
+impl TrayGlyph {
+ pub fn png(self) -> &'static [u8] {
+ match self {
+ Self::Ready => include_bytes!("../icons/tray/[email protected]"),
+ Self::Working => include_bytes!("../icons/tray/[email protected]"),
+ Self::NeedsYou => include_bytes!("../icons/tray/[email protected]"),
+ Self::Unavailable => include_bytes!("../icons/tray/[email protected]"),
+ }
+ }
+}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct TrayStatus {
pub tooltip: String,
- /// Short text shown next to the menu bar icon; empty when idle.
- pub title: &'static str,
+ pub glyph: TrayGlyph,
}
/// `None` for a state the protocol does not define.
pub fn tray_status(state: &str) -> Option<TrayStatus> {
- let (label, title) = match state {
- "starting" => ("Starting", "◌"),
- "idle" => ("Ready", ""),
- "thinking" => ("Thinking", "•"),
- "working" => ("Working", "•"),
- "needs_you" => ("Needs you", "!"),
- "restarting" => ("Restarting", "◌"),
- "error" => ("Error", "×"),
+ let (label, glyph) = match state {
+ "starting" => ("Starting", TrayGlyph::Unavailable),
+ "idle" => ("Ready", TrayGlyph::Ready),
+ "thinking" => ("Thinking", TrayGlyph::Working),
+ "working" => ("Working", TrayGlyph::Working),
+ "needs_you" => ("Needs you", TrayGlyph::NeedsYou),
+ "restarting" => ("Restarting", TrayGlyph::Unavailable),
+ "error" => ("Error", TrayGlyph::Unavailable),
_ => return None,
};
- Some(TrayStatus { tooltip: format!("Gentle Dot — {label}"), title })
+ Some(TrayStatus { tooltip: format!("Gentle Dot — {label}"), glyph })
}
#[cfg(test)]
@@ -29,18 +53,50 @@ mod tests {
#[test]
fn maps_every_agent_state() {
let cases = [
- ("starting", "Starting", "◌"),
- ("idle", "Ready", ""),
- ("thinking", "Thinking", "•"),
- ("working", "Working", "•"),
- ("needs_you", "Needs you", "!"),
- ("restarting", "Restarting", "◌"),
- ("error", "Error", "×"),
+ ("starting", "Starting"),
+ ("idle", "Ready"),
+ ("thinking", "Thinking"),
+ ("working", "Working"),
+ ("needs_you", "Needs you"),
+ ("restarting", "Restarting"),
+ ("error", "Error"),
];
- for (state, label, title) in cases {
- let status = tray_status(state).unwrap();
- assert_eq!(status.tooltip, format!("Gentle Dot — {label}"), "{state}");
- assert_eq!(status.title, title, "{state}");
+ for (state, label) in cases {
+ assert_eq!(tray_status(state).unwrap().tooltip, format!("Gentle Dot — {label}"), "{state}");
+ }
+ }
+
+ #[test]
+ fn picks_a_menu_bar_glyph_for_every_agent_state() {
+ let cases = [
+ ("starting", TrayGlyph::Unavailable),
+ ("idle", TrayGlyph::Ready),
+ ("thinking", TrayGlyph::Working),
+ ("working", TrayGlyph::Working),
+ ("needs_you", TrayGlyph::NeedsYou),
+ ("restarting", TrayGlyph::Unavailable),
+ ("error", TrayGlyph::Unavailable),
+ ];
+ for (state, glyph) in cases {
+ assert_eq!(tray_status(state).unwrap().glyph, glyph, "{state}");
+ }
+ }
+
+ #[test]
+ fn every_glyph_is_a_36_px_png_for_the_18_pt_menu_bar() {
+ let glyphs = [TrayGlyph::Ready, TrayGlyph::Working, TrayGlyph::NeedsYou, TrayGlyph::Unavailable];
+ for glyph in glyphs {
+ let png = glyph.png();
+ assert_eq!(&png[..8], b"\x89PNG\r\n\x1a\n", "{glyph:?}");
+ let width = u32::from_be_bytes(png[16..20].try_into().unwrap());
+ let height = u32::from_be_bytes(png[20..24].try_into().unwrap());
+ assert_eq!((width, height), (36, 36), "{glyph:?}");
+ }
+ // Each state has its own image.
+ for (i, a) in glyphs.iter().enumerate() {
+ for b in &glyphs[i + 1..] {
+ assert_ne!(a.png(), b.png(), "{a:?} and {b:?}");
+ }
}
}
diff --git a/docs/brand/tools/build-rose-strokes.mjs b/docs/brand/tools/build-rose-strokes.mjs
new file mode 100644
index 0000000..9ba0d46
--- /dev/null
+++ b/docs/brand/tools/build-rose-strokes.mjs
@@ -0,0 +1,44 @@
+// Builds packages/ui/src/rose/strokes.ts from rose-lines.svg (traced by trace_rose.py): every
+// traced stroke and sparkle, longest stroke first, for the Dot's inline SVG rose.
+// Usage: node docs/brand/tools/build-rose-strokes.mjs
+import { readFileSync, writeFileSync } from "node:fs";
+import { fileURLToPath } from "node:url";
+
+const here = (path) => fileURLToPath(new URL(path, import.meta.url));
+const svg = readFileSync(here("../rose-lines.svg"), "utf8");
+const strokes = [...svg.matchAll(/<path data-length="(\d+)" d="([^"]+)"\/>/g)]
+ .map((m) => ({ length: Number(m[1]), d: m[2] }))
+ .sort((a, b) => b.length - a.length);
+const sparkles = [...svg.matchAll(/<circle cx="([\d.]+)" cy="([\d.]+)" r="([\d.]+)"\/>/g)].map((m) =>
+ m.slice(1, 4).map(Number),
+);
+
+// The sheet's crop (rose-design.html): the flower with room for its glow.
+const viewBox = "200 60 860 1130";
+
+const ts = `// Generated by docs/brand/tools/build-rose-strokes.mjs from docs/brand/rose-lines.svg. Do not edit.
+
+/** A traced centerline of the neon rose; \`length\` is in source pixels (1254 × 1254). */
+export interface RoseStroke {
+ length: number;
+ d: string;
+}
+
+/** The crop that holds the whole rose, in source pixels. */
+export const ROSE_VIEWBOX = "${viewBox}";
+
+/** Every traced stroke, longest first. */
+// biome-ignore format: generated
+export const ROSE_STROKES: readonly RoseStroke[] = [
+${strokes.map(({ length, d }) => `\t{ length: ${length}, d: "${d}" },`).join("\n")}
+];
+
+/** Sparkles around the rose as [cx, cy, r]. */
+// biome-ignore format: generated
+export const ROSE_SPARKLES: readonly (readonly [number, number, number])[] = [
+${sparkles.map((c) => `\t[${c.join(", ")}],`).join("\n")}
+];
+`;
+writeFileSync(here("../../../packages/ui/src/rose/strokes.ts"), ts);
+
+console.log(`strokes=${strokes.length} sparkles=${sparkles.length}`);
diff --git a/docs/design.md b/docs/design.md
index 9f13fd9..1c99ef7 100644
--- a/docs/design.md
+++ b/docs/design.md
@@ -129,13 +129,16 @@ Every daemon message carries `seq` (monotonic per connection) so the UI can dete
### The Dot (collapsed)
-- A 56 px circular orb, always on top, draggable, snaps to the nearest screen edge; position is persisted.
-- The state is shown by motion and color:
- - `idle`: slow breathing glow
- - `thinking`: orbiting particle
- - `working`: steady pulse with a small kind icon
- - `needs_you`: amber ring with a badge
- - `restarting` and `error`: grey and red ring
+- Our neon rose, 64 × 84 px, in a transparent window: no circle, no container. It is always on top, draggable, snaps to the nearest screen edge, and its position is persisted. Design sheet: `docs/brand/rose-design.html`.
+- The rose is inline SVG built from the 178 strokes traced from the logo (`docs/brand/rose-lines.svg` → `packages/ui/src/rose/strokes.ts`, generated by `docs/brand/tools/build-rose-strokes.mjs`). The strokes carry the glow (`#FF2D7A` neon, `#FFD6E8` light core), and a light layer on the 60 longest strokes travels along them.
+- The state is shown by motion and glow:
+ - `idle`: the outline breathes a soft glow; sparkles twinkle
+ - `thinking`: one slow light runs along each stroke
+ - `working`: fast lights race through petals, leaves, and stem
+ - `needs_you`: the rose pulses brighter, with an amber `!` badge
+ - `starting` and `restarting`: dim grey rose with one faint light tracing
+ - `error` (unavailable): dim and still
+- Only `stroke-dashoffset`, `opacity`, and `filter` animate. With "Reduce motion", nothing moves: the light layer is hidden and the glow stays (stronger while working or waiting for the user).
- Click, the global shortcut `⌥ Space`, or the menu bar item expands it.
### The panel (expanded)
@@ -149,7 +152,7 @@ Every daemon message carries `seq` (monotonic per connection) so the UI can dete
### Menu bar
-- Template icon with a state dot.
+- Template icon: the hand-drawn rose glyph (`docs/brand/rose-glyph.svg`), with one variant per state: ready, working (dashed outer petals; also used while thinking), needs you (a filled badge dot), and unavailable (dimmed; starting, restarting, and error).
- Menu: Open (`⌥ Space`), New conversation, Open in browser, Restart assistant, Launch at login (toggle), Quit.
### Web
@@ -191,7 +194,7 @@ The desktop app bundles the built UI (`packages/ui/dist/app`) as its frontend, s
| Label | Size | URL | Properties |
|---|---|---|---|
-| `dot` | 56 × 56 | `index.html?surface=dot` | transparent, no decorations, always on top, not resizable, skip taskbar, visible on all workspaces, shadow off |
+| `dot` | 64 × 84 (the rose's aspect) | `index.html?surface=dot` | transparent, no decorations, always on top, not resizable, skip taskbar, visible on all workspaces, shadow off |
| `panel` | 420 × 640 | `index.html?surface=panel` | transparent with macOS vibrancy (`HudWindow`), no decorations, always on top, hidden at start, skip taskbar |
When the panel opens, it is placed next to the Dot on the side with more room, and it stays inside the monitor.
@@ -203,9 +206,9 @@ When the panel opens, it is placed next to the Dot on the side with more room, a
| `connection_info` | — | `{ "url": "ws://127.0.0.1:<port>/ws", "token": "…", "webUrl": "http://127.0.0.1:<port>/#token=…" }`, read from `~/.gentle-dot/config.json` and `~/.gentle-dot/token` |
| `toggle_panel` | — | shows and focuses the panel next to the Dot, or hides it |
| `hide_panel` | — | hides the panel |
-| `set_dot_state` | `{ "state": AgentState }` | updates the tray icon tooltip and title marker |
+| `set_dot_state` | `{ "state": AgentState }` | updates the tray tooltip and swaps the tray glyph for the state |
-The Dot drags with `getCurrentWindow().startDragging()` (permission `core:window:allow-start-dragging`). After a drag ends (no move events for 300 ms), Rust snaps the Dot to the nearest monitor edge with a 12 px margin and saves the position in `~/.gentle-dot/desktop.json`; the next launch restores it, or defaults to the right edge, vertically centered.
+The Dot drags with `getCurrentWindow().startDragging()` (permission `core:window:allow-start-dragging`). After a drag ends (no move events for 300 ms), Rust snaps the Dot, by its real window size, to the nearest monitor edge with a 12 px margin and saves the position in `~/.gentle-dot/desktop.json`; the next launch restores it, or defaults to the right edge, vertically centered.
### Events Rust emits to the UI (`@tauri-apps/api/event` `listen`)
diff --git a/packages/ui/index.html b/packages/ui/index.html
index 82f7a29..22882b9 100644
--- a/packages/ui/index.html
+++ b/packages/ui/index.html
@@ -4,6 +4,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Gentle Dot</title>
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="icon" type="image/png" sizes="64x64" href="/favicon.png" />
</head>
<body>
<div id="root"></div>
diff --git a/packages/ui/public/favicon.png b/packages/ui/public/favicon.png
new file mode 100644
index 0000000..fe244d5
Binary files /dev/null and b/packages/ui/public/favicon.png differ
diff --git a/packages/ui/public/favicon.svg b/packages/ui/public/favicon.svg
new file mode 100644
index 0000000..8455f5d
--- /dev/null
+++ b/packages/ui/public/favicon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><title>Gentle Dot</title><g opacity="1" fill="none" stroke="#ff2d7a" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"><path d="M6.6 11.1C4.2 10.3 3 8.3 3.1 5.3L5.4 6.5"/><path d="M11.4 11.1C13.8 10.3 15 8.3 14.9 5.3L12.6 6.5"/><path d="M5.4 6.5C5.5 3.9 7.1 2.5 9 2.5S12.5 3.9 12.6 6.5"/><path d="M5.4 6.5C5.8 9.6 7.2 11.2 9 11.6C10.8 11.2 12.2 9.6 12.6 6.5"/><path d="M9.05 8.7C7.7 8.7 7.2 7.3 7.9 6.5C8.6 5.8 9.9 6 10.1 6.95C10.25 7.6 9.7 8 9.15 7.8"/><path d="M9 11.6C9 13.6 8.6 15.1 7.5 16.6"/><path d="M8.85 13.7C10.1 12.6 12.2 12.6 13.1 13.5C12 14.6 10.2 14.7 8.85 13.7Z"/></g></svg>
diff --git a/packages/ui/src/components/DotSurface.tsx b/packages/ui/src/components/DotSurface.tsx
index 79991d6..b0f3a78 100644
--- a/packages/ui/src/components/DotSurface.tsx
+++ b/packages/ui/src/components/DotSurface.tsx
@@ -1,5 +1,6 @@
import type { AgentState } from "@gentle-dot/protocol";
import { useRef } from "react";
+import { Rose, type RoseMood } from "../rose/Rose.tsx";
const LABELS: Record<AgentState, string> = {
starting: "starting",
@@ -11,6 +12,16 @@ const LABELS: Record<AgentState, string> = {
error: "unavailable",
};
+const MOODS: Record<AgentState, RoseMood> = {
+ starting: "restarting",
+ idle: "idle",
+ thinking: "thinking",
+ working: "working",
+ needs_you: "needs",
+ restarting: "restarting",
+ error: "offline",
+};
+
const DRAG_THRESHOLD_PX = 3;
interface DotSurfaceProps {
@@ -20,7 +31,7 @@ interface DotSurfaceProps {
startDrag: () => void;
}
-/** The collapsed, always-on-top orb. A click opens the panel; a drag moves the window. */
+/** The collapsed, always-on-top rose. A click opens the panel; a drag moves the window. */
export function DotSurface({ agentState, connected, toggle, startDrag }: DotSurfaceProps) {
const press = useRef<{ x: number; y: number; dragging: boolean } | undefined>(undefined);
const state = connected ? agentState : "restarting";
@@ -54,8 +65,7 @@ export function DotSurface({ agentState, connected, toggle, startDrag }: DotSurf
}
}}
>
- <span className="dot-core" aria-hidden="true" />
- <span className="dot-orbit" aria-hidden="true" />
+ <Rose mood={MOODS[state]} />
{state === "needs_you" ? (
<span className="dot-badge" aria-hidden="true">
!
diff --git a/packages/ui/src/rose/Rose.tsx b/packages/ui/src/rose/Rose.tsx
new file mode 100644
index 0000000..03940f1
--- /dev/null
+++ b/packages/ui/src/rose/Rose.tsx
@@ -0,0 +1,48 @@
+import type { CSSProperties } from "react";
+import { ROSE_SPARKLES, ROSE_STROKES, ROSE_VIEWBOX } from "./strokes.ts";
+
+/** How the rose looks (design sheet `docs/brand/rose-design.html`). */
+export type RoseMood = "idle" | "thinking" | "working" | "needs" | "restarting" | "offline";
+
+/**
+ * Strokes that carry the traveling light. In the 64 px Dot one screen pixel is
+ * about 13 source pixels, so only the 60 longest strokes (50 source px and up,
+ * 57% of the drawing) are long enough to show a moving light; the rest would
+ * flicker as dots. The outline always draws all 178 strokes, which stay static.
+ */
+export const DOT_LIGHT_STROKES = 60;
+
+const outline = ROSE_STROKES.map(({ d }) => <path key={d} d={d} />);
+
+const lights = ROSE_STROKES.slice(0, DOT_LIGHT_STROKES).map(({ d, length }, i) => {
+ // Longer strokes take longer to travel, so the light moves at a similar speed everywhere.
+ const duration = Math.min(4.2, Math.max(1.1, length / 120)).toFixed(2);
+ const style = { "--i": i, "--d": `${duration}s` } as CSSProperties;
+ return <path key={d} d={d} pathLength={1} style={style} />;
+});
+
+const sparkles = ROSE_SPARKLES.map(([cx, cy, r], i) => (
+ <circle key={`${cx},${cy}`} cx={cx} cy={cy} r={r} style={{ "--i": i } as CSSProperties} />
+));
+
+/**
+ * The neon rose: a glowing outline, a light layer, and sparkles, stacked as
+ * three inline SVGs. Each layer is its own SVG root because WebKit (the macOS
+ * webview) ignores CSS filters on elements inside an SVG, so the glow must
+ * sit on an outer `<svg>` box.
+ */
+export function Rose({ mood }: { mood: RoseMood }) {
+ return (
+ <span className={`rose rose-${mood}`} aria-hidden="true">
+ <svg className="rose-base" viewBox={ROSE_VIEWBOX} aria-hidden="true" focusable="false">
+ {outline}
+ </svg>
+ <svg className="rose-light" viewBox={ROSE_VIEWBOX} aria-hidden="true" focusable="false">
+ {lights}
+ </svg>
+ <svg className="rose-sparkles" viewBox={ROSE_VIEWBOX} aria-hidden="true" focusable="false">
+ {sparkles}
+ </svg>
+ </span>
+ );
+}
diff --git a/packages/ui/src/rose/strokes.ts b/packages/ui/src/rose/strokes.ts
new file mode 100644
index 0000000..378bc64
--- /dev/null
+++ b/packages/ui/src/rose/strokes.ts
@@ -0,0 +1,243 @@
+// Generated by docs/brand/tools/build-rose-strokes.mjs from docs/brand/rose-lines.svg. Do not edit.
+
+/** A traced centerline of the neon rose; `length` is in source pixels (1254 × 1254). */
+export interface RoseStroke {
+ length: number;
+ d: string;
+}
+
+/** The crop that holds the whole rose, in source pixels. */
+export const ROSE_VIEWBOX = "200 60 860 1130";
+
+/** Every traced stroke, longest first. */
+// biome-ignore format: generated
+export const ROSE_STROKES: readonly RoseStroke[] = [
+ { length: 239, d: "M670.0 705.0Q665.0 687.0 659.5 675.5Q654.0 664.0 652.0 661.0Q650.0 658.0 641.0 649.0Q632.0 640.0 617.0 631.0Q602.0 622.0 595.5 619.5Q589.0 617.0 583.5 616.5Q578.0 616.0 574.0 614.5Q570.0 613.0 565.5 610.0Q561.0 607.0 547.0 601.5Q533.0 596.0 530.5 593.5Q528.0 591.0 521.5 588.0Q515.0 585.0 509.0 578.5Q503.0 572.0 500.5 568.0Q498.0 564.0 491.5 558.0Q485.0 552.0 481.5 546.0Q478.0 540.0 477.5 536.0L477.0 532.0" },
+ { length: 233, d: "M631.0 888.0Q630.0 884.0 633.5 877.0Q637.0 870.0 640.5 851.0Q644.0 832.0 643.5 829.0Q643.0 826.0 644.5 816.5Q646.0 807.0 645.5 795.5Q645.0 784.0 646.0 769.5Q647.0 755.0 646.0 754.0Q645.0 753.0 644.5 744.0Q644.0 735.0 642.0 728.5Q640.0 722.0 640.0 718.5Q640.0 715.0 634.0 700.5Q628.0 686.0 621.0 672.5Q614.0 659.0 614.0 657.5L614.0 656.0" },
+ { length: 180, d: "M780.0 941.0Q775.0 939.0 732.5 939.0Q690.0 939.0 656.0 969.0Q622.0 999.0 612.5 1006.5Q603.0 1014.0 602.0 1014.0L601.0 1014.0" },
+ { length: 133, d: "M525.0 1060.0Q558.0 1017.0 560.0 1015.5Q562.0 1014.0 572.5 999.5Q583.0 985.0 595.0 965.0Q607.0 945.0 609.5 939.0Q612.0 933.0 612.0 931.0L612.0 929.0" },
+ { length: 127, d: "M672.0 811.0Q672.0 824.0 670.5 828.0Q669.0 832.0 668.0 842.5Q667.0 853.0 663.5 866.5Q660.0 880.0 660.0 883.5Q660.0 887.0 655.5 900.0Q651.0 913.0 645.0 925.0L639.0 937.0" },
+ { length: 124, d: "M683.0 649.0Q683.0 607.0 677.5 594.0Q672.0 581.0 669.5 577.5Q667.0 574.0 656.0 563.5Q645.0 553.0 637.5 549.5Q630.0 546.0 627.5 543.5Q625.0 541.0 622.5 540.5L620.0 540.0" },
+ { length: 113, d: "M545.0 295.0Q549.0 298.0 552.5 306.5Q556.0 315.0 561.0 322.0Q566.0 329.0 578.0 340.0Q590.0 351.0 607.0 362.0Q624.0 373.0 631.0 379.5Q638.0 386.0 639.0 388.5L640.0 391.0" },
+ { length: 99, d: "M442.0 631.0Q455.0 640.0 460.0 640.5Q465.0 641.0 472.5 644.0Q480.0 647.0 481.0 646.5Q482.0 646.0 488.5 651.5Q495.0 657.0 500.0 660.0Q505.0 663.0 506.5 663.0Q508.0 663.0 512.5 669.5Q517.0 676.0 518.0 677.0Q519.0 678.0 523.5 679.0Q528.0 680.0 530.5 684.0L533.0 688.0" },
+ { length: 99, d: "M721.0 712.0Q718.0 719.0 711.0 726.5Q704.0 734.0 698.5 743.5Q693.0 753.0 688.0 764.0Q683.0 775.0 680.5 782.0Q678.0 789.0 676.5 797.5Q675.0 806.0 673.5 808.0L672.0 810.0" },
+ { length: 95, d: "M502.0 762.0Q502.0 755.0 500.0 751.0Q498.0 747.0 491.0 725.0Q484.0 703.0 484.0 698.5Q484.0 694.0 481.5 692.0Q479.0 690.0 473.0 679.5L467.0 669.0" },
+ { length: 94, d: "M410.0 790.0Q433.0 786.0 451.5 781.0Q470.0 776.0 482.5 775.5Q495.0 775.0 499.0 773.0L503.0 771.0" },
+ { length: 94, d: "M621.0 403.0Q608.0 409.0 596.5 418.0Q585.0 427.0 581.5 431.0Q578.0 435.0 570.0 448.0Q562.0 461.0 559.5 469.5Q557.0 478.0 557.0 481.0L557.0 484.0" },
+ { length: 91, d: "M677.0 710.0Q681.0 690.0 686.0 681.0Q691.0 672.0 705.0 657.0Q719.0 642.0 730.0 634.0L741.0 626.0" },
+ { length: 91, d: "M476.0 299.0Q471.0 293.0 470.5 289.5Q470.0 286.0 468.5 285.5Q467.0 285.0 465.5 283.0Q464.0 281.0 464.0 275.5Q464.0 270.0 462.0 266.5Q460.0 263.0 459.0 247.5Q458.0 232.0 459.0 230.0Q460.0 228.0 461.0 219.5L462.0 211.0" },
+ { length: 89, d: "M756.0 878.0Q752.0 882.0 745.5 882.0Q739.0 882.0 725.0 886.5Q711.0 891.0 705.5 895.0Q700.0 899.0 684.0 914.0L668.0 929.0" },
+ { length: 87, d: "M618.0 540.0Q608.0 542.0 586.5 538.0Q565.0 534.0 557.5 531.0Q550.0 528.0 541.0 520.0L532.0 512.0" },
+ { length: 87, d: "M773.0 294.0Q745.0 317.0 737.5 322.0Q730.0 327.0 715.0 341.5Q700.0 356.0 694.5 362.5L689.0 369.0" },
+ { length: 85, d: "M619.0 539.0Q614.0 532.0 608.5 530.5Q603.0 529.0 599.0 526.0Q595.0 523.0 588.5 521.5Q582.0 520.0 579.5 518.0Q577.0 516.0 568.5 513.0Q560.0 510.0 556.0 507.5Q552.0 505.0 544.5 503.5L537.0 502.0" },
+ { length: 83, d: "M584.0 766.0Q576.0 747.0 575.0 742.0Q574.0 737.0 570.5 733.0Q567.0 729.0 565.0 724.5Q563.0 720.0 558.5 716.5Q554.0 713.0 552.5 709.5Q551.0 706.0 548.5 704.0Q546.0 702.0 541.5 696.0Q537.0 690.0 535.5 689.5L534.0 689.0" },
+ { length: 79, d: "M597.0 1009.0Q624.0 971.0 644.0 952.0L664.0 933.0" },
+ { length: 79, d: "M519.0 360.0Q538.0 386.0 544.0 396.0Q550.0 406.0 553.5 413.0Q557.0 420.0 560.0 429.0L563.0 438.0" },
+ { length: 77, d: "M440.0 631.0Q420.0 631.0 418.5 630.0Q417.0 629.0 409.0 628.5Q401.0 628.0 399.5 627.0Q398.0 626.0 386.0 626.5Q374.0 627.0 372.0 628.0Q370.0 629.0 367.0 628.0L364.0 627.0" },
+ { length: 75, d: "M500.0 836.0Q496.0 836.0 494.5 837.5Q493.0 839.0 474.0 840.0Q455.0 841.0 448.5 840.0Q442.0 839.0 438.0 836.5Q434.0 834.0 430.0 834.0L426.0 834.0" },
+ { length: 74, d: "M828.0 859.0Q817.0 868.0 812.0 869.5Q807.0 871.0 803.0 874.0Q799.0 877.0 791.0 879.0Q783.0 881.0 769.5 879.5L756.0 878.0" },
+ { length: 73, d: "M531.0 511.0Q518.0 511.0 509.0 509.5Q500.0 508.0 493.5 505.5Q487.0 503.0 477.5 497.5Q468.0 492.0 463.5 491.5L459.0 491.0" },
+ { length: 73, d: "M554.0 802.0Q555.0 794.0 554.0 791.0Q553.0 788.0 550.0 763.0Q547.0 738.0 545.5 734.0L544.0 730.0" },
+ { length: 72, d: "M660.0 186.0Q652.0 184.0 651.0 183.0Q650.0 182.0 635.5 180.0Q621.0 178.0 608.0 178.5Q595.0 179.0 592.0 181.0L589.0 183.0" },
+ { length: 72, d: "M501.0 763.0Q494.0 761.0 473.0 748.0Q452.0 735.0 441.0 730.0L430.0 725.0" },
+ { length: 71, d: "M586.0 771.0Q588.0 789.0 588.0 813.0Q588.0 837.0 586.5 839.0L585.0 841.0" },
+ { length: 70, d: "M851.0 203.0Q850.0 197.0 848.0 193.5Q846.0 190.0 836.0 179.5Q826.0 169.0 820.5 161.5Q815.0 154.0 811.5 150.5Q808.0 147.0 802.5 147.5L797.0 148.0" },
+ { length: 70, d: "M764.0 770.0Q767.0 765.0 776.5 756.0Q786.0 747.0 788.0 746.5Q790.0 746.0 794.0 743.0Q798.0 740.0 801.5 739.0Q805.0 738.0 809.5 734.5Q814.0 731.0 820.0 728.0Q826.0 725.0 828.5 725.0L831.0 725.0" },
+ { length: 69, d: "M632.0 304.0Q637.0 311.0 642.5 315.0Q648.0 319.0 657.5 328.5Q667.0 338.0 673.0 346.0Q679.0 354.0 681.5 359.0Q684.0 364.0 686.5 366.5L689.0 369.0" },
+ { length: 68, d: "M664.0 133.0Q669.0 129.0 679.0 129.5Q689.0 130.0 691.5 131.5Q694.0 133.0 701.0 134.5Q708.0 136.0 715.5 140.0Q723.0 144.0 725.0 147.5L727.0 151.0" },
+ { length: 67, d: "M764.0 507.0Q749.0 517.0 737.5 527.0Q726.0 537.0 719.0 546.0Q712.0 555.0 709.5 560.0L707.0 565.0" },
+ { length: 65, d: "M627.0 1031.0L563.0 1089.0" },
+ { length: 65, d: "M728.0 216.0Q722.0 206.0 711.5 199.5Q701.0 193.0 694.0 192.5Q687.0 192.0 685.0 193.0Q683.0 194.0 675.5 194.5L668.0 195.0" },
+ { length: 64, d: "M728.0 152.0Q773.0 149.0 776.0 148.0Q779.0 147.0 785.0 147.5L791.0 148.0" },
+ { length: 64, d: "M780.0 676.0Q777.0 683.0 773.0 686.0Q769.0 689.0 764.0 691.5Q759.0 694.0 756.5 694.0Q754.0 694.0 748.5 696.0Q743.0 698.0 732.0 704.5L721.0 711.0" },
+ { length: 64, d: "M827.0 480.0Q823.0 484.0 814.0 489.0Q805.0 494.0 802.5 494.0Q800.0 494.0 785.5 501.0Q771.0 508.0 767.5 507.5L764.0 507.0" },
+ { length: 63, d: "M774.0 293.0Q781.0 275.0 786.5 268.5Q792.0 262.0 792.5 252.5Q793.0 243.0 790.0 237.0L787.0 231.0" },
+ { length: 62, d: "M352.0 415.0Q355.0 425.0 360.0 431.5Q365.0 438.0 374.5 447.0Q384.0 456.0 387.0 457.5Q390.0 459.0 392.5 461.5Q395.0 464.0 398.5 465.0L402.0 466.0" },
+ { length: 61, d: "M272.0 635.0Q292.0 634.0 305.5 635.0Q319.0 636.0 325.5 635.0L332.0 634.0" },
+ { length: 59, d: "M495.0 339.0Q492.0 341.0 490.0 359.5Q488.0 378.0 487.0 379.5Q486.0 381.0 485.0 388.5L484.0 396.0" },
+ { length: 59, d: "M767.0 569.0Q757.0 572.0 748.0 576.5Q739.0 581.0 731.0 586.5Q723.0 592.0 716.0 598.5L709.0 605.0" },
+ { length: 59, d: "M657.0 204.0Q651.0 199.0 643.0 198.0Q635.0 197.0 624.5 202.5Q614.0 208.0 610.0 212.0Q606.0 216.0 605.0 219.5L604.0 223.0" },
+ { length: 58, d: "M731.0 216.0Q738.0 210.0 742.5 210.0Q747.0 210.0 759.5 214.0Q772.0 218.0 776.5 220.5Q781.0 223.0 783.5 226.5L786.0 230.0" },
+ { length: 57, d: "M803.0 345.0Q796.0 347.0 786.0 354.0Q776.0 361.0 761.5 365.5L747.0 370.0" },
+ { length: 57, d: "M408.0 713.0L352.0 678.0" },
+ { length: 55, d: "M676.0 755.0Q680.0 745.0 684.5 738.5Q689.0 732.0 700.5 722.0Q712.0 712.0 716.0 711.5L720.0 711.0" },
+ { length: 55, d: "M850.0 836.0Q855.0 832.0 859.5 824.5Q864.0 817.0 865.0 813.0Q866.0 809.0 867.5 807.5Q869.0 806.0 871.5 800.0Q874.0 794.0 875.0 788.5L876.0 783.0" },
+ { length: 54, d: "M745.0 370.0Q712.0 374.0 709.0 375.5Q706.0 377.0 699.0 377.5L692.0 378.0" },
+ { length: 53, d: "M782.0 807.0Q831.0 805.0 832.5 806.5L834.0 808.0" },
+ { length: 52, d: "M691.0 378.0Q686.0 380.0 679.5 380.5Q673.0 381.0 656.5 386.0L640.0 391.0" },
+ { length: 52, d: "M860.0 716.0Q877.0 712.0 885.5 708.0Q894.0 704.0 901.5 702.5Q909.0 701.0 910.0 701.5L911.0 702.0" },
+ { length: 52, d: "M746.0 842.0Q751.0 845.0 758.0 844.0Q765.0 843.0 774.0 843.0Q783.0 843.0 790.0 844.0L797.0 845.0" },
+ { length: 51, d: "M525.0 830.0Q541.0 830.0 547.0 831.0Q553.0 832.0 560.5 835.0Q568.0 838.0 571.5 838.0L575.0 838.0" },
+ { length: 51, d: "M601.0 879.0Q601.0 887.0 605.0 900.5Q609.0 914.0 609.0 919.0Q609.0 924.0 610.5 926.5L612.0 929.0" },
+ { length: 50, d: "M403.0 663.0Q409.0 669.0 418.0 686.5Q427.0 704.0 426.5 707.5L426.0 711.0" },
+ { length: 50, d: "M332.0 309.0L339.0 358.0" },
+ { length: 50, d: "M553.0 803.0Q547.0 801.0 537.0 792.5Q527.0 784.0 525.5 784.0Q524.0 784.0 521.0 781.0Q518.0 778.0 511.5 774.5L505.0 771.0" },
+ { length: 48, d: "M788.0 607.0Q825.0 606.0 828.0 605.0Q831.0 604.0 833.0 602.0L835.0 600.0" },
+ { length: 46, d: "M628.0 1030.0Q627.0 1021.0 630.0 1018.5Q633.0 1016.0 636.0 1016.5Q639.0 1017.0 640.5 1019.5Q642.0 1022.0 641.0 1026.0Q640.0 1030.0 638.5 1031.0Q637.0 1032.0 633.0 1031.5L629.0 1031.0" },
+ { length: 46, d: "M411.0 728.0Q407.0 731.0 399.5 732.0Q392.0 733.0 379.0 736.5L366.0 740.0" },
+ { length: 46, d: "M865.0 229.0Q872.0 228.0 877.5 229.5Q883.0 231.0 885.5 233.0Q888.0 235.0 896.0 237.5Q904.0 240.0 906.5 242.0L909.0 244.0" },
+ { length: 46, d: "M918.0 523.0Q911.0 516.0 907.0 514.5Q903.0 513.0 897.0 512.0Q891.0 511.0 882.0 511.5L873.0 512.0" },
+ { length: 45, d: "M675.0 293.0Q641.0 296.0 638.5 297.0Q636.0 298.0 634.0 300.5L632.0 303.0" },
+ { length: 45, d: "M626.0 229.0Q620.0 238.0 616.5 253.5Q613.0 269.0 611.5 271.0L610.0 273.0" },
+ { length: 45, d: "M701.0 227.0Q706.0 229.0 712.5 235.0Q719.0 241.0 721.5 247.0Q724.0 253.0 723.0 260.0L722.0 267.0" },
+ { length: 44, d: "M764.0 770.0Q754.0 778.0 749.5 783.5Q745.0 789.0 743.0 793.0Q741.0 797.0 741.0 803.0L741.0 809.0" },
+ { length: 44, d: "M886.0 565.0L918.0 524.0" },
+ { length: 44, d: "M620.0 125.0Q631.0 126.0 642.0 129.5Q653.0 133.0 658.0 133.5L663.0 134.0" },
+ { length: 44, d: "M888.0 746.0Q891.0 743.0 894.5 734.5Q898.0 726.0 903.5 718.0Q909.0 710.0 910.0 706.5L911.0 703.0" },
+ { length: 44, d: "M593.0 265.0Q593.0 237.0 595.0 232.5Q597.0 228.0 600.0 226.0L603.0 224.0" },
+ { length: 44, d: "M731.0 671.0Q747.0 666.0 756.5 666.0Q766.0 666.0 768.5 667.0Q771.0 668.0 772.0 669.5L773.0 671.0" },
+ { length: 44, d: "M819.0 767.0Q784.0 798.0 782.5 802.0L781.0 806.0" },
+ { length: 43, d: "M542.0 223.0Q543.0 215.0 546.5 206.5Q550.0 198.0 551.0 197.0Q552.0 196.0 559.5 194.5L567.0 193.0" },
+ { length: 42, d: "M661.0 186.0Q670.0 177.0 679.0 172.0Q688.0 167.0 693.5 165.5Q699.0 164.0 699.5 163.0L700.0 162.0" },
+ { length: 42, d: "M631.0 890.0Q629.0 899.0 627.5 900.5Q626.0 902.0 622.0 913.5Q618.0 925.0 615.0 927.0L612.0 929.0" },
+ { length: 41, d: "M496.0 338.0Q496.0 335.0 492.0 330.0Q488.0 325.0 487.5 323.0Q487.0 321.0 481.5 315.0Q476.0 309.0 476.0 304.0L476.0 299.0" },
+ { length: 41, d: "M573.0 647.0Q579.0 651.0 592.0 651.5Q605.0 652.0 609.0 653.5L613.0 655.0" },
+ { length: 41, d: "M458.0 492.0Q461.0 508.0 466.5 518.0Q472.0 528.0 474.0 529.5L476.0 531.0" },
+ { length: 41, d: "M379.0 264.0Q358.0 282.0 351.5 286.0Q345.0 290.0 343.5 292.0L342.0 294.0" },
+ { length: 41, d: "M860.0 269.0Q862.0 268.0 863.0 265.5Q864.0 263.0 864.0 246.5L864.0 230.0" },
+ { length: 40, d: "M749.0 245.0Q751.0 251.0 751.0 256.0Q751.0 261.0 748.0 272.5L745.0 284.0" },
+ { length: 40, d: "M589.0 122.0Q585.0 119.0 578.0 117.5Q571.0 116.0 567.0 114.0Q563.0 112.0 556.5 111.5L550.0 111.0" },
+ { length: 40, d: "M667.0 980.0Q676.0 973.0 691.0 973.0L706.0 973.0" },
+ { length: 39, d: "M744.0 285.0Q733.0 289.0 720.5 289.5Q708.0 290.0 707.0 289.0L706.0 288.0" },
+ { length: 39, d: "M568.0 645.0Q552.0 646.0 541.0 644.5L530.0 643.0" },
+ { length: 39, d: "M681.0 248.0Q692.0 251.0 696.0 254.5Q700.0 258.0 703.0 259.0Q706.0 260.0 707.5 262.0Q709.0 264.0 709.5 266.5Q710.0 269.0 712.0 270.5L714.0 272.0" },
+ { length: 38, d: "M707.0 974.0Q712.0 980.0 714.5 980.0Q717.0 980.0 719.0 978.0Q721.0 976.0 721.0 973.0Q721.0 970.0 719.0 968.0Q717.0 966.0 714.5 966.0Q712.0 966.0 709.5 969.0L707.0 972.0" },
+ { length: 38, d: "M943.0 324.0Q945.0 328.0 945.0 337.0Q945.0 346.0 944.5 351.5Q944.0 357.0 942.5 359.0L941.0 361.0" },
+ { length: 38, d: "M795.0 475.0Q786.0 482.0 781.0 488.0Q776.0 494.0 773.5 495.0Q771.0 496.0 768.5 498.5Q766.0 501.0 765.0 504.0L764.0 507.0" },
+ { length: 37, d: "M544.0 295.0Q538.0 300.0 537.5 306.5Q537.0 313.0 535.0 317.0Q533.0 321.0 532.5 325.5L532.0 330.0" },
+ { length: 37, d: "M930.0 287.0Q933.0 291.0 935.0 300.0Q937.0 309.0 939.0 311.5Q941.0 314.0 942.0 318.5L943.0 323.0" },
+ { length: 35, d: "M715.0 876.0Q738.0 849.0 741.5 846.0L745.0 843.0" },
+ { length: 35, d: "M576.0 837.0Q574.0 830.0 564.0 816.5L554.0 803.0" },
+ { length: 35, d: "M804.0 345.0Q808.0 349.0 808.0 352.5Q808.0 356.0 805.0 367.5L802.0 379.0" },
+ { length: 35, d: "M601.0 877.0Q595.0 861.0 590.0 852.0L585.0 843.0" },
+ { length: 34, d: "M802.0 381.0Q802.0 385.0 804.0 389.0Q806.0 393.0 807.0 403.5L808.0 414.0" },
+ { length: 34, d: "M657.0 205.0Q651.0 212.0 645.0 214.0Q639.0 216.0 635.5 218.5Q632.0 221.0 629.5 223.5Q627.0 226.0 627.0 227.0L627.0 228.0" },
+ { length: 34, d: "M425.0 472.0Q430.0 475.0 433.5 475.5Q437.0 476.0 440.5 478.5Q444.0 481.0 446.0 481.0Q448.0 481.0 453.0 486.0L458.0 491.0" },
+ { length: 33, d: "M774.0 294.0Q779.0 301.0 779.0 309.0Q779.0 317.0 780.0 318.5Q781.0 320.0 781.0 323.0L781.0 326.0" },
+ { length: 33, d: "M943.0 468.0L950.0 500.0" },
+ { length: 32, d: "M742.0 604.0Q758.0 603.0 762.5 604.0Q767.0 605.0 770.0 607.5L773.0 610.0" },
+ { length: 32, d: "M589.0 122.0Q612.0 123.0 616.0 124.0L620.0 125.0" },
+ { length: 32, d: "M540.0 720.0Q530.0 695.0 530.0 693.0Q530.0 691.0 531.0 690.0L532.0 689.0" },
+ { length: 32, d: "M742.0 626.0Q760.0 617.0 764.5 616.0Q769.0 615.0 771.0 613.0L773.0 611.0" },
+ { length: 32, d: "M364.0 627.0Q362.0 629.0 350.5 629.5Q339.0 630.0 336.0 631.5L333.0 633.0" },
+ { length: 32, d: "M311.0 694.0Q303.0 682.0 302.0 678.5Q301.0 675.0 297.5 670.5Q294.0 666.0 294.0 664.5L294.0 663.0" },
+ { length: 31, d: "M880.0 437.0Q884.0 436.0 889.0 432.0Q894.0 428.0 897.0 425.0Q900.0 422.0 903.0 417.0L906.0 412.0" },
+ { length: 31, d: "M844.0 288.0Q842.0 280.0 840.5 278.5Q839.0 277.0 837.0 277.0Q835.0 277.0 831.5 279.0Q828.0 281.0 824.0 285.0L820.0 289.0" },
+ { length: 30, d: "M810.0 669.0L781.0 675.0" },
+ { length: 30, d: "M855.0 462.0Q858.0 461.0 869.0 449.0L880.0 437.0" },
+ { length: 30, d: "M631.0 303.0Q624.0 301.0 617.5 294.5Q611.0 288.0 608.0 284.5Q605.0 281.0 605.0 280.0L605.0 279.0" },
+ { length: 30, d: "M865.0 585.0Q850.0 596.0 843.0 598.0L836.0 600.0" },
+ { length: 30, d: "M728.0 216.0Q724.0 218.0 715.5 218.0Q707.0 218.0 704.0 221.5L701.0 225.0" },
+ { length: 30, d: "M666.0 239.0Q660.0 240.0 656.0 242.5Q652.0 245.0 649.0 248.0Q646.0 251.0 643.5 255.5L641.0 260.0" },
+ { length: 29, d: "M839.0 304.0Q836.0 314.0 831.0 318.5Q826.0 323.0 822.0 324.5L818.0 326.0" },
+ { length: 29, d: "M509.0 483.0Q516.0 490.0 521.0 492.0Q526.0 494.0 531.0 497.5L536.0 501.0" },
+ { length: 29, d: "M534.0 256.0Q532.0 251.0 532.0 245.5Q532.0 240.0 533.0 236.5Q534.0 233.0 536.0 231.0L538.0 229.0" },
+ { length: 29, d: "M393.0 818.0Q377.0 805.0 374.0 803.5Q371.0 802.0 369.0 799.0L367.0 796.0" },
+ { length: 29, d: "M425.0 833.0Q420.0 830.0 417.0 829.5Q414.0 829.0 412.0 827.0Q410.0 825.0 406.5 823.5Q403.0 822.0 400.5 823.0L398.0 824.0" },
+ { length: 29, d: "M945.0 502.0Q935.0 512.0 927.0 517.5L919.0 523.0" },
+ { length: 29, d: "M731.0 217.0Q745.0 231.0 746.5 233.5Q748.0 236.0 748.5 239.5L749.0 243.0" },
+ { length: 28, d: "M272.0 636.0Q274.0 642.0 283.5 652.0L293.0 662.0" },
+ { length: 28, d: "M854.0 463.0Q849.0 469.0 844.0 472.5Q839.0 476.0 833.5 477.5L828.0 479.0" },
+ { length: 28, d: "M664.0 203.0Q670.0 209.0 676.5 211.5Q683.0 214.0 685.0 218.0L687.0 222.0" },
+ { length: 28, d: "M343.0 386.0L339.0 359.0" },
+ { length: 28, d: "M937.0 442.0Q928.0 430.0 921.0 428.0L914.0 426.0" },
+ { length: 28, d: "M731.0 826.0Q727.0 831.0 726.5 835.5Q726.0 840.0 727.0 842.5Q728.0 845.0 726.5 849.0L725.0 853.0" },
+ { length: 28, d: "M351.0 414.0Q346.0 404.0 345.0 395.5L344.0 387.0" },
+ { length: 28, d: "M835.0 757.0Q829.0 751.0 826.5 751.0Q824.0 751.0 821.0 754.0Q818.0 757.0 819.0 761.5L820.0 766.0" },
+ { length: 27, d: "M635.0 260.0Q631.0 251.0 631.5 247.5Q632.0 244.0 634.0 242.5Q636.0 241.0 639.0 241.5L642.0 242.0" },
+ { length: 27, d: "M920.0 260.0Q923.0 264.0 924.0 270.0Q925.0 276.0 926.0 277.0Q927.0 278.0 928.0 282.0L929.0 286.0" },
+ { length: 26, d: "M852.0 204.0Q861.0 218.0 861.5 222.0Q862.0 226.0 863.0 227.5L864.0 229.0" },
+ { length: 26, d: "M677.0 293.0Q694.0 293.0 698.0 290.5L702.0 288.0" },
+ { length: 26, d: "M585.0 279.0L573.0 304.0" },
+ { length: 26, d: "M534.0 257.0Q536.0 272.0 537.0 274.0Q538.0 276.0 541.0 278.0L544.0 280.0" },
+ { length: 26, d: "M437.0 214.0Q439.0 212.0 445.0 210.5Q451.0 209.0 455.0 209.0Q459.0 209.0 460.5 210.0L462.0 211.0" },
+ { length: 25, d: "M943.0 467.0Q943.0 451.0 942.5 449.0Q942.0 447.0 940.0 445.0L938.0 443.0" },
+ { length: 24, d: "M497.0 339.0Q514.0 358.0 516.0 358.5L518.0 359.0" },
+ { length: 24, d: "M687.0 223.0Q679.0 228.0 675.5 229.0Q672.0 230.0 670.0 232.0Q668.0 234.0 667.5 236.0L667.0 238.0" },
+ { length: 24, d: "M481.0 180.0Q476.0 183.0 472.5 188.0Q469.0 193.0 468.5 197.0L468.0 201.0" },
+ { length: 23, d: "M859.0 270.0Q852.0 285.0 850.0 286.5Q848.0 288.0 846.5 288.0L845.0 288.0" },
+ { length: 23, d: "M487.0 468.0Q491.0 468.0 495.5 470.5Q500.0 473.0 504.0 477.5L508.0 482.0" },
+ { length: 23, d: "M680.0 146.0Q693.0 152.0 696.5 156.5L700.0 161.0" },
+ { length: 23, d: "M544.0 110.0Q533.0 119.0 531.0 122.0Q529.0 125.0 528.5 127.5L528.0 130.0" },
+ { length: 23, d: "M502.0 836.0Q508.0 836.0 513.0 833.5Q518.0 831.0 521.0 830.5L524.0 830.0" },
+ { length: 23, d: "M660.0 276.0Q673.0 283.0 674.5 287.5L676.0 292.0" },
+ { length: 23, d: "M336.0 755.0L346.0 777.0" },
+ { length: 22, d: "M924.0 491.0Q934.0 492.0 939.5 497.0L945.0 502.0" },
+ { length: 22, d: "M327.0 733.0Q327.0 741.0 328.5 745.0Q330.0 749.0 332.5 751.5L335.0 754.0" },
+ { length: 22, d: "M424.0 471.0Q415.0 472.0 409.0 469.0L403.0 466.0" },
+ { length: 21, d: "M519.0 358.0Q519.0 352.0 515.5 345.0L512.0 338.0" },
+ { length: 21, d: "M819.0 308.0Q813.0 312.0 812.5 314.0Q812.0 316.0 812.0 319.0Q812.0 322.0 814.0 324.0L816.0 326.0" },
+ { length: 21, d: "M868.0 583.0Q871.0 582.0 877.5 575.5Q884.0 569.0 884.5 567.5L885.0 566.0" },
+ { length: 21, d: "M860.0 716.0Q852.0 715.0 846.0 717.5L840.0 720.0" },
+ { length: 21, d: "M366.0 796.0Q356.0 796.0 354.5 794.0Q353.0 792.0 354.0 789.0L355.0 786.0" },
+ { length: 21, d: "M342.0 295.0Q351.0 304.0 356.5 306.0L362.0 308.0" },
+ { length: 20, d: "M555.0 246.0Q552.0 256.0 552.0 259.0Q552.0 262.0 551.0 263.5L550.0 265.0" },
+ { length: 20, d: "M436.0 214.0Q422.0 219.0 420.0 221.5L418.0 224.0" },
+ { length: 20, d: "M920.0 259.0Q919.0 249.0 916.5 247.0Q914.0 245.0 912.0 245.0L910.0 245.0" },
+ { length: 20, d: "M508.0 150.0Q496.0 160.0 495.0 163.0L494.0 166.0" },
+ { length: 20, d: "M659.0 275.0Q651.0 272.0 646.0 267.0L641.0 262.0" },
+ { length: 20, d: "M640.0 391.0Q630.0 397.0 627.5 397.5Q625.0 398.0 623.5 400.0L622.0 402.0" },
+ { length: 19, d: "M677.0 267.0Q665.0 269.0 662.5 272.0L660.0 275.0" },
+ { length: 19, d: "M888.0 748.0Q888.0 752.0 885.0 759.0L882.0 766.0" },
+ { length: 19, d: "M854.0 763.0Q841.0 763.0 838.5 761.5L836.0 760.0" },
+ { length: 19, d: "M840.0 850.0Q841.0 855.0 839.0 857.5Q837.0 860.0 833.0 859.5L829.0 859.0" },
+ { length: 18, d: "M817.0 327.0L804.0 344.0" },
+ { length: 18, d: "M318.0 713.0Q315.0 709.0 313.0 702.5L311.0 696.0" },
+ { length: 18, d: "M780.0 807.0Q775.0 809.0 772.5 811.5Q770.0 814.0 766.5 815.0L763.0 816.0" },
+ { length: 18, d: "M425.0 711.0Q413.0 709.0 410.5 711.0L408.0 713.0" },
+ { length: 18, d: "M318.0 714.0Q319.0 722.0 323.0 726.5L327.0 731.0" },
+ { length: 18, d: "M617.0 828.0L616.0 811.0" },
+ { length: 18, d: "M679.0 145.0Q670.0 140.0 668.5 140.0Q667.0 140.0 665.5 137.5L664.0 135.0" },
+ { length: 18, d: "M581.0 632.0Q575.0 633.0 572.0 638.5L569.0 644.0" },
+ { length: 18, d: "M732.0 825.0Q732.0 816.0 736.0 813.0L740.0 810.0" },
+];
+
+/** Sparkles around the rose as [cx, cy, r]. */
+// biome-ignore format: generated
+export const ROSE_SPARKLES: readonly (readonly [number, number, number])[] = [
+ [747, 299.3, 3.2],
+ [508.5, 330.9, 2.8],
+ [317.2, 433.6, 4.2],
+ [1024.9, 433.1, 1.6],
+ [479.8, 456.2, 4.5],
+ [298.1, 462.1, 2.5],
+ [492.1, 477.5, 2],
+ [333, 482.5, 5.2],
+ [475.6, 481.4, 2.8],
+ [1023.6, 524, 6.8],
+ [465.4, 533.6, 3],
+ [250.1, 553.6, 2.2],
+ [512.9, 561.6, 4.8],
+ [776.6, 564.1, 2.2],
+ [409.9, 573.2, 4.5],
+ [329.8, 574, 1.8],
+ [662.2, 576.8, 2.5],
+ [857.7, 576.3, 2],
+ [670.1, 588.4, 3.8],
+ [562.8, 594.8, 8],
+ [940.3, 599.6, 6],
+ [705.5, 610, 2.2],
+ [865, 635, 1.6],
+ [915.5, 639.2, 2.2],
+ [383, 642.5, 2.2],
+ [1004.4, 649.7, 6],
+ [450.2, 648.8, 4.5],
+ [392.2, 650.8, 5.5],
+ [491.3, 658.5, 4],
+ [457.5, 657, 2.2],
+ [943.8, 680.9, 3.5],
+ [852.4, 685.4, 2],
+ [977.9, 705.9, 1.6],
+ [591.3, 711.1, 2.5],
+ [940.3, 753.5, 4],
+ [685.4, 753.9, 2.8],
+ [878.2, 759.2, 3.5],
+ [862.3, 763.1, 3.2],
+ [612.2, 795.2, 3.5],
+ [908.5, 823.9, 2.2],
+ [698.5, 891, 2.8],
+ [679.5, 908, 3.8],
+ [667.5, 918.5, 6.5],
+ [789.7, 930, 8.2],
+ [643, 1015, 1.6],
+];
diff --git a/packages/ui/src/styles.css b/packages/ui/src/styles.css
index 492fed0..cef0b16 100644
--- a/packages/ui/src/styles.css
+++ b/packages/ui/src/styles.css
@@ -104,99 +104,234 @@ button.icon {
outline-offset: 2px;
}
-/* ---------- Dot ---------- */
+/* ---------- Dot: the rose (docs/brand/rose-design.html) ---------- */
.dot {
+ --neon: #ff2d7a;
+ --neon-soft: rgba(255, 45, 122, 0.35);
+ --core: #ffd6e8;
position: relative;
- width: 56px;
- height: 56px;
+ display: block;
+ width: 64px;
+ height: 84px;
padding: 0;
border: none;
- border-radius: 50%;
- background: radial-gradient(circle at 35% 30%, #a48bff, var(--accent) 55%, #4b2fd1);
- box-shadow: 0 0 0 0 var(--accent-soft);
+ border-radius: 14px;
+ background: none;
user-select: none;
-webkit-user-select: none;
}
.dot:hover:not(:disabled) {
- background: radial-gradient(circle at 35% 30%, #b39dff, var(--accent) 55%, #4b2fd1);
+ background: none;
}
-.dot-core {
- position: absolute;
- inset: 18px;
- border-radius: 50%;
- background: rgba(255, 255, 255, 0.85);
+.dot:focus-visible {
+ outline-offset: -2px;
}
-.dot-orbit {
+/* No circle and no box: the strokes are the rose, and they carry the glow. */
+.rose {
+ position: relative;
+ display: block;
+ width: 100%;
+ height: 100%;
+}
+
+.rose svg {
position: absolute;
- inset: 6px;
- border-radius: 50%;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ overflow: visible;
}
-.dot-idle {
- animation: breathe 3.2s var(--ease) infinite;
+.rose path {
+ fill: none;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ vector-effect: non-scaling-stroke;
}
-.dot-thinking .dot-orbit::after {
- content: "";
- position: absolute;
- top: -2px;
- left: 50%;
- width: 6px;
- height: 6px;
- margin-left: -3px;
- border-radius: 50%;
- background: #fff;
+.rose-base {
+ opacity: 0.8;
+ filter: drop-shadow(0 0 1px var(--neon)) drop-shadow(0 0 4px var(--neon-soft));
}
-.dot-thinking .dot-orbit {
- animation: orbit 1.2s linear infinite;
+.rose-base path {
+ stroke: var(--neon);
+ stroke-width: 1.1;
}
-.dot-working {
- animation: pulse 1s var(--ease) infinite;
+/* The light layer: one dash per stroke that travels from start to end. */
+.rose-light {
+ opacity: 0;
+ filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px var(--neon));
+}
+
+.rose-light path {
+ stroke: var(--core);
+ stroke-width: 1.6;
+ stroke-dasharray: 0 1;
+}
+
+.rose-sparkles {
+ filter: drop-shadow(0 0 2px var(--neon));
+}
+
+.rose-sparkles circle {
+ fill: var(--core);
+ opacity: 0.8;
+}
+
+.rose-idle .rose-base {
+ animation: rose-breathe 3.6s ease-in-out infinite;
+}
+
+.rose-idle .rose-sparkles circle {
+ animation: rose-twinkle 2.8s ease-in-out infinite;
+ animation-delay: calc(var(--i) * -0.37s);
+}
+
+.rose-thinking .rose-base {
+ opacity: 0.65;
+}
+
+.rose-thinking .rose-light {
+ opacity: 1;
+}
+
+.rose-thinking .rose-light path {
+ stroke-dasharray: 0.16 1.2;
+ animation: rose-run calc(var(--d) * 1.6) linear infinite;
+ animation-delay: calc(var(--i) * -0.53s);
+}
+
+.rose-thinking .rose-sparkles {
+ opacity: 0.35;
+}
+
+.rose-working .rose-base {
+ opacity: 0.9;
}
-.dot-needs_you {
- box-shadow: 0 0 0 3px var(--amber);
+.rose-working .rose-light {
+ opacity: 1;
}
-.dot-restarting,
-.dot-starting {
- filter: grayscale(1);
- opacity: 0.7;
+.rose-working .rose-light path {
+ stroke-dasharray: 0.22 0.5;
+ animation: rose-run calc(var(--d) * 0.55) linear infinite;
+ animation-delay: calc(var(--i) * -0.29s);
}
-.dot-error {
- box-shadow: 0 0 0 3px var(--danger);
+.rose-working .rose-sparkles circle {
+ animation: rose-twinkle 0.9s ease-in-out infinite;
+ animation-delay: calc(var(--i) * -0.13s);
+}
+
+.rose-needs .rose-base {
+ opacity: 1;
+ animation: rose-call 1.4s ease-in-out infinite;
+}
+
+.rose-needs .rose-sparkles circle {
+ animation: rose-twinkle 1.4s ease-in-out infinite;
+}
+
+.rose-restarting {
+ filter: grayscale(1) brightness(0.8);
+}
+
+.rose-restarting .rose-base {
+ opacity: 0.4;
+}
+
+.rose-restarting .rose-light {
+ opacity: 0.8;
+}
+
+.rose-restarting .rose-light path {
+ stroke-dasharray: 0.1 2;
+ animation: rose-run calc(var(--d) * 2.4) linear infinite;
+ animation-delay: calc(var(--i) * -0.71s);
+}
+
+.rose-restarting .rose-sparkles,
+.rose-offline .rose-sparkles {
+ display: none;
+}
+
+.rose-offline {
+ filter: grayscale(0.85) brightness(0.6);
+}
+
+.rose-offline .rose-base {
+ opacity: 0.55;
+ filter: none;
}
.dot-badge {
position: absolute;
- top: -2px;
- right: -2px;
- width: 18px;
- height: 18px;
+ top: 2px;
+ right: 2px;
+ width: 16px;
+ height: 16px;
border-radius: 50%;
background: var(--amber);
- color: #1a1200;
- font-size: 12px;
- font-weight: 700;
- line-height: 18px;
+ color: #241600;
+ font-size: 11px;
+ font-weight: 800;
+ line-height: 16px;
+ text-align: center;
+ box-shadow: 0 0 6px rgba(245, 165, 36, 0.7);
}
-@keyframes breathe {
- 50% {
- box-shadow: 0 0 0 6px var(--accent-soft);
+/* Reduce motion: no traveling light (frozen dashes would look broken); the glow stays, stronger when busy.
+ Glow radii stay small because the window is only a few pixels larger than the rose. */
+@media (prefers-reduced-motion: reduce) {
+ .rose-light {
+ display: none;
+ }
+
+ .rose-working .rose-base,
+ .rose-needs .rose-base {
+ filter: drop-shadow(0 0 1.5px var(--neon)) drop-shadow(0 0 4px var(--neon));
}
}
-@keyframes orbit {
+@keyframes rose-run {
+ from {
+ stroke-dashoffset: 1.2;
+ }
to {
- transform: rotate(360deg);
+ stroke-dashoffset: -0.2;
+ }
+}
+
+@keyframes rose-breathe {
+ 0%,
+ 100% {
+ filter: drop-shadow(0 0 1px var(--neon)) drop-shadow(0 0 2px var(--neon-soft));
+ }
+ 50% {
+ filter: drop-shadow(0 0 1.5px var(--neon)) drop-shadow(0 0 4px var(--neon));
+ }
+}
+
+@keyframes rose-call {
+ 0%,
+ 100% {
+ filter: drop-shadow(0 0 1px var(--neon)) drop-shadow(0 0 4px var(--neon-soft));
+ }
+ 50% {
+ filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 5px var(--neon-soft));
+ }
+}
+
+@keyframes rose-twinkle {
+ 50% {
+ opacity: 0.15;
}
}
diff --git a/packages/ui/test/dot.test.tsx b/packages/ui/test/dot.test.tsx
index 0e397da..ecb681e 100644
--- a/packages/ui/test/dot.test.tsx
+++ b/packages/ui/test/dot.test.tsx
@@ -1,11 +1,14 @@
+import type { AgentState } from "@gentle-dot/protocol";
import { fireEvent, render, screen } from "@testing-library/react";
import { describe, expect, it, vi } from "vitest";
import { DotSurface } from "../src/components/DotSurface.tsx";
+import { DOT_LIGHT_STROKES } from "../src/rose/Rose.tsx";
+import { ROSE_SPARKLES, ROSE_STROKES } from "../src/rose/strokes.ts";
-function setup(agentState: Parameters<typeof DotSurface>[0]["agentState"] = "idle") {
+function setup(agentState: AgentState = "idle", connected = true) {
const toggle = vi.fn();
const startDrag = vi.fn();
- render(<DotSurface agentState={agentState} connected toggle={toggle} startDrag={startDrag} />);
+ render(<DotSurface agentState={agentState} connected={connected} toggle={toggle} startDrag={startDrag} />);
return { toggle, startDrag, dot: screen.getByRole("button") };
}
@@ -39,4 +42,49 @@ describe("DotSurface", () => {
expect(dot).toHaveClass("dot-needs_you");
expect(screen.getByText("!")).toBeInTheDocument();
});
+
+ it("is the rose itself: traced strokes, a light layer, and sparkles, with no orb", () => {
+ const { dot } = setup();
+ const rose = dot.querySelector(".rose");
+ expect(rose).not.toBeNull();
+ expect(rose).toHaveAttribute("aria-hidden", "true");
+ expect(dot.querySelector(".dot-core, .dot-orbit")).toBeNull();
+
+ // Three stacked SVG layers; each carries its own glow (see Rose.tsx).
+ expect(
+ [...(rose?.querySelectorAll(":scope > svg") ?? [])].map((svg) => svg.getAttribute("class")),
+ ).toEqual(["rose-base", "rose-light", "rose-sparkles"]);
+ const base = [...(rose?.querySelectorAll(".rose-base path") ?? [])];
+ const light = [...(rose?.querySelectorAll(".rose-light path") ?? [])];
+ expect(base).toHaveLength(ROSE_STROKES.length);
+ expect(light).toHaveLength(DOT_LIGHT_STROKES);
+ // The light runs along the longest strokes, each normalized for dash animation.
+ light.forEach((path, i) => {
+ expect(path).toHaveAttribute("d", ROSE_STROKES[i]?.d);
+ expect(path).toHaveAttribute("pathLength", "1");
+ });
+ expect(rose?.querySelectorAll(".rose-sparkles circle")).toHaveLength(ROSE_SPARKLES.length);
+ });
+
+ it.each<[AgentState, string, string]>([
+ ["starting", "rose-restarting", "starting"],
+ ["idle", "rose-idle", "ready"],
+ ["thinking", "rose-thinking", "thinking"],
+ ["working", "rose-working", "working"],
+ ["needs_you", "rose-needs", "needs your answer"],
+ ["restarting", "rose-restarting", "restarting"],
+ ["error", "rose-offline", "unavailable"],
+ ])("renders %s as %s", (state, mood, label) => {
+ const { dot } = setup(state);
+ expect(dot).toHaveAccessibleName(`Gentle Dot: ${label}`);
+ expect(dot).toHaveClass(`dot-${state}`);
+ expect(dot.querySelector(".rose")).toHaveClass(mood);
+ if (state !== "needs_you") expect(screen.queryByText("!")).toBeNull();
+ });
+
+ it("shows a restarting rose while disconnected", () => {
+ const { dot } = setup("working", false);
+ expect(dot).toHaveAccessibleName("Gentle Dot: restarting");
+ expect(dot.querySelector(".rose")).toHaveClass("rose-restarting");
+ });
});