Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.
TypeScript ai-photo-editorcomfyui-alternativegenerative-fillimage-editingimage-generationinpaintinglinuxlocal-aimacosmcpmcp-servernano-banana-alternativeofflinephoto-editorprivacyqwen-imageqwen-image-2-1stable-diffusion-cppvulkanwindows
ui: neutral grey ground, deeper dark theme, calmer timeline
Gabriele Lozupone2a61a69570ff
diff --git a/index.html b/index.htmlindex a557c73..86ce850 100644--- a/index.html+++ b/index.html@@ -9,8 +9,8 @@React replaces #root's content when the app mounts. Colors match styles.css. --><script src="/theme.js"></script><style>- html, body { margin: 0; height: 100%; background: #f7f6f2; color: #0d0d0d; }- html[data-theme="dark"], html[data-theme="dark"] body { background: #0f0f0e; color: #f2f1ed; }+ html, body { margin: 0; height: 100%; background: #f4f4f4; color: #0d0d0d; }+ html[data-theme="dark"], html[data-theme="dark"] body { background: #0a0a0a; color: #f2f2f2; }.boot-splash { height: 100vh; display: grid; place-items: center; }.boot-splash svg { width: 56px; height: 56px; opacity: 0.9; animation: boot-breathe 1.6s ease-in-out infinite; }@keyframes boot-breathe { 50% { opacity: 0.35; } }diff --git a/marketing/video/src/app/theme.css b/marketing/video/src/app/theme.cssindex c6f06cb..35df96e 100644--- a/marketing/video/src/app/theme.css+++ b/marketing/video/src/app/theme.css@@ -1,23 +1,24 @@/* The app follows the system theme; videos are rendered in its dark theme. */:root {- --ground: #0f0f0e;- --bg: #1a1a18;- --surface: #232321;- --surface-2: #2c2c29;- --surface-3: #383834;- --border: rgba(242, 241, 237, 0.08);- --border-2: rgba(242, 241, 237, 0.15);- --text: #f2f1ed;- --text-2: #b4b2ac;- --text-3: #8a8884;- --invert-bg: #f2f1ed;- --invert-text: #0f0f0e;- --scrim: rgba(15, 15, 14, 0.85);- --lift: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -12px rgba(0, 0, 0, 0.6);- --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(242, 241, 237, 0.07), 0 24px 60px -18px rgba(0, 0, 0, 0.75);- --print: 0 2px 6px rgba(0, 0, 0, 0.4), 0 34px 70px -24px rgba(0, 0, 0, 0.85);- --glow: rgba(247, 246, 242, 0.055);- --checker: #1d1d1b;+ --ground: #0a0a0a;+ --bg: #151515;+ --surface: #1c1c1c;+ --surface-2: #252525;+ --surface-3: #313131;+ --border: rgba(255, 255, 255, 0.07);+ --border-2: rgba(255, 255, 255, 0.14);+ --text: #f2f2f2;+ --text-2: #a8a8a8;+ --text-3: #858585;+ --invert-bg: #f2f2f2;+ --invert-text: #0a0a0a;+ --scrim: rgba(10, 10, 10, 0.85);+ --lift: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 28px -12px rgba(0, 0, 0, 0.7);+ --shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 60px -18px rgba(0, 0, 0, 0.8);+ --print: 0 2px 6px rgba(0, 0, 0, 0.5), 0 34px 70px -24px rgba(0, 0, 0, 0.9);+ --pick: 0 0 0 1px rgba(255, 255, 255, 0.08);+ --glow: rgba(255, 255, 255, 0.045);+ --checker: #181818;--sidebar: transparent;color-scheme: dark;}diff --git a/src/components/Stage.tsx b/src/components/Stage.tsxindex d42878a..967358a 100644--- a/src/components/Stage.tsx+++ b/src/components/Stage.tsx@@ -12,7 +12,7 @@ import {addAsReference, addResult, cancelJob, focusPrompt, getState, itemSource, removeSessionItem, reusePrompt, selectedItem, selectItem, sessionLabels, sessionLinks, setState, submitRequest, toastError, toastInfo, useStore, type SessionItem,} from "../lib/store";import type { GenerationRecord, GenerationRequest, JobView, LutEntry, Mode, Size } from "../lib/types";-import { Cocoon, Hatch, reducedMotion, SilkSpin } from "./Cocoon";+import { Cocoon, Hatch, reducedMotion } from "./Cocoon";import { CompareFrame, CompareFullscreen } from "./Compare";import { LutBar, LutButton, LutOverlay } from "./Lut";import { IconButton, Popover, useFit } from "./ui";@@ -786,6 +786,8 @@ function Timeline({ labels }: { labels: Record<string, string> }) {const src = itemSource(it);const pending = it.kind === "job";const failed = pending && job && ["failed", "cancelled"].includes(job.status);+ // Being made: a thread runs round its thumbnail (the shown version has a still ring).+ const making = pending && !failed;const mode: Mode | "lut" | undefined = it.gen?.mode ?? job?.plan?.mode;const link = links[it.key];const pendingSrc = pending && it.request?.mode !== "generate" ? it.request?.images?.[0] : undefined;@@ -837,11 +839,7 @@ function Timeline({ labels }: { labels: Record<string, string> }) {<span className="frame-img">{src && <img src={urls.sourceThumb(src)} alt="" draggable={false} />}{pendingSrc && <img className="dim" src={urls.sourceThumb(pendingSrc)} alt="" draggable={false} />}- {pending && !failed && (job && job.status !== "queued" ? <JobCocoon job={job} request={it.request} /> : (- <span className="frame-state">- <SilkSpin size={30} />- </span>- ))}+ {pending && !failed && job && job.status !== "queued" && <JobPercent job={job} request={it.request} />}{failed && (<span className="frame-state"><X size={16} />@@ -853,10 +851,10 @@ function Timeline({ labels }: { labels: Record<string, string> }) {</span>)}</span>- {selected === it.key && (- <svg className="frame-silk" viewBox="0 0 60 60" aria-hidden>+ {(making || selected === it.key) && (+ <svg className={`frame-silk ${making ? "making" : ""}`} viewBox="0 0 60 60" aria-hidden><rect className="ring" x="1" y="1" width="58" height="58" rx="17" />- <rect className="run" x="1" y="1" width="58" height="58" rx="17" pathLength={200} />+ {making && <rect className="run" x="1" y="1" width="58" height="58" rx="17" pathLength={200} />}</svg>)}</span>@@ -874,17 +872,14 @@ function Timeline({ labels }: { labels: Record<string, string> }) {);}-/** The whole job's progress in the timeline, the same percentage as its card: a tiny cocoon- * that fills as the job advances, with the number under it. */-function JobCocoon({ job, request }: { job: JobView; request?: GenerationRequest | null }) {+/** The whole job's progress in the timeline: the same percentage as its card. */+function JobPercent({ job, request }: { job: JobView; request?: GenerationRequest | null }) {const { pct } = useJobPercent(job, request);return (- <>- <span className="frame-state">- <SilkSpin size={28} fill={pct / 100} />- </span>- <span className="frame-pct">{Math.floor(pct)}</span>- </>+ <span className="frame-pct">+ {Math.floor(pct)}+ <small>%</small>+ </span>);}diff --git a/src/styles.css b/src/styles.cssindex f380726..a949919 100644--- a/src/styles.css+++ b/src/styles.css@@ -1,27 +1,29 @@@import "@fontsource-variable/inter";-/* Paper and ink (assets/brand): the window is paper (--ground); what sits on it is a card- (--bg) lifted by a soft shadow; --surface* are paper tints for fills and hovers. */+/* Neutral grey ground and white cards lifted by a soft shadow (monochrome like the mark);+ --surface* are grey tints for fills and hovers. */:root {- --ground: #f7f6f2;+ --ground: #f4f4f4;--bg: #ffffff;- --surface: #f0eee9;- --surface-2: #e7e4dd;- --surface-3: #dad6ce;- --border: rgba(13, 13, 13, 0.08);- --border-2: rgba(13, 13, 13, 0.14);+ --surface: #ededed;+ --surface-2: #e4e4e4;+ --surface-3: #d7d7d7;+ --border: rgba(0, 0, 0, 0.08);+ --border-2: rgba(0, 0, 0, 0.14);--text: #0d0d0d;- --text-2: #55534e;- --text-3: #75736d;+ --text-2: #555555;+ --text-3: #737373;--invert-bg: #0d0d0d;- --invert-text: #f7f6f2;- --scrim: rgba(247, 246, 242, 0.84);- /* depth: a resting card, a floating panel (menus, dialogs), the image laid on the page */- --lift: 0 1px 0 rgba(13, 13, 13, 0.03), 0 1px 2px rgba(13, 13, 13, 0.06), 0 10px 28px -12px rgba(13, 13, 13, 0.16);- --shadow: 0 0 0 1px rgba(13, 13, 13, 0.06), 0 2px 6px rgba(13, 13, 13, 0.05), 0 24px 56px -18px rgba(13, 13, 13, 0.24);- --print: 0 2px 4px rgba(13, 13, 13, 0.06), 0 30px 60px -28px rgba(13, 13, 13, 0.38);- --glow: rgba(255, 255, 255, 0.9);- --checker: #ebe9e3;+ --invert-text: #ffffff;+ --scrim: rgba(244, 244, 244, 0.84);+ /* depth: a resting card, a floating panel (menus, dialogs), the image laid on the page, and+ the choice inside a segmented control (even all round, so it sits centred) */+ --lift: 0 1px 0 rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 28px -12px rgba(0, 0, 0, 0.16);+ --shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.05), 0 24px 56px -18px rgba(0, 0, 0, 0.24);+ --print: 0 2px 4px rgba(0, 0, 0, 0.06), 0 30px 60px -28px rgba(0, 0, 0, 0.38);+ --pick: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 0 6px rgba(0, 0, 0, 0.06);+ --glow: rgba(255, 255, 255, 0.95);+ --checker: #ebebeb;--sidebar: transparent;--radius: 14px;--radius-img: 14px;@@ -33,24 +35,25 @@/* data-theme is set before the first paint by public/theme.js (OS setting or Settings → General). */:root[data-theme="dark"] {- --ground: #0f0f0e;- --bg: #1a1a18;- --surface: #232321;- --surface-2: #2c2c29;- --surface-3: #383834;- --border: rgba(242, 241, 237, 0.08);- --border-2: rgba(242, 241, 237, 0.15);- --text: #f2f1ed;- --text-2: #b4b2ac;- --text-3: #8a8884;- --invert-bg: #f2f1ed;- --invert-text: #0f0f0e;- --scrim: rgba(15, 15, 14, 0.85);- --lift: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -12px rgba(0, 0, 0, 0.6);- --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(242, 241, 237, 0.07), 0 24px 60px -18px rgba(0, 0, 0, 0.75);- --print: 0 2px 6px rgba(0, 0, 0, 0.4), 0 34px 70px -24px rgba(0, 0, 0, 0.85);- --glow: rgba(247, 246, 242, 0.055);- --checker: #1d1d1b;+ --ground: #0a0a0a;+ --bg: #151515;+ --surface: #1c1c1c;+ --surface-2: #252525;+ --surface-3: #313131;+ --border: rgba(255, 255, 255, 0.07);+ --border-2: rgba(255, 255, 255, 0.14);+ --text: #f2f2f2;+ --text-2: #a8a8a8;+ --text-3: #858585;+ --invert-bg: #f2f2f2;+ --invert-text: #0a0a0a;+ --scrim: rgba(10, 10, 10, 0.85);+ --lift: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 28px -12px rgba(0, 0, 0, 0.7);+ --shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 60px -18px rgba(0, 0, 0, 0.8);+ --print: 0 2px 6px rgba(0, 0, 0, 0.5), 0 34px 70px -24px rgba(0, 0, 0, 0.9);+ --pick: 0 0 0 1px rgba(255, 255, 255, 0.08);+ --glow: rgba(255, 255, 255, 0.045);+ --checker: #181818;--sidebar: transparent;color-scheme: dark;}@@ -270,22 +273,20 @@ svg { display: block; flex: none; }.frame-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }.frame-img img.dim { opacity: 0.25; filter: blur(2px) grayscale(1); }.frame-state { position: relative; color: var(--text); display: grid; place-items: center; }-.frame-img .frame-state { margin-top: -9px; }-.frame-img .silk-spin ellipse { stroke-width: 1.15px; }-.frame-img .silk-spin rect { opacity: 0.22; }-.frame-img .silk-spin .silk-fill { opacity: 0.7; }-.frame-pct { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-size: 9.5px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }+.frame-pct { position: relative; font-size: 12px; font-weight: 650; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }+.frame-pct small { font-size: 0.75em; font-weight: 500; color: var(--text-2); margin-left: 1px; }.frame:hover .frame-img { transform: translateY(-1px); }.frame:hover:not(.sel) .frame-img { outline-color: var(--surface-3); }-/* the shown version: a silk thread runs round it */+/* the shown version: a still ring; a version being made: a thread runs round it */.frame-silk { position: absolute; left: -5px; top: -5px; width: 60px; height: 60px; overflow: visible; pointer-events: none; color: var(--text); }.frame-silk rect { fill: none; stroke: currentColor; }-.frame-silk .ring { stroke-width: 1; stroke-opacity: 0.28; }+.frame-silk .ring { stroke-width: 1.6; }+.frame-silk.making .ring { stroke-width: 1; stroke-opacity: 0.25; }.frame-silk .run { stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 46 154; animation: silk-orbit 3.6s linear infinite; }@keyframes silk-orbit { to { stroke-dashoffset: -200; } }@media (prefers-reduced-motion: reduce) {.frame-silk .run, .joint.silk .t2 { animation: none; }- .frame-silk .ring { stroke-opacity: 1; stroke-width: 1.5; }+ .frame-silk.making .ring { stroke-opacity: 0.6; }}/* what the shown version was made from */.frame.src .frame-img { outline: 2px dashed var(--text-3); }@@ -316,7 +317,7 @@ svg { display: block; flex: none; }.mode-switch { display: flex; flex: none; background: var(--surface); border-radius: 13px; padding: 3px; gap: 2px; }.mode-switch button { height: 30px; padding: 0 11px; border-radius: 10px; transition: background 0.2s, box-shadow 0.2s, color 0.15s; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }.mode-switch button:hover:not(.on) { color: var(--text); }-.mode-switch button.on { background: var(--bg); color: var(--text); box-shadow: var(--lift); font-weight: 500; }+.mode-switch button.on { background: var(--bg); color: var(--text); box-shadow: var(--pick); font-weight: 500; }.target-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--surface); display: grid; place-items: center; color: var(--text-2); flex: none; }.target-text { display: flex; flex-direction: column; min-width: 0; }.target-text .what { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }@@ -384,7 +385,7 @@ svg { display: block; flex: none; }textarea.input { height: auto; padding: 8px 10px; resize: vertical; min-height: 60px; }.seg { display: flex; background: var(--surface); border-radius: 11px; padding: 3px; gap: 2px; }.seg button { flex: 1; height: 28px; border-radius: 8px; font-size: 12px; color: var(--text-2); padding: 0 6px; white-space: nowrap; }-.seg button.on { background: var(--bg); color: var(--text); box-shadow: var(--lift); }+.seg button.on { background: var(--bg); color: var(--text); box-shadow: var(--pick); }input[type="range"] { width: 100%; accent-color: var(--text); }.switch { width: 34px; height: 20px; border-radius: 10px; background: var(--surface-3); position: relative; flex: none; transition: background 0.15s; }.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); transition: left 0.15s; }