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
Settings: roomier update row, model setup as a card
Gabriele Lozuponea622ab2530a3
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsxindex a5a1741..16fba0e 100644--- a/src/components/Settings.tsx+++ b/src/components/Settings.tsx@@ -179,10 +179,11 @@ export function Settings() {<span>Check for updates once a day</span><Switch on={autoCheckEnabled(cfg.ui)} onChange={(v) => set({ ui: { ...cfg.ui, updateCheck: v } })} /></div>- <div className="field-row" style={{ marginTop: -10 }}>- <span className="muted">- Kokon {appVersion} · only asks GitHub for the latest version number; nothing about you or your images is sent. Updates install when you click them.- </span>+ <span className="muted" style={{ marginTop: -10 }}>+ Only asks GitHub for the latest version number; nothing about you or your images is sent. Updates install when you click them.+ </span>+ <div className="field-row">+ <span>You have Kokon {appVersion}</span><button className="btn" onClick={() => checkForUpdate(true)}>Check now</button>@@ -204,17 +205,21 @@ export function Settings() {{tab === "models" && (<>- <button- className="btn"- style={{ alignSelf: "flex-start" }}- onClick={() => {- if (dirty && !window.confirm("Discard the unsaved changes and open the model setup?")) return;- setState({ overlay: null, needsSetup: true });- }}- >- <Download size={14} /> Set up models…- </button>- <span className="muted" style={{ marginTop: -10 }}>Downloads the official Qwen-Image 2.1 weights for your graphics card, or switches between the 12, 16, 24 and 32 GB presets.</span>+ <div className="setting-card">+ <div className="setting-card-text">+ <strong>Model setup</strong>+ <span className="muted">Downloads the official Qwen-Image 2.1 weights for your graphics card, or switches between the 12, 16, 24 and 32 GB presets.</span>+ </div>+ <button+ className="btn primary"+ onClick={() => {+ if (dirty && !window.confirm("Discard the unsaved changes and open the model setup?")) return;+ setState({ overlay: null, needsSetup: true });+ }}+ >+ <Download size={15} /> Set up models…+ </button>+ </div><PathField label="stable-diffusion.cpp folder" value={cfg.sdcppDir} folder onChange={(v) => set({ sdcppDir: v })} />{cfg.profiles.length > 1 ? (<label className="field-row">diff --git a/src/styles.css b/src/styles.cssindex 7a3807b..7bb29a9 100644--- a/src/styles.css+++ b/src/styles.css@@ -249,6 +249,12 @@ svg { display: block; flex: none; }.field { display: flex; flex-direction: column; gap: 6px; }.field > span, .field-row > span { font-size: 12px; color: var(--text-2); }.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }+/* buttons beside a setting keep one line and one width, with room from the text */+.field-row > .btn { flex: none; min-width: 84px; justify-content: center; white-space: nowrap; margin-left: 12px; }+.setting-card { display: flex; align-items: center; gap: 20px; padding: 16px 18px; border-radius: 14px; background: var(--surface); }+.setting-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }+.setting-card-text strong { font-size: 13.5px; font-weight: 600; }+.setting-card .btn { flex: none; white-space: nowrap; }.input, .select { height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); padding: 0 10px; outline: none; min-width: 0; }.input:focus, .select:focus { border-color: var(--text-2); }textarea.input { height: auto; padding: 8px 10px; resize: vertical; min-height: 60px; }