Skip to content

armgit / kokon

Public Imported from GitHub
0

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.

UI: prompt hint for text to image (subject, action, setting)

Gabriele Lozupone0eb715690dc0
diff --git a/src/components/Composer.tsx b/src/components/Composer.tsx
index 2cf9422..748f5a9 100644
--- a/src/components/Composer.tsx
+++ b/src/components/Composer.tsx
@@ -301,8 +301,8 @@ export function Composer() {
const placeholder = !hasImages
? hasProject
- ? "Describe a new image…"
- : "Describe an image to create, or drop one in to edit it…"
+ ? "Describe a new image: subject, what it's doing, setting…"
+ : "Describe an image (subject, action, setting) or drop one in to edit…"
: c.refs.length > 1
? "Describe how to combine image 1, image 2…"
: c.mask
diff --git a/src/components/Stage.tsx b/src/components/Stage.tsx
index a9ae671..66b7b38 100644
--- a/src/components/Stage.tsx
+++ b/src/components/Stage.tsx
@@ -42,6 +42,7 @@ function Empty() {
<div className="empty">
<h1>What should we make?</h1>
<p>Describe a new image below, or bring one in to edit it.</p>
+ <p className="tip">Tip: say what the subject is doing and where, like “a monkey dribbling a basketball on an outdoor court”. Short prompts get literal results.</p>
<div className="hint">
<span>
<MousePointerClick size={14} /> Drop images here
diff --git a/src/styles.css b/src/styles.css
index af061e2..ff2b49d 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -138,6 +138,7 @@ svg { display: block; flex: none; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--text-3); text-align: center; }
.empty h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.empty p { margin: 0; font-size: 14px; }
+.empty p.tip { font-size: 12px; max-width: 420px; text-align: center; opacity: 0.75; }
.empty .hint { display: flex; gap: 18px; font-size: 12px; margin-top: 4px; }
.empty .hint span { display: flex; gap: 6px; align-items: center; }