Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Screens draw Fluent icons, Filled for pressed and selected states

Bitti8c711e4826c1
diff --git a/src/App.tsx b/src/App.tsx
index 6b92f8e..868f7c4 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -4,7 +4,7 @@ import { ReferenceIconGenerationDialog } from "./components/ReferenceIconGenerat
import { CudaSetupDialog } from "./components/CudaSetupDialog";
import { missingCudaDownload } from "./lib/cudaSupport";
import { getWeightDownloadState, subscribeWeightDownloads } from "./lib/weightDownloads";
-import { FolderOpen, Grid2X2, List, ListTodo, Plus, Search, Settings } from "lucide-react";
+import { Add16, FolderOpen16, FolderOpen48, GridView16, GridView16Filled, ListView16, ListView16Filled, Search16, Search32, Settings16, WorkQueue16 } from "./components/ui/icons";
import { useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore, type KeyboardEvent, type RefObject } from "react";
import { DeleteProjectDialog, canConfirmNatively, confirmProjectDeletionNatively } from "./components/DeleteProjectDialog";
import { ProjectCard } from "./components/ProjectCard";
@@ -305,14 +305,14 @@ function App() {
const queueTrigger = (ref: RefObject<HTMLButtonElement>) => (
<button ref={ref} type="button" className="icon-button titlebar-command" onClick={() => setWorkQueueOpen((open) => !open)}
aria-label="Work queue" aria-haspopup="dialog" aria-expanded={workQueueOpen} data-tooltip={queueCount ? `Work queue · ${queueCount} running or queued` : "Work queue"}>
- <ListTodo size={16} aria-hidden="true" />
+ <WorkQueue16 aria-hidden="true" />
{queueCount > 0 && <InfoBadge className="titlebar-command__badge" value={queueCount} />}
</button>
);
const shellActions = <>
<button ref={settingsButton} type="button" className="icon-button titlebar-command" onClick={() => openSettings(updateNeedsAttention(updateState.stage) ? "updates" : "engine")}
aria-label="Settings" data-tooltip={updateNeedsAttention(updateState.stage) ? "Settings · update available" : "Settings"} data-tooltip-shortcut="Ctrl+," aria-keyshortcuts="Control+,">
- <Settings size={16} aria-hidden="true" />
+ <Settings16 aria-hidden="true" />
{updateNeedsAttention(updateState.stage) && <InfoBadge className="titlebar-command__badge titlebar-command__badge--dot" />}
</button>
{queueTrigger(queueButton)}
@@ -384,7 +384,7 @@ function App() {
const showUpdateInfo = ["downloading", "installing", "restart"].includes(updateState.stage) || (updateState.stage === "available" && !updateInfoDismissed);
const newProjectButton = (
<button type="button" className="primary-button" disabled={busy} onClick={() => void chooseCreationFolder()} data-tooltip="New project" data-tooltip-shortcut="Ctrl+N" aria-keyshortcuts="Control+N">
- <Plus size={16} aria-hidden="true" /> New project
+ <Add16 aria-hidden="true" /> New project
</button>
);
@@ -415,14 +415,14 @@ function App() {
placeholder="Search projects"
aria-label="Search projects"
aria-keyshortcuts="Control+F"
- trailing={<span className="ui-textfield__icon" aria-hidden="true"><Search size={16} /></span>}
+ trailing={<span className="ui-textfield__icon" aria-hidden="true"><Search16 /></span>}
/>}
>
{newProjectButton}
- <CommandBarButton icon={<FolderOpen size={16} />} label="Open…" showLabel tooltip="Open project" shortcut="Ctrl+O" aria-label="Open project" disabled={busy} onClick={() => void openFromFolder()} />
+ <CommandBarButton icon={<FolderOpen16 />} label="Open…" showLabel tooltip="Open project" shortcut="Ctrl+O" aria-label="Open project" disabled={busy} onClick={() => void openFromFolder()} />
<CommandBarSeparator />
- <CommandBarButton icon={<Grid2X2 size={16} />} label="Grid view" pressed={projectLayout === "grid"} onClick={() => setProjectLayout("grid")} />
- <CommandBarButton icon={<List size={16} />} label="List view" pressed={projectLayout === "list"} onClick={() => setProjectLayout("list")} />
+ <CommandBarButton icon={projectLayout === "grid" ? <GridView16Filled /> : <GridView16 />} label="Grid view" pressed={projectLayout === "grid"} onClick={() => setProjectLayout("grid")} />
+ <CommandBarButton icon={projectLayout === "list" ? <ListView16Filled /> : <ListView16 />} label="List view" pressed={projectLayout === "list"} onClick={() => setProjectLayout("list")} />
</CommandBar>
{/* An empty library says so in its empty state; a heading counting
"0 projects" above it would only repeat that. */}
@@ -456,19 +456,19 @@ function App() {
/* The compact shared empty state: only the first-run hero below
is large. */
<EmptyState
- icon={<Search size={32} />}
+ icon={<Search32 />}
title={`No results for “${query}”`}
description="Search looks at project names, descriptions and folders."
action={<button type="button" className="secondary-button" onClick={() => setQuery("")}>Clear search</button>}
/>
) : (
<div className="library-empty">
- <FolderOpen size={48} aria-hidden="true" />
+ <FolderOpen48 aria-hidden="true" />
<h3>No projects yet</h3>
<p>Create a project or open an existing project folder.</p>
<div className="library-empty__actions">
{newProjectButton}
- <button type="button" className="secondary-button" disabled={busy} onClick={() => void openFromFolder()}><FolderOpen size={16} aria-hidden="true" /> Open project…</button>
+ <button type="button" className="secondary-button" disabled={busy} onClick={() => void openFromFolder()}><FolderOpen16 aria-hidden="true" /> Open project…</button>
</div>
</div>
)}
diff --git a/src/components/AdditionalSafetensorsEditor.tsx b/src/components/AdditionalSafetensorsEditor.tsx
index 4cb2327..fa9b6e7 100644
--- a/src/components/AdditionalSafetensorsEditor.tsx
+++ b/src/components/AdditionalSafetensorsEditor.tsx
@@ -1,5 +1,5 @@
import { useState } from "react";
-import { FileBox, Plus, Trash2 } from "lucide-react";
+import { Add20, Delete16, ModelFile20 } from "./ui/icons";
import { isDownloadUrl, type AdditionalSafetensor } from "../lib/settings";
import { ComboBox, InfoBar, SettingsCard, SettingsExpander, SettingsGroup, SettingsRow } from "./ui";
@@ -13,10 +13,10 @@ export function AdditionalSafetensorsEditor({ value, disabled, animate, onChange
const [error, setError] = useState<string | null>(null);
const update = (id: string, patch: Partial<AdditionalSafetensor>) => onChange(value.map((file) => file.id === id ? { ...file, ...patch } : file));
return <SettingsGroup heading={`Additional safetensors (${value.length})`}>
- {value.map((file, index) => <SettingsExpander key={`${file.id}-${file.url}`} icon={<FileBox size={20} />} header={file.name || "Additional safetensor"}
+ {value.map((file, index) => <SettingsExpander key={`${file.id}-${file.url}`} icon={<ModelFile20 />} header={file.name || "Additional safetensor"}
description={<span data-tooltip={file.downloadedPath}>{file.downloadedPath ? "Downloaded" : "Download required"}</span>} defaultExpanded={!file.downloadedPath}
control={<button type="button" className="icon-button" disabled={disabled} aria-label={`Remove additional safetensor ${index + 1}`} data-tooltip="Remove"
- onClick={() => onChange(value.filter((entry) => entry.id !== file.id))}><Trash2 size={16} /></button>}>
+ onClick={() => onChange(value.filter((entry) => entry.id !== file.id))}><Delete16 /></button>}>
<SettingsRow header="Name">
<input className="text-field settings-field" aria-label={`Additional safetensor ${index + 1} name`} value={file.name} disabled={disabled}
onChange={(event) => update(file.id, { name: event.target.value })} />
@@ -36,7 +36,7 @@ export function AdditionalSafetensorsEditor({ value, disabled, animate, onChange
}} options={[{ value: "", label: "Additional file" }, { value: "promptEmbedding", label: "Animate conditioning" }]} />
</SettingsRow>}
</SettingsExpander>)}
- <SettingsCard icon={<Plus size={20} />} header="Add a file" description="Downloads with this generator into your weights folder">
+ <SettingsCard icon={<Add20 />} header="Add a file" description="Downloads with this generator into your weights folder">
<input className="text-field settings-field" aria-label="Add additional safetensor URL" value={url} disabled={disabled} placeholder="https://…" spellCheck={false}
onChange={(event) => setUrl(event.target.value)} />
<button type="button" className="secondary-button" disabled={disabled || !isDownloadUrl(url) || value.some((file) => file.url === url.trim())} onClick={() => {
diff --git a/src/components/LoraSettings.tsx b/src/components/LoraSettings.tsx
index 7db812c..a22cd47 100644
--- a/src/components/LoraSettings.tsx
+++ b/src/components/LoraSettings.tsx
@@ -1,4 +1,4 @@
-import { ArrowDown, ArrowUp, Download, Layers, LoaderCircle, Plus, Trash2, Wrench } from "lucide-react";
+import { Add20, ArrowDown16, ArrowUp16, Delete16, Download16, Lora20, Spinner16, Wrench16 } from "./ui/icons";
import "../styles/loras.css";
import { useEffect, useRef, useState, useSyncExternalStore } from "react";
import { highestLoraStepOverride, isLoraStepOverride, loadLoras, saveLoras, subscribeLoras, type Lora, type TemplateLora } from "../lib/loras";
@@ -28,7 +28,7 @@ export function LoraLibrary({ onAdd, onEdit }: { onAdd: () => void; onEdit: (id:
return () => { window.removeEventListener("focus", refresh); window.clearInterval(timer); };
}, []);
return <SettingsGroup heading="LoRAs">
- <SettingsCard icon={<Plus size={20} />} header="Add a LoRA" description="Download adapters or add local files, then turn them on in a generator">
+ <SettingsCard icon={<Add20 />} header="Add a LoRA" description="Download adapters or add local files, then turn them on in a generator">
<button className="secondary-button" type="button" onClick={onAdd}>Add LoRA</button>
</SettingsCard>
<div className="settings-card-list" role="list" aria-label="LoRAs">
@@ -36,15 +36,15 @@ export function LoraLibrary({ onAdd, onEdit }: { onAdd: () => void; onEdit: (id:
const active = download?.active && download.loraId === lora.id;
const preparing = active && download?.phase === "preparing";
const percent = download ? Math.floor(weightDownloadProgress(download)) : 0;
- return <OpenableCard key={lora.id} icon={<Layers size={20} />} header={lora.name} openLabel={`Edit ${lora.name} LoRA`} onOpen={() => onEdit(lora.id)}
+ return <OpenableCard key={lora.id} icon={<Lora20 />} header={lora.name} openLabel={`Edit ${lora.name} LoRA`} onOpen={() => onEdit(lora.id)}
description={<span data-tooltip={lora.path || undefined}>{active ? preparing ? "Preparing…" : `Downloading · ${percent}%` : lora.needsPreparation ? "Needs preparation" : lora.path ? "Available" : "Not downloaded"}</span>}
progress={active && !preparing && <ProgressBar className="settings-progress" value={weightDownloadProgress(download!)} aria-label={`Downloading ${lora.name}`} />}
actions={<>
{lora.path && <button className="icon-button" type="button" disabled={!desktop || download?.active} aria-label={`Prepare LoRA ${lora.name}`} data-tooltip="Prepare missing timestep grid"
- onClick={() => { setError(null); void prepareLora(lora).catch((reason) => setError(String(reason))); }}>{preparing ? <LoaderCircle size={16} className="spin" /> : <Wrench size={16} />}</button>}
+ onClick={() => { setError(null); void prepareLora(lora).catch((reason) => setError(String(reason))); }}>{preparing ? <Spinner16 className="spin" /> : <Wrench16 />}</button>}
{lora.url && !lora.path
- ? <button className="icon-button" type="button" disabled={!desktop || download?.active} aria-label={`Download LoRA ${lora.name}`} data-tooltip="Download" onClick={() => void downloadLora(lora.id)}><Download size={16} /></button>
- : <button className="icon-button" type="button" disabled={Boolean(download?.active)} aria-label={`Remove LoRA ${lora.name}`} data-tooltip="Remove" onClick={() => void removeLora(lora.id).catch((reason) => setError(String(reason)))}><Trash2 size={16} /></button>}
+ ? <button className="icon-button" type="button" disabled={!desktop || download?.active} aria-label={`Download LoRA ${lora.name}`} data-tooltip="Download" onClick={() => void downloadLora(lora.id)}><Download16 /></button>
+ : <button className="icon-button" type="button" disabled={Boolean(download?.active)} aria-label={`Remove LoRA ${lora.name}`} data-tooltip="Remove" onClick={() => void removeLora(lora.id).catch((reason) => setError(String(reason)))}><Delete16 /></button>}
</>} />;
})}
</div>
@@ -124,17 +124,17 @@ export function TemplateLorasEditor({ value, onChange }: { value: TemplateLora[]
{value.map((entry, index) => {
const lora = library.find(({ id }) => id === entry.loraId);
const name = lora?.name ?? "Missing LoRA";
- return <SettingsCard key={entry.loraId} className="template-lora" icon={<Layers size={20} />} header={`${index + 1}. ${name}`}
+ return <SettingsCard key={entry.loraId} className="template-lora" icon={<Lora20 />} header={`${index + 1}. ${name}`}
description={!lora?.path ? (lora?.url ? "Download required" : "File unavailable") : undefined}>
<label className="template-lora__strength">Strength<input className="text-field settings-field settings-field--number" type="number" step="0.1" aria-label={`${name} strength`} value={entry.strength}
onChange={(event) => { const strength = Number(event.target.value); if (event.target.value && Number.isFinite(strength)) update(index, { strength }); }} /></label>
- <button className="icon-button" type="button" aria-label={`Move ${name} up`} data-tooltip="Move up" disabled={index === 0} onClick={() => move(index, -1)}><ArrowUp size={16} /></button>
- <button className="icon-button" type="button" aria-label={`Move ${name} down`} data-tooltip="Move down" disabled={index === value.length - 1} onClick={() => move(index, 1)}><ArrowDown size={16} /></button>
- <button className="icon-button" type="button" aria-label={`Deactivate and remove ${name}`} data-tooltip="Remove" onClick={() => onChange(value.filter((_, i) => i !== index))}><Trash2 size={16} /></button>
+ <button className="icon-button" type="button" aria-label={`Move ${name} up`} data-tooltip="Move up" disabled={index === 0} onClick={() => move(index, -1)}><ArrowUp16 /></button>
+ <button className="icon-button" type="button" aria-label={`Move ${name} down`} data-tooltip="Move down" disabled={index === value.length - 1} onClick={() => move(index, 1)}><ArrowDown16 /></button>
+ <button className="icon-button" type="button" aria-label={`Deactivate and remove ${name}`} data-tooltip="Remove" onClick={() => onChange(value.filter((_, i) => i !== index))}><Delete16 /></button>
<ToggleSwitch checked={entry.enabled} aria-label={`Enable ${name}`} onChange={(enabled) => update(index, { enabled })} />
</SettingsCard>;
})}
- <SettingsCard icon={<Plus size={20} />} header="Add a LoRA" description="A strength of 0 turns an adapter off. Missing active LoRAs download with the generator.">
+ <SettingsCard icon={<Add20 />} header="Add a LoRA" description="A strength of 0 turns an adapter off. Missing active LoRAs download with the generator.">
<ComboBox aria-label="Add LoRA to generator" value="" disabled={!available.length} placeholder={available.length ? "Choose a LoRA" : "None available"}
onChange={(loraId) => { if (loraId) onChange([...value, { loraId, enabled: true, strength: 1 }]); }}
options={available.map((lora) => ({ value: lora.id, label: lora.name }))} />
diff --git a/src/components/OpenableCard.tsx b/src/components/OpenableCard.tsx
index a152614..28ab8d4 100644
--- a/src/components/OpenableCard.tsx
+++ b/src/components/OpenableCard.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from "lucide-react";
+import { ChevronRight16 } from "./ui/icons";
import type { ReactNode } from "react";
/* A settings card that opens something (a generator, a LoRA) AND carries its
@@ -19,7 +19,7 @@ export function OpenableCard({ icon, header, description, progress, openLabel, o
</span>
<span className="ui-settings-card__control settings-open-card__control">
{actions}
- <ChevronRight size={16} aria-hidden="true" className="ui-settings-card__glyph" />
+ <ChevronRight16 aria-hidden="true" className="ui-settings-card__glyph" />
</span>
</div>;
}
diff --git a/src/components/ProjectCard.tsx b/src/components/ProjectCard.tsx
index 2b12386..ecdf69b 100644
--- a/src/components/ProjectCard.tsx
+++ b/src/components/ProjectCard.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink, Film, FolderOpen, Image as ImageIcon, MoreHorizontal, Trash2 } from "lucide-react";
+import { Delete16, Film32, FolderOpen16, Image32, More16, OpenExternal16 } from "./ui/icons";
import { forwardRef, type KeyboardEvent, type MouseEvent, type Ref } from "react";
import { resolutionLabel, visibleClipAt } from "../lib/export";
import type { ProjectRecord } from "../lib/project";
@@ -73,14 +73,14 @@ export const ProjectCard = forwardRef(function ProjectCard(
const firstAsset = config.generationType === "image" ? config.assets.find((asset) => asset.id === config.imageScene?.outputAssetId) : firstClip ? config.assets.find((asset) => asset.id === firstClip.assetId) : undefined;
const posterTimeMs = firstClip?.sourceStartMs ?? 0;
const image = config.generationType === "image";
- const Glyph = image ? ImageIcon : Film;
+ const Glyph = image ? Image32 : Film32;
const meta = `Edited ${relativeDate(config.updatedAt)} · ${image ? "Image" : durationLabel(config.brief.targetDurationSeconds)}`;
const prompt = config.brief.prompt.trim();
const items: MenuEntry[] = [
- { id: "open", label: "Open", icon: <ExternalLink size={16} />, onSelect: () => onOpen(project) },
- ...(onReveal ? [{ id: "reveal", label: "Show in File Explorer", icon: <FolderOpen size={16} />, onSelect: () => onReveal(project) }] : []),
- ...(onDelete ? [{ separator: true } as const, { id: "delete", label: "Delete project…", icon: <Trash2 size={16} />, onSelect: () => onDelete(project) }] : []),
+ { id: "open", label: "Open", icon: <OpenExternal16 />, onSelect: () => onOpen(project) },
+ ...(onReveal ? [{ id: "reveal", label: "Show in File Explorer", icon: <FolderOpen16 />, onSelect: () => onReveal(project) }] : []),
+ ...(onDelete ? [{ separator: true } as const, { id: "delete", label: "Delete project…", icon: <Delete16 />, onSelect: () => onDelete(project) }] : []),
];
const openMenu = (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => {
onSelect?.(project);
@@ -108,7 +108,7 @@ export const ProjectCard = forwardRef(function ProjectCard(
onContextMenu={openMenu}
>
<div className={`project-card__thumb${firstAsset ? " project-card__thumb--media" : ""}`} style={style}>
- <Glyph className="project-card__glyph" size={32} aria-hidden="true" />
+ <Glyph className="project-card__glyph" aria-hidden="true" />
{firstAsset && <MediaThumbnail
key={`${firstAsset.id}-${posterTimeMs}`}
folderPath={project.folderPath}
@@ -132,7 +132,7 @@ export const ProjectCard = forwardRef(function ProjectCard(
data-tooltip="More options"
onClick={(event) => { event.stopPropagation(); onSelect?.(project); menu.open(event.currentTarget, items, { placement: "bottom" }); }}
onDoubleClick={(event) => event.stopPropagation()}
- ><MoreHorizontal size={16} /></button>
+ ><More16 /></button>
</div>
{/* Outside the tile: the menu is portalled, but React events still bubble
through the component tree, and a right-click in the menu must not
diff --git a/src/components/ProjectWorkspace.tsx b/src/components/ProjectWorkspace.tsx
index 738a6bf..780aa97 100644
--- a/src/components/ProjectWorkspace.tsx
+++ b/src/components/ProjectWorkspace.tsx
@@ -1,4 +1,4 @@
-import { ArrowLeft, BookOpen, Bot, ChevronDown, Download, Film, Image, Redo2, Save, Sparkles, Undo2 } from "lucide-react";
+import { Agent16, Agent16Filled, Back16, ChevronDown12, Download16, Download16Filled, Film16, Film16Filled, Image16, Image16Filled, Redo16, References16, References16Filled, Save16, Sparkle16, Sparkle16Filled, Undo16 } from "./ui/icons";
import { ImageEditor } from "./workspace/ImageEditor";
import { useEffect, useId, useMemo, useRef, useState, useSyncExternalStore, type ReactNode } from "react";
import type { GenerationJob, ProjectConfig, ProjectRecord } from "../lib/project";
@@ -224,7 +224,11 @@ export function ProjectWorkspace({ project, initialView = "timeline", runtime =
useShortcut("Ctrl+Shift+A", toggleAgent, { enabled: idle, allowInInput: true });
useShortcut("Alt+ArrowLeft", goBack, { enabled: idle });
- const viewIcon = (id: ShownView) => id === "timeline" ? <Film size={16} /> : id === "generator" ? <Sparkles size={16} /> : id === "references" ? <BookOpen size={16} /> : id === "export" ? <Download size={16} /> : <Image size={16} />;
+ const viewIcon = (id: ShownView, selected: boolean) => id === "timeline" ? (selected ? <Film16Filled /> : <Film16 />)
+ : id === "generator" ? (selected ? <Sparkle16Filled /> : <Sparkle16 />)
+ : id === "references" ? (selected ? <References16Filled /> : <References16 />)
+ : id === "export" ? (selected ? <Download16Filled /> : <Download16 />)
+ : selected ? <Image16Filled /> : <Image16 />;
const shortcutOf = (index: number) => `Ctrl+${index + 1}`;
return <div className="project-shell">
@@ -245,27 +249,27 @@ export function ProjectWorkspace({ project, initialView = "timeline", runtime =
<TitleBar
className="project-titlebar"
- leading={<button type="button" className="icon-button" onClick={goBack} aria-label="Back to project library" data-tooltip="Back to projects" data-tooltip-shortcut="Alt+Left" aria-keyshortcuts="Alt+ArrowLeft"><ArrowLeft size={16} /></button>}
- title={<button type="button" className="project-title" aria-label={`Edit project settings for ${config.name}`} aria-haspopup="dialog" aria-expanded={editingProject} data-tooltip="Project settings" onClick={() => { session.dismissError(); setEditingProject(true); }}><span className="project-title__name">{config.name}</span><ChevronDown size={12} aria-hidden="true" /></button>}
+ leading={<button type="button" className="icon-button" onClick={goBack} aria-label="Back to project library" data-tooltip="Back to projects" data-tooltip-shortcut="Alt+Left" aria-keyshortcuts="Alt+ArrowLeft"><Back16 /></button>}
+ title={<button type="button" className="project-title" aria-label={`Edit project settings for ${config.name}`} aria-haspopup="dialog" aria-expanded={editingProject} data-tooltip="Project settings" onClick={() => { session.dismissError(); setEditingProject(true); }}><span className="project-title__name">{config.name}</span><ChevronDown12 aria-hidden="true" /></button>}
actions={<>
- <button type="button" className="icon-button" disabled={!canUndo} onClick={() => session.undo()} aria-label="Undo" data-tooltip="Undo" data-tooltip-shortcut="Ctrl+Z" aria-keyshortcuts="Control+Z"><Undo2 size={16} /></button>
- <button type="button" className="icon-button" disabled={!canRedo} onClick={() => session.redo()} aria-label="Redo" data-tooltip="Redo" data-tooltip-shortcut="Ctrl+Y" aria-keyshortcuts="Control+Y Control+Shift+Z"><Redo2 size={16} /></button>
+ <button type="button" className="icon-button" disabled={!canUndo} onClick={() => session.undo()} aria-label="Undo" data-tooltip="Undo" data-tooltip-shortcut="Ctrl+Z" aria-keyshortcuts="Control+Z"><Undo16 /></button>
+ <button type="button" className="icon-button" disabled={!canRedo} onClick={() => session.redo()} aria-label="Redo" data-tooltip="Redo" data-tooltip-shortcut="Ctrl+Y" aria-keyshortcuts="Control+Y Control+Shift+Z"><Redo16 /></button>
<span className="titlebar-separator" aria-hidden="true" />
<div className="project-commands">
{imageProject && (
<button type="button" className="secondary-button" disabled={imageExportDisabled} onClick={() => void exportImage()} data-tooltip="Save the image as JPG or PNG" data-tooltip-shortcut="Ctrl+E">
- <Download size={16} aria-hidden="true" /> {exportingImage ? "Exporting…" : "Export"}
+ <Download16 aria-hidden="true" /> {exportingImage ? "Exporting…" : "Export"}
</button>
)}
{/* The standing "All changes saved" pill is gone; the button itself is
the save state. Off means the file on disk already matches what is
on screen. */}
<button type="button" className="primary-button" onClick={() => void save()} disabled={saving || !dirty} data-tooltip={saving ? "Saving…" : dirty ? "Save" : "Everything is saved"} data-tooltip-shortcut="Ctrl+S" aria-keyshortcuts="Control+S">
- <Save size={16} aria-hidden="true" /> {saving ? "Saving…" : "Save"}
+ <Save16 aria-hidden="true" /> {saving ? "Saving…" : "Save"}
</button>
</div>
<span className="titlebar-separator" aria-hidden="true" />
- <button ref={agentToggle} type="button" className={`icon-button${agentOpen ? " icon-button--checked" : ""}`} aria-label="Agent" aria-pressed={agentOpen} aria-controls={`${panelId}-agent`} data-tooltip={agentOpen ? "Hide agent" : "Show agent"} data-tooltip-shortcut="Ctrl+Shift+A" aria-keyshortcuts="Control+Shift+A" onClick={toggleAgent}><Bot size={16} /></button>
+ <button ref={agentToggle} type="button" className={`icon-button${agentOpen ? " icon-button--checked" : ""}`} aria-label="Agent" aria-pressed={agentOpen} aria-controls={`${panelId}-agent`} data-tooltip={agentOpen ? "Hide agent" : "Show agent"} data-tooltip-shortcut="Ctrl+Shift+A" aria-keyshortcuts="Control+Shift+A" onClick={toggleAgent}>{agentOpen ? <Agent16Filled /> : <Agent16 />}</button>
{titleBarActions}
</>}
>
@@ -280,7 +284,7 @@ export function ProjectWorkspace({ project, initialView = "timeline", runtime =
label: id === "generator" && running > 0
? <span className="project-views__label" data-tooltip={`${running} generation${running === 1 ? "" : "s"} running or queued`} data-tooltip-shortcut={shortcutOf(views.indexOf(id))}><span className="project-views__name" data-label={VIEW_LABELS[id]}>{VIEW_LABELS[id]}</span><InfoBadge value={running} severity="informational" /></span>
: <span className="project-views__label" data-tooltip={VIEW_LABELS[id]} data-tooltip-shortcut={shortcutOf(views.indexOf(id))}><span className="project-views__name" data-label={VIEW_LABELS[id]}>{VIEW_LABELS[id]}</span></span>,
- icon: viewIcon(id),
+ icon: viewIcon(id, id === view),
}))}
/>
</TitleBar>
diff --git a/src/components/SettingsView.tsx b/src/components/SettingsView.tsx
index 9a24714..1028aef 100644
--- a/src/components/SettingsView.tsx
+++ b/src/components/SettingsView.tsx
@@ -1,8 +1,10 @@
import { AdditionalSafetensorsEditor } from "./AdditionalSafetensorsEditor";
import {
- Activity, AlertCircle, ArrowLeft, Bot, Check, ChevronRight, Cpu, Download, FileBox, FileText, Folder, Gauge, Image, ListOrdered,
- LoaderCircle, MoreHorizontal, Palette, Plus, RefreshCw, RotateCcw, Settings2, Sparkles, SquarePen, Trash2, Video, Zap,
-} from "lucide-react";
+ Add20, Agent16, Agent16Filled, Agent20, Back16, Check14, Check16, Check20, ChevronRight20, Delete16, Diagnostics16,
+ Diagnostics16Filled, Download16, Download20, Error16, Error20, Flash20, Folder20, Gauge20, Gpu20, Image20, ModelFile20, More16,
+ Options20, Palette16, Palette16Filled, Palette20, Refresh16, Refresh16Filled, Rename20, Reset16, Sparkle20, Spinner16,
+ Spinner20, Steps20, TextFile20, Video16, Video16Filled, Video20,
+} from "./ui/icons";
import { useCallback, useEffect, useRef, useState, useSyncExternalStore, type KeyboardEvent, type ReactNode } from "react";
import { revealDiagnosticLog } from "../lib/diagnostics";
import { isTauri } from "../lib/persistence";
@@ -82,7 +84,7 @@ function DownloadStatus({ state, templateName, onError }: { state: DownloadState
: `${state.completed}/${state.files} files · ${(state.downloaded / 1024 ** 3).toFixed(2)} GB${state.total ? ` / ${(state.total / 1024 ** 3).toFixed(2)} GB` : ""}`
: state.preparePath ? "LoRA prepared" : "Download complete");
return <div className="ui-settings-card settings-download-status" role="status">
- <span className="ui-settings-card__icon" aria-hidden="true">{state.error ? <AlertCircle size={20} /> : state.active ? <Download size={20} /> : <Check size={20} />}</span>
+ <span className="ui-settings-card__icon" aria-hidden="true">{state.error ? <Error20 /> : state.active ? <Download20 /> : <Check20 />}</span>
<span className="ui-settings-card__text">
<span className="ui-settings-card__header">{state.name ?? templateName}</span>
<span className="ui-settings-card__description">{text}</span>
@@ -102,10 +104,10 @@ function ReferenceIconSetting({ templates }: { templates: GeneratorTemplateSetti
const available = availableReferenceIconGenerators(templates);
const selected = referenceIconGenerator(templates, chosenId);
return <SettingsGroup heading="Reference icons">
- <SettingsCard icon={<Sparkles size={20} />} header="Automatic reference icon generation">
+ <SettingsCard icon={<Sparkle20 />} header="Automatic reference icon generation">
<ToggleSwitch checked={automation !== "disabled"} aria-label="Automatic reference icon generation" onChange={(on) => saveReferenceIconAutomation(on ? "ask" : "disabled")} />
</SettingsCard>
- <SettingsCard icon={<Image size={20} />} header="Reference icon generator">
+ <SettingsCard icon={<Image20 />} header="Reference icon generator">
<ComboBox aria-label="Reference icon generator" disabled={!available.length} value={selected?.id ?? ""} placeholder="No available generators"
onChange={saveReferenceIconGeneratorId} options={available.map((template) => ({ value: template.id, label: template.name }))} />
</SettingsCard>
@@ -127,7 +129,7 @@ function AppearanceSetting() {
saveTheme(next);
applyTheme(next);
};
- return <SettingsCard icon={<Palette size={20} />} header="App theme" description="Select which app theme to display">
+ return <SettingsCard icon={<Palette20 />} header="App theme" description="Select which app theme to display">
<ComboBox aria-label="App theme" value={choice} onChange={pick} options={themeOptions} />
</SettingsCard>;
}
@@ -139,7 +141,7 @@ const endpointProviders: { id: EndpointProviderId; label: string; detail: string
id: "openrouter",
label: "OpenRouter",
detail: "Use models from openrouter.ai through its OpenAI-compatible API.",
- icon: <Bot size={20} />,
+ icon: <Agent20 />,
endpointPlaceholder: "https://openrouter.ai/api/v1",
keyRequired: true,
},
@@ -147,7 +149,7 @@ const endpointProviders: { id: EndpointProviderId; label: string; detail: string
id: "local",
label: "Local OpenAI-compatible",
detail: "Use a server on this computer or network that implements /models and /chat/completions.",
- icon: <Cpu size={20} />,
+ icon: <Gpu20 />,
endpointPlaceholder: "http://localhost:1234/v1",
keyRequired: false,
},
@@ -188,7 +190,7 @@ function PromptLlmSetting({ desktop }: { desktop: boolean }) {
const configured = isEndpointProviderConfigured(provider.id, value);
const listId = `llm-models-${provider.id}`;
return <SettingsExpander key={provider.id} className="llm-provider" icon={provider.icon} header={provider.label} description={provider.detail}
- control={<span className="llm-provider__status">{configured ? <><Check size={14} aria-hidden="true" /> Configured</> : "Not configured"}</span>}>
+ control={<span className="llm-provider__status">{configured ? <><Check14 aria-hidden="true" /> Configured</> : "Not configured"}</span>}>
<SettingsRow header="Endpoint">
<TextField className="settings-field" aria-label={`${provider.label} endpoint`} value={value.endpoint} spellCheck={false} placeholder={provider.endpointPlaceholder} onChange={(next) => update(provider.id, "endpoint", next)} />
</SettingsRow>
@@ -199,7 +201,7 @@ function PromptLlmSetting({ desktop }: { desktop: boolean }) {
<TextField className="settings-field" list={listId} aria-label={`${provider.label} model`} value={value.model} spellCheck={false} placeholder="Select or enter a model ID" onChange={(next) => update(provider.id, "model", next)} />
<datalist id={listId}>{models[provider.id].map((model) => <option value={model} key={model} />)}</datalist>
<button type="button" className="secondary-button" disabled={!desktop || !value.endpoint.trim() || loading === provider.id} onClick={() => void discover(provider.id)} data-tooltip={desktop ? "Load models from this endpoint" : "Model discovery is available in the desktop app"}>
- {loading === provider.id ? <LoaderCircle className="spin" size={16} /> : <RefreshCw size={16} />} Load models
+ {loading === provider.id ? <Spinner16 className="spin" /> : <Refresh16 />} Load models
</button>
</SettingsRow>
{errors[provider.id] && <div className="settings-expander-message"><InfoBar severity="error" message={errors[provider.id]} /></div>}
@@ -230,7 +232,7 @@ function DiagnosticsSetting({ desktop, status, onBackendChange }: { desktop: boo
};
return <SettingsGroup>
- <SettingsCard icon={<Cpu size={20} />} header="GPU backend">
+ <SettingsCard icon={<Gpu20 />} header="GPU backend">
<ComboBox aria-label="GPU backend" value={cudaAvailable ? backend : "vulkan"} disabled={!desktop || !cudaAvailable} onChange={(value) => {
const next = value as InferenceBackend;
saveInferenceBackend(next);
@@ -238,10 +240,10 @@ function DiagnosticsSetting({ desktop, status, onBackendChange }: { desktop: boo
onBackendChange();
}} options={[...(cudaAvailable ? [{ value: "cuda", label: "CUDA" }] : []), { value: "vulkan", label: "Vulkan" }]} />
</SettingsCard>
- <SettingsCard icon={<Settings2 size={20} />} header="Enable debug options" description="Show Debug Prompt in scene settings and the image inspector, and Debug Icon Prompt in reference details">
+ <SettingsCard icon={<Options20 />} header="Enable debug options" description="Show Debug Prompt in scene settings and the image inspector, and Debug Icon Prompt in reference details">
<ToggleSwitch checked={debugEnabled} aria-label="Enable debug options" onChange={saveDebugOptionsEnabled} />
</SettingsCard>
- <SettingsCard icon={opening ? <LoaderCircle className="spin" size={20} /> : <FileText size={20} />} header="Show log file" actionIcon="external" disabled={!desktop || opening} onClick={() => void reveal()} />
+ <SettingsCard icon={opening ? <Spinner20 className="spin" /> : <TextFile20 />} header="Show log file" actionIcon="external" disabled={!desktop || opening} onClick={() => void reveal()} />
{error && <InfoBar severity="error" title="Couldn’t show the log file" message={error} onClose={() => setError(null)} />}
</SettingsGroup>;
}
@@ -249,11 +251,11 @@ function DiagnosticsSetting({ desktop, status, onBackendChange }: { desktop: boo
/* --- The page ------------------------------------------------------------------------ */
const TABS = [
- { id: "engine", label: "Generator", icon: Video },
- { id: "llms", label: "Agents", icon: Bot },
- { id: "appearance", label: "Appearance", icon: Palette },
- { id: "diagnostics", label: "Diagnostics", icon: Activity },
- { id: "updates", label: "Updates", icon: RefreshCw },
+ { id: "engine", label: "Generator", icon: Video16, selectedIcon: Video16Filled },
+ { id: "llms", label: "Agents", icon: Agent16, selectedIcon: Agent16Filled },
+ { id: "appearance", label: "Appearance", icon: Palette16, selectedIcon: Palette16Filled },
+ { id: "diagnostics", label: "Diagnostics", icon: Diagnostics16, selectedIcon: Diagnostics16Filled },
+ { id: "updates", label: "Updates", icon: Refresh16, selectedIcon: Refresh16Filled },
] as const;
type TabId = (typeof TABS)[number]["id"];
@@ -485,12 +487,12 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl
: value.trim() ? <span className="settings-path__value" data-tooltip={value}>{middleEllipsis(value)}</span> : "Not set";
return <div className={`settings-path settings-path--${state}`} key={field.id}>
<SettingsCard
- icon={field.directory ? <Folder size={20} /> : <FileBox size={20} />}
+ icon={field.directory ? <Folder20 /> : <ModelFile20 />}
header={<>{field.label}{!field.required && <span className="settings-path__optional"> (optional)</span>}</>}
description={description}
>
{state !== "unset" && <span className="settings-path__state" data-tooltip={state === "found" ? "Found" : undefined}>
- {state === "found" ? <Check size={16} aria-hidden="true" /> : state === "missing" ? <AlertCircle size={16} aria-hidden="true" /> : null}
+ {state === "found" ? <Check16 aria-hidden="true" /> : state === "missing" ? <Error16 aria-hidden="true" /> : null}
<span className={state === "found" ? "sr-only" : undefined}>{stateLabel[state]}</span>
</span>}
<button type="button" className="secondary-button" onClick={() => void browse(field)} disabled={!desktop || Boolean(downloading)}
@@ -499,7 +501,7 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl
</button>
<button type="button" className="icon-button" aria-label={`More options for ${field.label}`} data-tooltip="More options" aria-haspopup="menu"
disabled={Boolean(downloading)} onClick={(event) => setPathMenu({ field, anchor: event.currentTarget })}>
- <MoreHorizontal size={16} />
+ <More16 />
</button>
</SettingsCard>
{showAdvancedOptions && <WeightSourcesEditor label={field.label} sources={selectedTemplate.sources?.[field.id] ?? []} disabled={Boolean(downloading)} onChange={(sources) => updateSources(field.id, sources)} />}
@@ -508,8 +510,8 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl
const generatorEditor = editingTemplate && <>
<div className="settings-page__actions">
- {templateNeedsDownload(selectedTemplate) && <button type="button" className="primary-button" disabled={!desktop || downloadState?.active} onClick={() => void downloadTemplateWeights(selectedTemplate.id)}><Download size={16} /> Download weights</button>}
- <button type="button" className="secondary-button" disabled={Boolean(downloading)} onClick={clearAll}><RotateCcw size={16} /> Clear generator paths</button>
+ {templateNeedsDownload(selectedTemplate) && <button type="button" className="primary-button" disabled={!desktop || downloadState?.active} onClick={() => void downloadTemplateWeights(selectedTemplate.id)}><Download16 /> Download weights</button>}
+ <button type="button" className="secondary-button" disabled={Boolean(downloading)} onClick={clearAll}><Reset16 /> Clear generator paths</button>
</div>
{downloadStatus}
<InfoBar severity={engineSeverity(status, desktop)} title={engineHeadline(status, desktop)} message={<>
@@ -518,14 +520,14 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl
</>} />
<SettingsGroup heading="General">
- <SettingsCard icon={<SquarePen size={20} />} header="Name">
+ <SettingsCard icon={<Rename20 />} header="Name">
<input ref={nameField} className="text-field settings-field" aria-label="Generator name" value={selectedTemplate.name} onChange={(event) => updateTemplate({ name: event.target.value })} onBlur={() => { if (!selectedTemplate.name.trim()) updateTemplate({ name: "Untitled generator" }); }} />
</SettingsCard>
- <SettingsCard icon={<Video size={20} />} header="Mode">
+ <SettingsCard icon={<Video20 />} header="Mode">
<ComboBox aria-label="Generator mode" value={selectedTemplate.mode ?? "prompt"} onChange={(value) => updateTemplate({ mode: value === "animate" ? "animate" : "prompt" })}
options={[{ value: "prompt", label: "Text prompt" }, { value: "animate", label: "Animate (reference video)" }]} />
</SettingsCard>
- <SettingsCard icon={<ListOrdered size={20} />} header="Default steps">
+ <SettingsCard icon={<Steps20 />} header="Default steps">
<input className="text-field settings-field settings-field--number" aria-label="Generator default steps" type="number" min={2} max={MAX_GENERATION_STEPS} step={1} value={selectedTemplate.defaultSteps} onChange={(event) => {
const value = Number(event.target.value);
if (Number.isInteger(value) && value >= 2 && value <= MAX_GENERATION_STEPS) updateTemplate({ defaultSteps: value });
@@ -534,11 +536,11 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl
</SettingsGroup>
<SettingsGroup heading="Performance">
- <SettingsCard icon={<Gauge size={20} />} header="Attention">
+ <SettingsCard icon={<Gauge20 />} header="Attention">
<ComboBox aria-label="Generator attention" value={selectedTemplate.attention} onChange={(value) => updateTemplate({ attention: value as AttentionMode })}
options={[{ value: "exact", label: "Exact attention" }, { value: "flash2", label: "Flash attention" }, { value: "sage2", label: "Sage attention" }]} />
</SettingsCard>
- <SettingsCard icon={<Zap size={20} />} header="Enable MotionCache" description={<span id="motion-cache-help">{selectedTemplate.mode === "animate" ? "Unavailable in Animate mode" : "Reuses similar denoising results to reduce computation. May affect detail and motion."}</span>}>
+ <SettingsCard icon={<Flash20 />} header="Enable MotionCache" description={<span id="motion-cache-help">{selectedTemplate.mode === "animate" ? "Unavailable in Animate mode" : "Reuses similar denoising results to reduce computation. May affect detail and motion."}</span>}>
<ToggleSwitch aria-label="Enable MotionCache" aria-describedby="motion-cache-help"
checked={selectedTemplate.mode !== "animate" && Boolean(selectedTemplate.motionCache)} disabled={selectedTemplate.mode === "animate"}
onChange={(on) => updateTemplate({ motionCache: on })} />
@@ -553,7 +555,7 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl
<TemplateLorasEditor value={selectedTemplate.loras ?? []} onChange={(loras) => updateTemplate({ loras })} />
<SettingsGroup heading="Advanced">
- <SettingsCard icon={<Settings2 size={20} />} header="Show advanced options" description="Per-GPU download sources for each model file">
+ <SettingsCard icon={<Options20 />} header="Show advanced options" description="Per-GPU download sources for each model file">
<ToggleSwitch aria-label="Show advanced options" checked={showAdvancedOptions} onChange={setShowAdvancedOptions} />
</SettingsCard>
</SettingsGroup>
@@ -567,7 +569,7 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl
{downloadStatus}
<ReferenceIconSetting templates={templateSettings} />
{generatorSections.filter((section) => section.id === "generators" || section.templates.length > 0).map((section) => <SettingsGroup key={section.id} heading={section.title}>
- {section.id === "generators" && <SettingsCard icon={<Plus size={20} />} header="Add a generator" description="Choose the generator used by default, or open one to edit its model setup">
+ {section.id === "generators" && <SettingsCard icon={<Add20 />} header="Add a generator" description="Choose the generator used by default, or open one to edit its model setup">
<button type="button" className="secondary-button" onClick={addTemplate}>New generator</button>
</SettingsCard>}
<div className="settings-card-list" role="list" aria-label={section.title}>
@@ -576,20 +578,20 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl
const isDefault = template.id === templateSettings.defaultTemplateId;
const active = downloadState?.active && downloadState.templateId === template.id;
const weights = hasDownloadedWeights(template);
- return <OpenableCard key={template.id} icon={<Video size={20} />} header={template.name} openRef={`template:${template.id}`}
+ return <OpenableCard key={template.id} icon={<Video20 />} header={template.name} openRef={`template:${template.id}`}
openLabel={`Edit ${template.name} generator`} onOpen={() => openTemplate(template.id)}
description={active ? downloadState?.phase === "preparing" ? "Preparing LoRA…" : `Downloading · ${Math.floor(downloadPercent)}%`
: `${!needsDownload && isDefault ? "Used by default · " : ""}${templateSummary(template)}`}
progress={active && downloadState?.phase !== "preparing" && <ProgressBar className="settings-progress" value={downloadPercent} aria-label={`Downloading ${template.name} weights`} />}
actions={needsDownload
? <button type="button" className="icon-button" disabled={!desktop || downloadState?.active} onClick={() => void downloadTemplateWeights(template.id)} aria-label={`Download generator ${template.name}`} data-tooltip={`Download ${template.name} weights`}>
- {active ? <LoaderCircle size={16} className="spin" /> : <Download size={16} />}
+ {active ? <Spinner16 className="spin" /> : <Download16 />}
</button>
: <>
{!isDefault && <button type="button" className="secondary-button" onClick={() => makeDefault(template.id)} aria-label={`Set ${template.name} as default`}>Set as default</button>}
<button type="button" className="icon-button" disabled={Boolean(downloadState?.active) || (weights ? !desktop : templateSettings.templates.length === 1)} onClick={() => removeTemplate(template.id)}
aria-label={weights ? `Remove downloaded weights for ${template.name}` : `Remove generator ${template.name}`}
- data-tooltip={weights ? "Remove weights and keep the template" : "Remove generator"}><Trash2 size={16} /></button>
+ data-tooltip={weights ? "Remove weights and keep the template" : "Remove generator"}><Delete16 /></button>
</>} />;
})}
</div>
@@ -610,15 +612,15 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl
back();
}}>
<NavPane aria-label="Settings sections" className="settings-nav" header={
- <button type="button" className="icon-button settings-nav__back" onClick={back} aria-label="Back" data-tooltip="Back"><ArrowLeft size={16} /></button>
+ <button type="button" className="icon-button settings-nav__back" onClick={back} aria-label="Back" data-tooltip="Back"><Back16 /></button>
}>
{TABS.map((item, index) => {
- const Icon = item.icon;
+ const Icon = tab === item.id ? item.selectedIcon : item.icon;
const count = item.id === "engine" ? missing.length : 0;
return <NavItem
key={item.id}
id={`settings-tab-${item.id}`}
- icon={<Icon size={16} />}
+ icon={<Icon />}
label={item.label}
selected={tab === item.id}
badge={count > 0 ? count : undefined}
@@ -643,7 +645,7 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl
{editingTemplate
? <nav className="settings-breadcrumb" aria-label="Breadcrumb">
<button type="button" className="settings-breadcrumb__link" onClick={leaveTemplate}>Generators</button>
- <ChevronRight size={20} aria-hidden="true" className="settings-breadcrumb__separator" />
+ <ChevronRight20 aria-hidden="true" className="settings-breadcrumb__separator" />
<h1 id="settings-subpage-heading" ref={subpageHeading} tabIndex={-1} aria-current="page">{editingTemplate.name || "Untitled generator"}</h1>
</nav>
: <h1 id="settings-page-heading" className="settings-page__title">{current.label}</h1>}
diff --git a/src/components/UpdatePanel.tsx b/src/components/UpdatePanel.tsx
index cab3448..b80d63d 100644
--- a/src/components/UpdatePanel.tsx
+++ b/src/components/UpdatePanel.tsx
@@ -1,4 +1,4 @@
-import { CheckCircle2, Download, RefreshCw, RotateCcw } from "lucide-react";
+import { Download32, Refresh32, Reset32, Success32 } from "./ui/icons";
import { useSyncExternalStore, type ReactNode } from "react";
import type { AppUpdater } from "../lib/updater";
import { Expander, InfoBar, ProgressBar, ProgressRing } from "./ui";
@@ -54,10 +54,10 @@ export function UpdatePanel({ updater, blockReason }: { updater: AppUpdater; blo
const transferring = state.stage === "downloading" || state.stage === "installing";
const glyph: ReactNode = state.stage === "checking" ? <ProgressRing size={32} aria-label="Checking for updates" />
- : state.stage === "current" ? <CheckCircle2 size={32} aria-hidden="true" />
- : state.stage === "restart" ? <RotateCcw size={32} aria-hidden="true" />
- : state.stage === "available" || transferring ? <Download size={32} aria-hidden="true" />
- : <RefreshCw size={32} aria-hidden="true" />;
+ : state.stage === "current" ? <Success32 aria-hidden="true" />
+ : state.stage === "restart" ? <Reset32 aria-hidden="true" />
+ : state.stage === "available" || transferring ? <Download32 aria-hidden="true" />
+ : <Refresh32 aria-hidden="true" />;
const action = state.stage === "disabled" || transferring ? null
: state.stage === "restart"
diff --git a/src/components/WeightSourcesEditor.tsx b/src/components/WeightSourcesEditor.tsx
index 2272ea1..c29eb16 100644
--- a/src/components/WeightSourcesEditor.tsx
+++ b/src/components/WeightSourcesEditor.tsx
@@ -1,5 +1,5 @@
import { useState } from "react";
-import { Plus, Trash2 } from "lucide-react";
+import { Add16, Delete16 } from "./ui/icons";
import { isDownloadUrl, type WeightSource } from "../lib/settings";
import { Expander, InfoBar } from "./ui";
@@ -21,13 +21,13 @@ export function WeightSourcesEditor({ label, sources, disabled, onChange }: {
}} /></label>
<label>GPU model<input className="text-field" aria-label={`${label} variant ${index + 1} GPU model`} defaultValue={source.gpuModel} placeholder="Any GPU" disabled={disabled} onBlur={(event) => update(index, { gpuModel: event.target.value })} /></label>
<label>Minimum VRAM (GB)<input className="text-field" aria-label={`${label} variant ${index + 1} minimum VRAM`} type="number" min={0} step={1} value={source.minVramGb} disabled={disabled} onChange={(event) => update(index, { minVramGb: Math.max(0, Number(event.target.value) || 0) })} /></label>
- <button type="button" className="icon-button" disabled={disabled} onClick={() => onChange(sources.filter((_, i) => i !== index))} aria-label={`Remove ${label} variant ${index + 1}`} data-tooltip="Remove variant"><Trash2 size={16} /></button>
+ <button type="button" className="icon-button" disabled={disabled} onClick={() => onChange(sources.filter((_, i) => i !== index))} aria-label={`Remove ${label} variant ${index + 1}`} data-tooltip="Remove variant"><Delete16 /></button>
</div>)}
<div className="weight-source-add">
<input className="text-field" aria-label={`Add ${label} download URL`} value={url} disabled={disabled} placeholder="https://…" onChange={(event) => setUrl(event.target.value)} />
<button type="button" className="secondary-button" disabled={disabled || !isDownloadUrl(url) || sources.some((source) => source.url === url.trim())} onClick={() => {
onChange([...sources, { url: url.trim(), gpuModel: "", minVramGb: 0 }]); setUrl("");
- }}><Plus size={16} /> Add URL</button>
+ }}><Add16 /> Add URL</button>
</div>
{error && <InfoBar severity="error" message={error} onClose={() => setError(null)} />}
</Expander>;
diff --git a/src/components/WorkQueuePanel.tsx b/src/components/WorkQueuePanel.tsx
index 45592af..8275cef 100644
--- a/src/components/WorkQueuePanel.tsx
+++ b/src/components/WorkQueuePanel.tsx
@@ -1,4 +1,4 @@
-import { Check, Clock3, Download, Film, ListTodo, TriangleAlert, X } from "lucide-react";
+import { Check16, Clock16, Dismiss16, Download16, Film16, Warning16, WorkQueue32 } from "./ui/icons";
import { useState, useSyncExternalStore, type RefObject } from "react";
import { GENERATION_FRAME_RATE } from "../lib/project";
import { isWorkActive, type WorkItem, type WorkQueue } from "../lib/workQueue";
@@ -17,10 +17,10 @@ import { Flyout, ProgressBar, ProgressRing } from "./ui";
const settingsLine = (item: WorkItem) => `${item.settings.canvasWidth} × ${item.settings.canvasHeight} · ${item.kind === "reference-icons" ? "JPG icons" : item.kind === "image" ? "JPG image" : `${(item.settings.frames / GENERATION_FRAME_RATE).toFixed(1)}s`} · ${item.settings.steps} steps · ${item.settings.seed === -1 ? "Random seed" : `Seed ${item.settings.seed}`}`;
function StateGlyph({ item }: { item: WorkItem }) {
- if (item.status === "completed") return <Check size={16} />;
- if (item.status === "failed") return <TriangleAlert size={16} />;
- if (item.status === "queued") return <Clock3 size={16} />;
- if (item.status === "cancelled") return <X size={16} />;
+ if (item.status === "completed") return <Check16 />;
+ if (item.status === "failed") return <Warning16 />;
+ if (item.status === "queued") return <Clock16 />;
+ if (item.status === "cancelled") return <Dismiss16 />;
return <ProgressRing size={16} />;
}
@@ -59,7 +59,7 @@ export function WorkQueuePanel({ queue, items, open = true, anchor = null, onClo
{item.needsSave && <button type="button" className="work-queue__link" onClick={() => void queue.retrySave(item.id)}>Retry project save</button>}
</div>
{isWorkActive(item) && item.status !== "encoding" && (
- <button type="button" className="icon-button work-queue__cancel" disabled={item.cancelling} aria-label={`Cancel ${item.title} in ${item.projectName}`} data-tooltip="Cancel" onClick={() => void queue.cancel(item.id)}><X size={16} /></button>
+ <button type="button" className="icon-button work-queue__cancel" disabled={item.cancelling} aria-label={`Cancel ${item.title} in ${item.projectName}`} data-tooltip="Cancel" onClick={() => void queue.cancel(item.id)}><Dismiss16 /></button>
)}
</li>;
};
@@ -71,20 +71,20 @@ export function WorkQueuePanel({ queue, items, open = true, anchor = null, onClo
{finished.length > 0 && <button type="button" className="work-queue__link" onClick={() => queue.clearFinished()}>Clear finished</button>}
</header>
<div className="work-queue__list">
- {items.length === 0 && !download && !exporting && <div className="work-queue__empty"><ListTodo size={32} aria-hidden="true" /><strong>No work yet</strong><span>Generated scenes and images show up here.</span></div>}
+ {items.length === 0 && !download && !exporting && <div className="work-queue__empty"><WorkQueue32 aria-hidden="true" /><strong>No work yet</strong><span>Generated scenes and images show up here.</span></div>}
{current.length > 0 && <section aria-label="In progress"><ul>{current.map(row)}</ul></section>}
{exporting && <section aria-label="Export"><ul><li className="work-queue__row">
- <span className="work-queue__state work-queue__state--preparing" aria-hidden="true"><Film size={16} /></span>
+ <span className="work-queue__state work-queue__state--preparing" aria-hidden="true"><Film16 /></span>
<div className="work-queue__text">
<span className="work-queue__title" data-tooltip={exportJob.destination ?? undefined}>{exportTitle}</span>
<span className="work-queue__caption">{exporting.detail || "Exporting"} · {exportPercent}%</span>
<ProgressBar value={exportPercent} aria-label={`${exportTitle} progress`} className="work-queue__progress" />
</div>
- <button type="button" className="icon-button work-queue__cancel" aria-label={`Cancel ${exportTitle}`} data-tooltip="Cancel" disabled={exportJob.cancelling} onClick={cancelExportJob}><X size={16} /></button>
+ <button type="button" className="icon-button work-queue__cancel" aria-label={`Cancel ${exportTitle}`} data-tooltip="Cancel" disabled={exportJob.cancelling} onClick={cancelExportJob}><Dismiss16 /></button>
</li></ul></section>}
{download && <section aria-label="Weight downloads"><ul><li className="work-queue__row">
<span className={`work-queue__state work-queue__state--${download.active ? "preparing" : download.error ? "failed" : "completed"}`} aria-hidden="true">
- {download.active ? <Download size={16} /> : download.error ? <TriangleAlert size={16} /> : <Check size={16} />}
+ {download.active ? <Download16 /> : download.error ? <Warning16 /> : <Check16 />}
</span>
<div className="work-queue__text">
<span className="work-queue__title">{downloadName}</span>
@@ -101,7 +101,7 @@ export function WorkQueuePanel({ queue, items, open = true, anchor = null, onClo
{download.active && <button type="button" className="icon-button work-queue__cancel" aria-label={`Cancel ${downloadName} download`} data-tooltip="Cancel" onClick={() => {
setDownloadError(null);
void cancelWeightDownload().catch((reason) => setDownloadError(String(reason)));
- }}><X size={16} /></button>}
+ }}><Dismiss16 /></button>}
</li></ul></section>}
{upcoming.length > 0 && <section aria-label="Upcoming work"><h3 className="work-queue__group">Up next · {upcoming.length}</h3><ul>{upcoming.map(row)}</ul></section>}
{finished.length > 0 && <section aria-label="Finished work"><h3 className="work-queue__group">Finished</h3><ul>{finished.map(row)}</ul></section>}
diff --git a/src/components/workspace/AgentDock.tsx b/src/components/workspace/AgentDock.tsx
index f4f55f6..a816aa5 100644
--- a/src/components/workspace/AgentDock.tsx
+++ b/src/components/workspace/AgentDock.tsx
@@ -1,5 +1,5 @@
import { listen } from "@tauri-apps/api/event";
-import { ArrowUp, Bot, Eraser, Square, X } from "lucide-react";
+import { Agent32, Clear16, Dismiss16, Send16, Stop14 } from "../ui/icons";
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
import { describeDiagnosticError, errorContext, writeDiagnostic } from "../../lib/diagnostics";
import { isTauri } from "../../lib/persistence";
@@ -202,14 +202,14 @@ export function AgentDock({ context, record, providers, onPromptStart, onCommand
/>
</>}
actions={<>
- <button type="button" className="icon-button agent-dock__action" aria-label="Clear conversation" {...tooltipProps("Clear conversation")} disabled={Boolean(requestId) || empty} onClick={clear}><Eraser size={16} aria-hidden="true" /></button>
- {onClose && <button type="button" className="icon-button agent-dock__action" aria-label="Close agent" {...tooltipProps("Close")} onClick={onClose}><X size={16} aria-hidden="true" /></button>}
+ <button type="button" className="icon-button agent-dock__action" aria-label="Clear conversation" {...tooltipProps("Clear conversation")} disabled={Boolean(requestId) || empty} onClick={clear}><Clear16 aria-hidden="true" /></button>
+ {onClose && <button type="button" className="icon-button agent-dock__action" aria-label="Close agent" {...tooltipProps("Close")} onClick={onClose}><Dismiss16 aria-hidden="true" /></button>}
</>}
/>
<div ref={conversation} className="agent-conversation" role="log" aria-label="Slop output" aria-live="polite">
{empty && <EmptyState
className="agent-conversation__empty"
- icon={<Bot size={32} />}
+ icon={<Agent32 />}
title="Nothing asked yet"
description={`Ask Slop to write scenes from a prompt, refine shots or edit ${context}.`}
/>}
@@ -249,8 +249,8 @@ export function AgentDock({ context, record, providers, onPromptStart, onCommand
disabled={!ready || Boolean(requestId)}
/>
{requestId
- ? <button ref={cancelButton} type="button" className="agent-composer__send agent-cancel" onClick={cancel} aria-label="Cancel agent turn" aria-keyshortcuts="Escape" {...tooltipProps("Stop", "Esc")}><Square size={14} aria-hidden="true" /></button>
- : <button type="submit" className="agent-composer__send" disabled={!prompt.trim() || !ready} aria-label="Send to Slop" aria-keyshortcuts="Enter" {...tooltipProps(ready ? "Send" : blockedDetail ?? "No agent provider is available", ready ? "Enter" : undefined)}><ArrowUp size={16} aria-hidden="true" /></button>}
+ ? <button ref={cancelButton} type="button" className="agent-composer__send agent-cancel" onClick={cancel} aria-label="Cancel agent turn" aria-keyshortcuts="Escape" {...tooltipProps("Stop", "Esc")}><Stop14 aria-hidden="true" /></button>
+ : <button type="submit" className="agent-composer__send" disabled={!prompt.trim() || !ready} aria-label="Send to Slop" aria-keyshortcuts="Enter" {...tooltipProps(ready ? "Send" : blockedDetail ?? "No agent provider is available", ready ? "Enter" : undefined)}><Send16 aria-hidden="true" /></button>}
</form>
</div>
);
diff --git a/src/components/workspace/ClipEffects.tsx b/src/components/workspace/ClipEffects.tsx
index 28fd44c..694f464 100644
--- a/src/components/workspace/ClipEffects.tsx
+++ b/src/components/workspace/ClipEffects.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown, Ellipsis, FolderOpen, Plus, RotateCcw } from "lucide-react";
+import { Add16, ChevronDown12, FolderOpen14, More14, Reset14, Reset16 } from "../ui/icons";
import { useEffect, useRef, useState, type KeyboardEvent, type ReactNode } from "react";
import { DEFAULT_CLIP_CHROMA_KEY, DEFAULT_CLIP_LOOK, type TimelineClip } from "../../lib/project";
import { isEffectOn, parseCube } from "../../lib/effectSettings";
@@ -81,7 +81,7 @@ function LutEditor({ clip, update, disabled }: EditorProps) {
aria-label={lut.table ? "Replace LUT" : "Import LUT"}
{...tooltipProps(inTauri() ? "Choose a .cube file" : "Available in the desktop app")}
onClick={() => void browse()}
- ><FolderOpen size={14} aria-hidden="true" /> Browse…</button>
+ ><FolderOpen14 aria-hidden="true" /> Browse…</button>
</PropRow>
{loading && <p className="clip-effect__note" role="status">Reading LUT…</p>}
{lut.table && <p className="clip-effect__note">{lut.table.name} · {lut.table.size}³</p>}
@@ -218,11 +218,11 @@ function EffectBlock({ effect, clip, disabled, update, onRemove }: {
<Checkbox className="clip-effect__bypass" checked={on} disabled={disabled} aria-label={`${effect.name} on`}
{...tooltipProps(on ? "Turn off (bypass)" : "Turn on")} onChange={bypass} />
<button type="button" className="clip-effect__toggle" aria-expanded={open} onClick={() => setOpen((value) => !value)}>
- <ChevronDown size={12} aria-hidden="true" className="clip-effect__chevron" />
+ <ChevronDown12 aria-hidden="true" className="clip-effect__chevron" />
<h3 className="clip-effect__name">{effect.name}</h3>
</button>
<button type="button" className="clip-effect__action" aria-label={`Reset ${effect.name}`} {...tooltipProps("Reset")} disabled={disabled} onClick={reset}>
- <RotateCcw size={14} aria-hidden="true" />
+ <Reset14 aria-hidden="true" />
</button>
<button
ref={more}
@@ -233,11 +233,11 @@ function EffectBlock({ effect, clip, disabled, update, onRemove }: {
{...tooltipProps("More options")}
disabled={disabled}
onClick={() => more.current && menu.open(more.current, [
- { label: "Reset", icon: <RotateCcw size={16} />, onSelect: reset },
+ { label: "Reset", icon: <Reset16 />, onSelect: reset },
{ separator: true },
{ label: "Remove", shortcut: "Delete", danger: true, onSelect: onRemove },
], { "aria-label": `${effect.name} options`, placement: "bottom-end", focusFirst: true })}
- ><Ellipsis size={14} aria-hidden="true" /></button>
+ ><More14 aria-hidden="true" /></button>
</header>
{open && <fieldset className="clip-effect__body" disabled={disabled}>{effect.editor({ clip, update: keyed, disabled })}</fieldset>}
{menu.element}
@@ -280,7 +280,7 @@ export function ClipEffects({ clip, disabled, onChange }: {
aria-haspopup="dialog"
aria-expanded={open}
onClick={() => setOpen((value) => !value)}
- ><Plus size={16} aria-hidden="true" /> Add effect</button>
+ ><Add16 aria-hidden="true" /> Add effect</button>
<Flyout open={open} anchor={trigger} onClose={() => setOpen(false)} aria-label="Available effects" role="group" placement="top" width={220}>
<div ref={list} className="clip-effects__picker" onKeyDown={moveFocus}>
{available.map((effect) => <button
diff --git a/src/components/workspace/ColorPicker.tsx b/src/components/workspace/ColorPicker.tsx
index c451b33..7a6d6f2 100644
--- a/src/components/workspace/ColorPicker.tsx
+++ b/src/components/workspace/ColorPicker.tsx
@@ -1,4 +1,4 @@
-import { Pipette } from "lucide-react";
+import { Eyedropper16 } from "../ui/icons";
import { useEffect, useRef, useState, type CSSProperties, type KeyboardEvent, type PointerEvent } from "react";
import { Flyout, tooltipProps } from "../ui";
@@ -144,7 +144,7 @@ export function ColorPicker({ value, onChange }: { value: string; onChange: (hex
onBlur={() => setDraft(value.toUpperCase())}
/>
{Dropper && <button type="button" className="icon-button" aria-label="Pick a colour from the screen" {...tooltipProps("Pick a colour from the screen")} onClick={() => void sample()}>
- <Pipette size={16} aria-hidden="true" />
+ <Eyedropper16 aria-hidden="true" />
</button>}
</div>
</div>;
diff --git a/src/components/workspace/ExportView.tsx b/src/components/workspace/ExportView.tsx
index 7abf61d..17e69f8 100644
--- a/src/components/workspace/ExportView.tsx
+++ b/src/components/workspace/ExportView.tsx
@@ -1,4 +1,4 @@
-import { ChevronFirst, ChevronLast, Maximize, Minimize, Pause, Play, StepBack, StepForward } from "lucide-react";
+import { ExitFullScreen16, FullScreen16, GoToEnd16, GoToStart16, NextFrame16, Pause16, Play16, PreviousFrame16 } from "../ui/icons";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import {
audioMixBytes,
@@ -365,8 +365,8 @@ export function ExportView({ config, folderPath, onClose }: {
{/* Windowed: a plain 36px bar under the picture. Fullscreen: the
same bar over the picture's foot, hiding when the pointer rests. */}
<div className="export-transport" role="group" aria-label="Video playback controls">
- <button type="button" className="export-transport__button" onClick={() => seekToFrame(0)} disabled={transportDisabled} aria-label="Go to start" {...tooltipProps("Go to start", "Home")}><ChevronFirst size={16} aria-hidden="true" /></button>
- <button type="button" className="export-transport__button" onClick={() => seekToFrame(currentFrame - 1)} disabled={transportDisabled} aria-label="Previous frame" {...tooltipProps("Previous frame", "Left")}><StepBack size={16} aria-hidden="true" /></button>
+ <button type="button" className="export-transport__button" onClick={() => seekToFrame(0)} disabled={transportDisabled} aria-label="Go to start" {...tooltipProps("Go to start", "Home")}><GoToStart16 aria-hidden="true" /></button>
+ <button type="button" className="export-transport__button" onClick={() => seekToFrame(currentFrame - 1)} disabled={transportDisabled} aria-label="Previous frame" {...tooltipProps("Previous frame", "Left")}><PreviousFrame16 aria-hidden="true" /></button>
<button
type="button"
className="export-transport__button"
@@ -374,9 +374,9 @@ export function ExportView({ config, folderPath, onClose }: {
disabled={runningHere || transportDisabled}
aria-label={playing ? "Pause" : "Play"}
{...tooltipProps(empty ? "Nothing on the timeline to play" : playing ? "Pause" : "Play", empty ? undefined : "Space")}
- >{playing ? <Pause size={16} aria-hidden="true" /> : <Play size={16} aria-hidden="true" />}</button>
- <button type="button" className="export-transport__button" onClick={() => seekToFrame(currentFrame + 1)} disabled={transportDisabled} aria-label="Next frame" {...tooltipProps("Next frame", "Right")}><StepForward size={16} aria-hidden="true" /></button>
- <button type="button" className="export-transport__button" onClick={() => seekToFrame(lastFrame)} disabled={transportDisabled} aria-label="Go to end" {...tooltipProps("Go to end", "End")}><ChevronLast size={16} aria-hidden="true" /></button>
+ >{playing ? <Pause16 aria-hidden="true" /> : <Play16 aria-hidden="true" />}</button>
+ <button type="button" className="export-transport__button" onClick={() => seekToFrame(currentFrame + 1)} disabled={transportDisabled} aria-label="Next frame" {...tooltipProps("Next frame", "Right")}><NextFrame16 aria-hidden="true" /></button>
+ <button type="button" className="export-transport__button" onClick={() => seekToFrame(lastFrame)} disabled={transportDisabled} aria-label="Go to end" {...tooltipProps("Go to end", "End")}><GoToEnd16 aria-hidden="true" /></button>
<Slider
className="export-transport__scrub"
min={0}
@@ -396,7 +396,7 @@ export function ExportView({ config, folderPath, onClose }: {
onClick={toggleFullscreen}
aria-label={fullscreen ? "Exit full screen" : "Full screen"}
{...tooltipProps(fullscreen ? "Exit full screen" : "Full screen", fullscreen ? "Esc" : undefined)}
- >{fullscreen ? <Minimize size={16} aria-hidden="true" /> : <Maximize size={16} aria-hidden="true" />}</button>
+ >{fullscreen ? <ExitFullScreen16 aria-hidden="true" /> : <FullScreen16 aria-hidden="true" />}</button>
</div>
</div>
{empty && <p className="export-stage__caption">Nothing on the timeline yet</p>}
diff --git a/src/components/workspace/GeneratorView.tsx b/src/components/workspace/GeneratorView.tsx
index 1822276..6c97b67 100644
--- a/src/components/workspace/GeneratorView.tsx
+++ b/src/components/workspace/GeneratorView.tsx
@@ -3,7 +3,7 @@ import { loadLoras, subscribeLoras } from "../../lib/loras";
import { refreshDownloadedLoras } from "../../lib/weightDownloads";
import { characterReplaceBlocker, poseBlocker, isVideoTransition, videoTransitionBlocker, usableVideoReferences, type SceneType } from "../../lib/project";
import { referenceRefmodInputs } from "../../lib/project";
-import { Clapperboard, LayoutGrid, List, Plus, Sparkles, Square, Trash2, WandSparkles } from "lucide-react";
+import { Add16, Delete16, GridView16, GridView16Filled, ListView16, ListView16Filled, Scene16, Scene32, Sparkle16, Stop14, Wand16 } from "../ui/icons";
import { invoke } from "@tauri-apps/api/core";
import { useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
import { useShortcut } from "../../lib/commands";
@@ -512,8 +512,8 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo
aria-label="Generator"
className="generator-command"
end={<>
- <CommandBarButton icon={<LayoutGrid size={16} />} label="Tiles" pressed={density === "tiles"} onClick={() => chooseDensity("tiles")} />
- <CommandBarButton icon={<List size={16} />} label="List" pressed={density === "list"} onClick={() => chooseDensity("list")} />
+ <CommandBarButton icon={density === "tiles" ? <GridView16Filled /> : <GridView16 />} label="Tiles" pressed={density === "tiles"} onClick={() => chooseDensity("tiles")} />
+ <CommandBarButton icon={density === "list" ? <ListView16Filled /> : <ListView16 />} label="List" pressed={density === "list"} onClick={() => chooseDensity("list")} />
</>}
>
{/* The generator the next render uses, with its readiness as a glyph
@@ -535,7 +535,7 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo
{cancellable.length > 0
? <CommandBarButton
className="generator-command__cancel"
- icon={<Square size={14} />}
+ icon={<Stop14 />}
label="Cancel all"
showLabel
tooltip={generateAllTooltip}
@@ -543,14 +543,14 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo
/>
: <CommandBarButton
className="generator-command__generate"
- icon={<WandSparkles size={16} />}
+ icon={<Wand16 />}
label="Generate all"
showLabel
tooltip={generateAllTooltip}
disabled={active.length > 0}
onClick={() => void generateAll()}
/>}
- <CommandBarButton icon={<Plus size={16} />} label="Add scene" showLabel onClick={newScene} />
+ <CommandBarButton icon={<Add16 />} label="Add scene" showLabel onClick={newScene} />
</CommandBar>
<div className="generator-board">
@@ -576,7 +576,7 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo
onRemoveShot={(job, shotId) => void confirmRemoveShot(job, shotId)}
/>
: <EmptyState
- icon={<Clapperboard />}
+ icon={<Scene32 />}
title="No scenes yet"
description="Add a scene, then write what happens in each of its shots."
action={<button type="button" className="secondary-button" onClick={newScene}>Add a scene</button>}
@@ -600,7 +600,7 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo
board opens. */}
<ItemHeader
color="var(--clip-generated)"
- icon={<Clapperboard size={16} />}
+ icon={<Scene16 />}
name={<h2 className="generator-panel__name"><input
ref={titleInput}
className="ui-item-header__input"
@@ -623,7 +623,7 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo
aria-keyshortcuts="Delete"
{...tooltipProps("Delete shot", "Delete")}
onClick={() => void confirmRemoveShot(selected, openShot.id)}
- ><Trash2 size={16} aria-hidden="true" /></button>}
+ ><Delete16 aria-hidden="true" /></button>}
/>
<div className="panel-scroll">
<ShotInspector
@@ -646,7 +646,7 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo
than saving a nameless scene the schema would reject. */}
<ItemHeader
color="var(--clip-generated)"
- icon={<Sparkles size={16} />}
+ icon={<Sparkle16 />}
name={<h2 className="generator-panel__name"><input
ref={titleInput}
className="ui-item-header__input"
@@ -663,7 +663,7 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo
aria-keyshortcuts="Delete"
{...tooltipProps("Delete scene", "Delete")}
onClick={() => void confirmRemoveScene(selected)}
- ><Trash2 size={16} aria-hidden="true" /></button>}
+ ><Delete16 aria-hidden="true" /></button>}
/>
<div className="panel-scroll">
diff --git a/src/components/workspace/ImageEditor.tsx b/src/components/workspace/ImageEditor.tsx
index d89708a..6025dc8 100644
--- a/src/components/workspace/ImageEditor.tsx
+++ b/src/components/workspace/ImageEditor.tsx
@@ -1,5 +1,5 @@
import { useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore, type CSSProperties, type DragEvent, type KeyboardEvent as ReactKeyboardEvent, type PointerEvent } from "react";
-import { Box, ChevronDown, ChevronRight, ClipboardPaste, Copy, FolderOpen, FolderPlus, Group, Image, MousePointer2, Pencil, Plus, Redo2, Sparkles, Square, Trash2, Type, Undo2 } from "lucide-react";
+import { Add14, Add16, Boxes16, Boxes16Filled, ChevronDown14, ChevronRight14, Copy16, Cube16, Cube16Filled, Cursor16, Cursor16Filled, Delete14, Delete16, Edit11, Edit16, FolderAdd16, FolderOpen16, Group16, Group16Filled, Image16, Image24, Image32, Paste16, Redo16, Rename16, Sparkle16, Stop14, Text16, Text16Filled, Undo16 } from "../ui/icons";
import { invoke } from "@tauri-apps/api/core";
import { addImageNode, createImageEditScene, createImageScene, duplicateImageNode, imageDescendants, imageScenePrompt, removeImageNode, resizeImageNode, type ImageBox, type ImageNode, type ImageScene, type ImageSource } from "../../lib/imageScene";
import { compileImageEdits, editGeneratedImage, imageEditDebugPrompt } from "../../lib/imageEditing";
@@ -348,10 +348,10 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
/* Canvas tools: a radio group of icon toggles with one-letter keys. */
const TOOLS = [
- { id: null, label: "Select", key: "V", icon: <MousePointer2 size={16} /> },
- { id: "object", label: "Draw object", key: "O", icon: <Box size={16} /> },
- { id: "text", label: "Draw text", key: "T", icon: <Type size={16} /> },
- { id: "group", label: "Draw group", key: "G", icon: <Group size={16} /> },
+ { id: null, label: "Select", key: "V", icon: <Cursor16 />, onIcon: <Cursor16Filled /> },
+ { id: "object", label: "Draw object", key: "O", icon: <Cube16 />, onIcon: <Cube16Filled /> },
+ { id: "text", label: "Draw text", key: "T", icon: <Text16 />, onIcon: <Text16Filled /> },
+ { id: "group", label: "Draw group", key: "G", icon: <Group16 />, onIcon: <Group16Filled /> },
] as const;
const chooseTool = (id: typeof drawKind) => { setDrawKind(id); if (id) setBoxes(true); };
useShortcut("V", () => chooseTool(null), { scope: editorRoot });
@@ -428,13 +428,13 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
setDraggedNode(null); setTreeDrop(null);
}}>
{children.length
- ? <button className="image-tree__chevron" tabIndex={-1} aria-label={`${open ? "Collapse" : "Expand"} ${node.name}`} onClick={() => setCollapsed((current) => { const next = new Set(current); if (open) next.add(node.id); else next.delete(node.id); return next; })}>{open ? <ChevronDown size={14} aria-hidden="true" /> : <ChevronRight size={14} aria-hidden="true" />}</button>
+ ? <button className="image-tree__chevron" tabIndex={-1} aria-label={`${open ? "Collapse" : "Expand"} ${node.name}`} onClick={() => setCollapsed((current) => { const next = new Set(current); if (open) next.add(node.id); else next.delete(node.id); return next; })}>{open ? <ChevronDown14 aria-hidden="true" /> : <ChevronRight14 aria-hidden="true" />}</button>
: <span className="image-tree__spacer" />}
{renaming?.id === node.id ? <input className="image-tree__rename" aria-label="Rename image node" maxLength={120} ref={(element) => { if (element && document.activeElement !== element) { element.focus(); element.select(); } }} value={renaming.value} onChange={(event) => setRenaming({ ...renaming, value: event.target.value })} onBlur={() => finishRename(true, false)} onKeyDown={(event) => {
event.stopPropagation();
if (event.key === "Enter" && !event.nativeEvent.isComposing) { event.preventDefault(); finishRename(true); }
if (event.key === "Escape") { event.preventDefault(); finishRename(false); }
- }} /> : <button className="image-tree__select" tabIndex={selected.id === node.id ? 0 : -1} data-tooltip={node.name} onFocus={() => setSelection(node.id)} onClick={() => setSelection(node.id)}><span className="image-tree__icon" aria-hidden="true">{node.kind === "text" ? <Type size={16} /> : node.kind === "root" ? <Image size={16} /> : node.kind === "group" ? <Group size={16} /> : <Box size={16} />}</span><span>{node.name}</span></button>}
+ }} /> : <button className="image-tree__select" tabIndex={selected.id === node.id ? 0 : -1} data-tooltip={node.name} onFocus={() => setSelection(node.id)} onClick={() => setSelection(node.id)}><span className="image-tree__icon" aria-hidden="true">{node.kind === "text" ? <Text16 /> : node.kind === "root" ? <Image16 /> : node.kind === "group" ? <Group16 /> : <Cube16 />}</span><span>{node.name}</span></button>}
</div>
{open && children.length > 0 && <div role="group">{children.map((child) => tree(child, depth + 1))}</div>}
</div>;
@@ -443,36 +443,36 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
return <div ref={editorRoot} className="image-editor" style={{ ...treePane.style, ...inspectorPane.style }}>
<aside ref={hierarchy} className="image-tree" aria-label="Image hierarchy" onContextMenu={(event) => { if ((event.target as HTMLElement).closest("input, textarea, [contenteditable=true]")) return; event.preventDefault(); setSelection(root.id); setContextMenu({ x: event.clientX, y: event.clientY }); }} onKeyDown={treeKeys}>
<PaneHeader actions={<>
- <button className="icon-button image-pane-button" aria-label="Undo image edit" aria-keyshortcuts="Control+Z" {...tooltipProps("Undo", "Ctrl+Z")} disabled={!undo.current.length} onClick={() => history(true)}><Undo2 size={16} aria-hidden="true" /></button>
- <button className="icon-button image-pane-button" aria-label="Redo image edit" aria-keyshortcuts="Control+Y" {...tooltipProps("Redo", "Ctrl+Y")} disabled={!redo.current.length} onClick={() => history(false)}><Redo2 size={16} aria-hidden="true" /></button>
+ <button className="icon-button image-pane-button" aria-label="Undo image edit" aria-keyshortcuts="Control+Z" {...tooltipProps("Undo", "Ctrl+Z")} disabled={!undo.current.length} onClick={() => history(true)}><Undo16 aria-hidden="true" /></button>
+ <button className="icon-button image-pane-button" aria-label="Redo image edit" aria-keyshortcuts="Control+Y" {...tooltipProps("Redo", "Ctrl+Y")} disabled={!redo.current.length} onClick={() => history(false)}><Redo16 aria-hidden="true" /></button>
</>} />
<div role="tree" aria-label="Image nodes">{tree(root, 0)}</div>
</aside>
<Splitter {...treePane.splitterProps} aria-label="Resize hierarchy" />
{contextMenu && <HierarchyContextMenu {...contextMenu} onClose={closeContextMenu} items={[
- { label: "New Object", icon: <Box size={15} />, action: () => attempt(() => add("object")) },
- { label: "New Text", icon: <Type size={15} />, action: () => attempt(() => add("text")) },
- { label: "New Group", icon: <FolderPlus size={15} />, action: () => attempt(() => add("group")) },
- { label: "New Background", icon: <Image size={15} />, action: () => attempt(() => add("background")) },
- { label: "Rename", icon: <Pencil size={15} />, shortcut: "F2", separator: true, action: startRename },
- { label: "Copy", icon: <Copy size={15} />, shortcut: "Ctrl+C", separator: true, disabled: selected.kind === "root", action: () => copyImageNode(scene, selected.id) },
- { label: "Paste", icon: <ClipboardPaste size={15} />, shortcut: "Ctrl+V", disabled: !clipboard, action: () => attempt(paste) },
- { label: "Duplicate", icon: <Copy size={15} />, shortcut: "Ctrl+D", disabled: selected.kind === "root", action: () => attempt(duplicate) },
- { label: "Delete", icon: <Trash2 size={15} />, shortcut: "Delete", separator: true, danger: true, disabled: selected.kind === "root", action: removeSelected },
+ { label: "New Object", icon: <Cube16 />, action: () => attempt(() => add("object")) },
+ { label: "New Text", icon: <Text16 />, action: () => attempt(() => add("text")) },
+ { label: "New Group", icon: <FolderAdd16 />, action: () => attempt(() => add("group")) },
+ { label: "New Background", icon: <Image16 />, action: () => attempt(() => add("background")) },
+ { label: "Rename", icon: <Rename16 />, shortcut: "F2", separator: true, action: startRename },
+ { label: "Copy", icon: <Copy16 />, shortcut: "Ctrl+C", separator: true, disabled: selected.kind === "root", action: () => copyImageNode(scene, selected.id) },
+ { label: "Paste", icon: <Paste16 />, shortcut: "Ctrl+V", disabled: !clipboard, action: () => attempt(paste) },
+ { label: "Duplicate", icon: <Copy16 />, shortcut: "Ctrl+D", disabled: selected.kind === "root", action: () => attempt(duplicate) },
+ { label: "Delete", icon: <Delete16 />, shortcut: "Delete", separator: true, danger: true, disabled: selected.kind === "root", action: removeSelected },
]} />}
{imageMenu && <HierarchyContextMenu {...imageMenu} label="Generated image actions" onClose={closeImageMenu} items={[
- { label: "New empty image", icon: <Plus size={15} />, action: () => attempt(() => {
+ { label: "New empty image", icon: <Add16 />, action: () => attempt(() => {
undo.current = []; redo.current = []; pointer.current = null; setDraftBox(null); setDrawKind(null); setRenaming(null); setCollapsed(new Set()); setSelection("image-root");
onChange((current) => createEmptyImage(current, template?.id));
}) },
...(imageMenu.id ? [
- { label: "Edit", icon: <Pencil size={15} />, action: () => attempt(() => config.assets.find((asset) => asset.id === imageMenu.id)?.imageDraft ? selectImage(imageMenu.id!) : replaceScene(editGeneratedImage(config, imageMenu.id!).imageScene!)) },
- { label: "Remove", icon: <Trash2 size={15} />, danger: true, disabled: Boolean(active && work.imageDraftId === imageMenu.id), action: () => removeImage(imageMenu.id!) },
+ { label: "Edit", icon: <Edit16 />, action: () => attempt(() => config.assets.find((asset) => asset.id === imageMenu.id)?.imageDraft ? selectImage(imageMenu.id!) : replaceScene(editGeneratedImage(config, imageMenu.id!).imageScene!)) },
+ { label: "Remove", icon: <Delete16 />, danger: true, disabled: Boolean(active && work.imageDraftId === imageMenu.id), action: () => removeImage(imageMenu.id!) },
] : []),
]} />}
<section className="image-center" aria-label="Image panel">
<div className="image-canvas-tools" role="toolbar" aria-label="Image tools">
- <button className="primary-button image-generate-button" data-tooltip={editPlan?.error ?? undefined} disabled={active ? work.cancelling || work.status === "encoding" : !isTauri() || !template || templateNeedsDownload(template) || (imageRoot ? Boolean(editPlan?.error) : !imageScenePrompt(scene))} onClick={() => attempt(() => active ? onCancel(work.id) : onGenerate(template!))}>{active ? <Square size={14} aria-hidden="true" /> : <Sparkles size={16} aria-hidden="true" />}{active ? work.cancelling ? "Cancelling…" : "Cancel" : "Generate"}</button>
+ <button className="primary-button image-generate-button" data-tooltip={editPlan?.error ?? undefined} disabled={active ? work.cancelling || work.status === "encoding" : !isTauri() || !template || templateNeedsDownload(template) || (imageRoot ? Boolean(editPlan?.error) : !imageScenePrompt(scene))} onClick={() => attempt(() => active ? onCancel(work.id) : onGenerate(template!))}>{active ? <Stop14 aria-hidden="true" /> : <Sparkle16 aria-hidden="true" />}{active ? work.cancelling ? "Cancelling…" : "Cancel" : "Generate"}</button>
<ComboBox
className="image-generator"
aria-label="Generator"
@@ -484,7 +484,7 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
onChange={(id) => { setTemplateId(id); localStorage.setItem("slopus.image-generator-template.v1", id); const next = imageTemplates.find((candidate) => candidate.id === id); if (next) commit({ ...scene, steps: next.defaultSteps }); }}
/>
<span className="image-tools__separator" role="separator" aria-orientation="vertical" />
- <button className={`image-tool${boxes ? " image-tool--on" : ""}`} aria-label="Show placement boxes" aria-pressed={boxes} data-tooltip="Show placement boxes" onClick={() => { setBoxes(!boxes); setDrawKind(null); }}><Square size={16} aria-hidden="true" /></button>
+ <button className={`image-tool${boxes ? " image-tool--on" : ""}`} aria-label="Show placement boxes" aria-pressed={boxes} data-tooltip="Show placement boxes" onClick={() => { setBoxes(!boxes); setDrawKind(null); }}>{boxes ? <Boxes16Filled aria-hidden="true" /> : <Boxes16 aria-hidden="true" />}</button>
<div className="image-tools__group" role="radiogroup" aria-label="Canvas tool" onKeyDown={(event) => {
if (event.key !== "ArrowLeft" && event.key !== "ArrowRight") return;
event.preventDefault();
@@ -504,7 +504,7 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
className={`image-tool${drawKind === tool.id ? " image-tool--on" : ""}`}
{...tooltipProps(tool.label, tool.key)}
onClick={() => chooseTool(tool.id)}
- ><span aria-hidden="true">{tool.icon}</span></button>)}
+ ><span aria-hidden="true">{drawKind === tool.id ? tool.onIcon : tool.icon}</span></button>)}
</div>
<span className="image-tools__separator" role="separator" aria-orientation="vertical" />
<ComboBox
@@ -538,7 +538,7 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
onPointerUpCapture={endPan} onPointerCancelCapture={endPan} onLostPointerCapture={endPan}
onAuxClick={(event) => { if (event.button === 1) event.preventDefault(); }}>
<div className="image-frame" style={{ "--image-ratio": width / height, "--image-zoom": view.zoom, "--image-pan-x": `${view.x}px`, "--image-pan-y": `${view.y}px` } as CSSProperties}>
- {imageRoot && scene.sourceImage ? <ReferenceImage folderPath={folderPath} relativePath={scene.sourceImage.relativePath} alt={scene.sourceImage.name} /> : output && !imageRoot && (output.relativePath || output.sourcePath) ? <ReferenceImage folderPath={folderPath} relativePath={output.relativePath} sourcePath={output.sourcePath} alt={output.name} /> : <div className="image-empty"><Image size={32} aria-hidden="true" /><strong>{imageRoot ? "Open an image to edit" : "Compose your image"}</strong><span>{imageRoot ? "Choose Open image in the inspector, then add Object nodes for edits." : "Add objects, text and groups, then describe them in the inspector."}</span></div>}
+ {imageRoot && scene.sourceImage ? <ReferenceImage folderPath={folderPath} relativePath={scene.sourceImage.relativePath} alt={scene.sourceImage.name} /> : output && !imageRoot && (output.relativePath || output.sourcePath) ? <ReferenceImage folderPath={folderPath} relativePath={output.relativePath} sourcePath={output.sourcePath} alt={output.name} /> : <div className="image-empty"><Image32 aria-hidden="true" /><strong>{imageRoot ? "Open an image to edit" : "Compose your image"}</strong><span>{imageRoot ? "Choose Open image in the inspector, then add Object nodes for edits." : "Add objects, text and groups, then describe them in the inspector."}</span></div>}
<svg className={`image-overlay ${drawKind ? "drawing" : ""}`} viewBox="0 0 1000 1000" preserveAspectRatio="none" aria-label="Image placement canvas" onPointerDown={pointerDown} onPointerMove={pointerMove} onPointerUp={pointerUp} onPointerCancel={() => { pointer.current = null; setDraftBox(null); }}>
{boxes && scene.nodes.filter((node) => node.box).map((node) => {
const box = pointer.current?.id === node.id && draftBox ? draftBox : node.box!;
@@ -563,7 +563,7 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
setContextMenu(null); setImageMenu({ id: asset.id, x: bounds.left, y: bounds.bottom });
}
}}
- onClick={() => selectImage(asset.id)}>{asset.relativePath || asset.sourcePath ? <ReferenceImage folderPath={folderPath} relativePath={asset.relativePath} sourcePath={asset.sourcePath} alt={asset.name} /> : <Image size={24} aria-hidden="true" />}{asset.imageDraft && <span className="image-draft-badge"><Pencil size={11} aria-hidden="true" />{asset.imageGeneration?.scene.rootType === "image" ? "Editing" : "Draft"}</span>}</button>)}</div>
+ onClick={() => selectImage(asset.id)}>{asset.relativePath || asset.sourcePath ? <ReferenceImage folderPath={folderPath} relativePath={asset.relativePath} sourcePath={asset.sourcePath} alt={asset.name} /> : <Image24 aria-hidden="true" />}{asset.imageDraft && <span className="image-draft-badge"><Edit11 aria-hidden="true" />{asset.imageGeneration?.scene.rootType === "image" ? "Editing" : "Draft"}</span>}</button>)}</div>
</section>
<Splitter {...inspectorPane.splitterProps} reverse aria-label="Resize inspector" />
<aside className="image-inspector" aria-label="Image node inspector">
@@ -578,7 +578,7 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
<button className="secondary-button" disabled={!isTauri()} onClick={() => attempt(async () => {
const source = await invoke<ImageSource | null>("open_image_source", { folderPath });
if (source) replaceScene(createImageEditScene(source, scene));
- })}><FolderOpen size={16} aria-hidden="true" />Open image</button>
+ })}><FolderOpen16 aria-hidden="true" />Open image</button>
{scene.sourceImage && <p className="image-inspector__caption">{scene.sourceImage.name} · {scene.sourceImage.width} × {scene.sourceImage.height}</p>}
</> : <>
<PropRow label="Name" htmlFor={rootField("name")}><input id={rootField("name")} className="text-field" value={selected.name} maxLength={120} onChange={(event) => { if (event.target.value.trim()) patchNode({ name: event.target.value }); }} /></PropRow>
@@ -612,7 +612,7 @@ export function ImageEditor({ config, folderPath, onChange: changeConfig, onGene
</PropRow>)}
</PropSection>}
{!(selected.kind === "root" && imageRoot) && <PropSection title="Color palette" persistKey="image.palette">
- <div className="image-palette">{selected.colors.map((color, index) => <div key={index}><input aria-label={`Palette color ${index + 1}`} type="color" value={color} onChange={(event) => patchNode({ colors: selected.colors.map((old, i) => i === index ? event.target.value : old) })} /><button className="icon-button image-pane-button" aria-label={`Remove color ${index + 1}`} data-tooltip="Remove color" onClick={() => patchNode({ colors: selected.colors.filter((_, i) => i !== index) })}><Trash2 size={14} aria-hidden="true" /></button></div>)}<button className="secondary-button" disabled={selected.colors.length >= (selected.kind === "root" ? 16 : 5)} onClick={() => patchNode({ colors: [...selected.colors, "#808080"] })}><Plus size={14} aria-hidden="true" />Color</button></div>
+ <div className="image-palette">{selected.colors.map((color, index) => <div key={index}><input aria-label={`Palette color ${index + 1}`} type="color" value={color} onChange={(event) => patchNode({ colors: selected.colors.map((old, i) => i === index ? event.target.value : old) })} /><button className="icon-button image-pane-button" aria-label={`Remove color ${index + 1}`} data-tooltip="Remove color" onClick={() => patchNode({ colors: selected.colors.filter((_, i) => i !== index) })}><Delete14 aria-hidden="true" /></button></div>)}<button className="secondary-button" disabled={selected.colors.length >= (selected.kind === "root" ? 16 : 5)} onClick={() => patchNode({ colors: [...selected.colors, "#808080"] })}><Add14 aria-hidden="true" />Color</button></div>
</PropSection>}
</div>
{debugEnabled && <div className="debug-prompt"><button type="button" className="secondary-button debug-prompt__toggle" aria-haspopup="dialog" onClick={() => attempt(() => setDebugPrompt(imageRoot ? imageEditDebugPrompt(compileImageEdits(config).edits) : compileImagePrompt(config).prompt))}>Debug prompt</button></div>}
diff --git a/src/components/workspace/MediaThumbnail.tsx b/src/components/workspace/MediaThumbnail.tsx
index 7297ab7..b4e0231 100644
--- a/src/components/workspace/MediaThumbnail.tsx
+++ b/src/components/workspace/MediaThumbnail.tsx
@@ -1,4 +1,4 @@
-import { Image as ImageIcon, Music2, TriangleAlert, Video } from "lucide-react";
+import { Audio22, Image22, Video22, Warning22 } from "../ui/icons";
import { useEffect, useRef, useState } from "react";
import { readMediaFileUrl } from "../../lib/persistence";
import type { ProjectAsset } from "../../lib/project";
@@ -277,9 +277,9 @@ export function MediaThumbnail({ folderPath, asset, onMeasured, posterTimeSecond
/* Three states, said plainly: sound never has a picture, a file the project
points at but cannot read is a problem worth seeing, and everything else
is the placeholder that was always here. */
- const icon = asset.kind === "audio" ? <Music2 size={22} />
- : failed ? <TriangleAlert size={22} />
- : asset.kind === "image" ? <ImageIcon size={22} /> : <Video size={22} />;
+ const icon = asset.kind === "audio" ? <Audio22 />
+ : failed ? <Warning22 />
+ : asset.kind === "image" ? <Image22 /> : <Video22 />;
return <span
className="media-thumb"
role="img"
diff --git a/src/components/workspace/ProgramMonitor.tsx b/src/components/workspace/ProgramMonitor.tsx
index 40b88a8..2075595 100644
--- a/src/components/workspace/ProgramMonitor.tsx
+++ b/src/components/workspace/ProgramMonitor.tsx
@@ -1,6 +1,6 @@
import { ProgramLayer } from "./ProgramLayer";
import { ProgramPicture } from "./ProgramPicture";
-import { Film } from "lucide-react";
+import { Film16 } from "../ui/icons";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { clipFrameStyle, clipVisualSettings, outputDimensions } from "../../lib/export";
import { isTauri } from "../../lib/persistence";
@@ -313,10 +313,10 @@ export function ProgramMonitor({ config, folderPath, playheadMs, playing, rate =
let overlay: React.ReactNode = null;
if (!hasClips || !clip) overlay = null;
else if (asset?.kind === "generated" && !asset.relativePath && !asset.sourcePath) {
- overlay = <div className="program-note"><Film size={16} /><span>{clip.label} isn’t generated yet</span></div>;
+ overlay = <div className="program-note"><Film16 /><span>{clip.label} isn’t generated yet</span></div>;
}
else if (!isTauri()) {
- overlay = <div className="program-note"><Film size={16} /><span>Playback needs the desktop app</span></div>;
+ overlay = <div className="program-note"><Film16 /><span>Playback needs the desktop app</span></div>;
}
/* The frame is fitted inside the panel and the rest is the project's own
diff --git a/src/components/workspace/ReferenceImage.tsx b/src/components/workspace/ReferenceImage.tsx
index 2bf4a31..f4a8291 100644
--- a/src/components/workspace/ReferenceImage.tsx
+++ b/src/components/workspace/ReferenceImage.tsx
@@ -1,4 +1,4 @@
-import { Image as ImageIcon, TriangleAlert } from "lucide-react";
+import { Image22, Warning22 } from "../ui/icons";
import { useEffect, useState } from "react";
import { readMediaFileUrl } from "../../lib/persistence";
@@ -64,7 +64,7 @@ export function ReferenceImage({ folderPath, relativePath, sourcePath = null, al
/* Two different states, said plainly rather than with one ambiguous
placeholder: still loading, or the file is not where the project says. */
return <span className={`reference-image-fallback ${className}`.trim()} role="img" aria-label={failed ? `${alt} — file missing` : `${alt} — loading`}>
- {failed ? <TriangleAlert size={22} aria-hidden="true" /> : <ImageIcon size={22} aria-hidden="true" />}
+ {failed ? <Warning22 aria-hidden="true" /> : <Image22 aria-hidden="true" />}
<em>{failed ? "File not found" : "Loading…"}</em>
</span>;
}
diff --git a/src/components/workspace/ReferenceVideo.tsx b/src/components/workspace/ReferenceVideo.tsx
index d0850f0..6a3428d 100644
--- a/src/components/workspace/ReferenceVideo.tsx
+++ b/src/components/workspace/ReferenceVideo.tsx
@@ -1,4 +1,4 @@
-import { Pause, Play, Scissors } from "lucide-react";
+import { Cut16, Pause14, Play14 } from "../ui/icons";
import { useEffect, useRef, useState, type KeyboardEvent, type PointerEvent } from "react";
import { ContentDialog } from "../ui";
import { readMediaFileUrl } from "../../lib/persistence";
@@ -15,7 +15,7 @@ export function ReferenceVideo(props: ReferenceVideoProps) {
const length = props.reference.video?.durationSeconds ?? 15;
return <>
{!open && <div className="reference-trim__summary"><strong>{referenceTime(start)} – {referenceTime(start + length)}</strong><span>{Number(length.toFixed(2))} s selected</span></div>}
- <button type="button" className="secondary-button" onClick={() => setOpen(true)}><Scissors size={16} /> Edit video clip</button>
+ <button type="button" className="secondary-button" onClick={() => setOpen(true)}><Cut16 /> Edit video clip</button>
{open && <ReferenceVideoDialog {...props} onClose={() => setOpen(false)} />}
</>;
}
@@ -196,7 +196,7 @@ function ReferenceVideoEditor({ folderPath, reference, onChange }: ReferenceVide
</div>
</div>
<div className="reference-trim__actions">
- <button type="button" className="secondary-button" onClick={() => void playSelection()}>{previewing ? <Pause size={14} /> : <Play size={14} />}{previewing ? "Pause selection" : "Play selection"}</button>
+ <button type="button" className="secondary-button" onClick={() => void playSelection()}>{previewing ? <Pause14 /> : <Play14 />}{previewing ? "Pause selection" : "Play selection"}</button>
</div>
<label><input type="checkbox" checked={reference.video?.includeAudio ?? true}
onChange={(event) => onChange({ ...trim, includeAudio: event.target.checked })} /> Include sound</label>
diff --git a/src/components/workspace/ReferencesView.tsx b/src/components/workspace/ReferencesView.tsx
index 01a49f9..7e2d715 100644
--- a/src/components/workspace/ReferencesView.tsx
+++ b/src/components/workspace/ReferencesView.tsx
@@ -1,4 +1,4 @@
-import { ArrowDown, ArrowUp, ChevronLeft, ChevronRight, ExternalLink, FileText, FolderOpen, ImagePlus, Images, LayoutGrid, List, MousePointerClick, Pencil, Plus, RefreshCw, Search, Trash2 } from "lucide-react";
+import { Add16, ArrowDown12, ArrowUp12, ChevronLeft16, ChevronRight16, CursorClick32, Delete14, Delete16, FolderOpen16, GridView16, GridView16Filled, ImageAdd14, ImageAdd16, Images32, ListView16, ListView16Filled, OpenExternal16, Refresh14, Refresh20, Rename16, Search16, TextFile14, TextFile16, TextFile24 } from "../ui/icons";
import { invoke } from "@tauri-apps/api/core";
import { useEffect, useMemo, useRef, useState, useSyncExternalStore, type KeyboardEvent, type MouseEvent } from "react";
import { isReferenceDescribed, projectItemPath, referenceImages, type ProjectConfig, type ProjectReference, type ProjectReferenceImage } from "../../lib/project";
@@ -363,15 +363,15 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
const file = referenceFile(folderPath, reference);
const many = selection.length > 1 && selection.includes(reference.id);
return [
- { id: "rename", label: "Rename", icon: <Pencil size={16} />, shortcut: "F2", disabled: many, onSelect: () => rename(reference.id) },
- { id: "add-file", label: "Add file…", icon: <ImagePlus size={16} />, disabled: many || Boolean(reference.refmods?.length) || importingFiles, onSelect: () => { selectOnly(reference.id); void addFiles(reference.id); } },
- { id: "reveal", label: "Show in File Explorer", icon: <FolderOpen size={16} />, disabled: many || !file || !isTauri(), onSelect: () => { if (file) void revealInExplorer(file).catch((reason) => setImportError(String(reason))); } },
+ { id: "rename", label: "Rename", icon: <Rename16 />, shortcut: "F2", disabled: many, onSelect: () => rename(reference.id) },
+ { id: "add-file", label: "Add file…", icon: <ImageAdd16 />, disabled: many || Boolean(reference.refmods?.length) || importingFiles, onSelect: () => { selectOnly(reference.id); void addFiles(reference.id); } },
+ { id: "reveal", label: "Show in File Explorer", icon: <FolderOpen16 />, disabled: many || !file || !isTauri(), onSelect: () => { if (file) void revealInExplorer(file).catch((reason) => setImportError(String(reason))); } },
{ separator: true },
...(users.length
- ? users.map((job): MenuEntry => ({ id: `open-${job.id}`, label: `Open ${job.title}`, icon: <ExternalLink size={16} />, disabled: !onOpenGenerator, onSelect: () => onOpenGenerator?.(job.id) }))
+ ? users.map((job): MenuEntry => ({ id: `open-${job.id}`, label: `Open ${job.title}`, icon: <OpenExternal16 />, disabled: !onOpenGenerator, onSelect: () => onOpenGenerator?.(job.id) }))
: [{ id: "unused", label: "Not used by any scene", disabled: true, onSelect: () => undefined } as MenuEntry]),
{ separator: true },
- { id: "delete", label: many ? `Delete ${selection.length} references` : "Delete", icon: <Trash2 size={16} />, shortcut: "Delete", danger: true, onSelect: () => remove(many ? selection : [reference.id]) },
+ { id: "delete", label: many ? `Delete ${selection.length} references` : "Delete", icon: <Delete16 />, shortcut: "Delete", danger: true, onSelect: () => remove(many ? selection : [reference.id]) },
];
};
const openMenu = (source: MouseEvent | KeyboardEvent, id: string) => {
@@ -401,7 +401,7 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
? <span className="reference-art reference-art--photo"><ReferenceImage folderPath={folderPath} relativePath={ref.iconRelativePath} alt={`${ref.name} icon`} /></span>
: presetIcon
? <span className="reference-art reference-art--photo"><PresetIcon preset={presetIcon} /></span>
- : <span className="reference-art reference-art--text"><FileText size={24} aria-hidden="true" /></span>;
+ : <span className="reference-art reference-art--text"><TextFile24 aria-hidden="true" /></span>;
};
const rovingId = selectedId && ordered.some((reference) => reference.id === selectedId) ? selectedId : ordered[0]?.id;
@@ -417,7 +417,7 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
const active = sort.key === key;
return <th scope="col" aria-sort={active ? (sort.descending ? "descending" : "ascending") : "none"}>
<button type="button" onClick={() => setSort((current) => ({ key, descending: current.key === key ? !current.descending : false }))}>
- {label}{active && (sort.descending ? <ArrowDown size={12} aria-hidden="true" /> : <ArrowUp size={12} aria-hidden="true" />)}
+ {label}{active && (sort.descending ? <ArrowDown12 aria-hidden="true" /> : <ArrowUp12 aria-hidden="true" />)}
</button>
</th>;
};
@@ -428,14 +428,14 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
aria-label="References"
className="references-command"
end={<>
- <CommandBarButton icon={<LayoutGrid size={16} />} label="Icons" pressed={view === "icons"} onClick={() => chooseView("icons")} />
- <CommandBarButton icon={<List size={16} />} label="Details" pressed={view === "details"} onClick={() => chooseView("details")} />
+ <CommandBarButton icon={view === "icons" ? <GridView16Filled /> : <GridView16 />} label="Icons" pressed={view === "icons"} onClick={() => chooseView("icons")} />
+ <CommandBarButton icon={view === "details" ? <ListView16Filled /> : <ListView16 />} label="Details" pressed={view === "details"} onClick={() => chooseView("details")} />
</>}
>
- <CommandBarButton icon={<Plus size={16} />} label="Add a reference" tooltip="Add reference" showLabel onClick={openNewReference} />
+ <CommandBarButton icon={<Add16 />} label="Add a reference" tooltip="Add reference" showLabel onClick={openNewReference} />
<CommandBarSeparator />
- <CommandBarButton icon={<ImagePlus size={16} />} label="Add file" showLabel disabled={!selected || importingFiles || hasRefmods || selection.length > 1} onClick={() => void addFiles()} />
- <CommandBarButton icon={<Trash2 size={16} />} label="Delete" shortcut="Delete" disabled={!selection.length} onClick={() => remove()} />
+ <CommandBarButton icon={<ImageAdd16 />} label="Add file" showLabel disabled={!selected || importingFiles || hasRefmods || selection.length > 1} onClick={() => void addFiles()} />
+ <CommandBarButton icon={<Delete16 />} label="Delete" shortcut="Delete" disabled={!selection.length} onClick={() => remove()} />
</CommandBar>
{importError && <InfoBar severity="error" title="Couldn’t add reference" message={importError} onClose={() => setImportError(null)} />}
{iconError && <InfoBar severity="error" title="Couldn’t regenerate icon" message={iconError} onClose={() => setIconError(null)} />}
@@ -443,7 +443,7 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
<h2 className="sr-only" id="reference-library-heading">Reference library</h2>
{config.references.length === 0
? <EmptyState
- icon={<Images />}
+ icon={<Images32 />}
title="No references yet"
description="A reference keeps a character, a place or a look the same in every scene that uses it."
action={<button type="button" className="secondary-button" onClick={openNewReference}>New reference</button>}
@@ -476,7 +476,7 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
{ordered.map((ref) => {
const users = usedBy(ref.id).length;
return <tr key={ref.id} className={selectedIds.has(ref.id) ? "reference-row--selected" : undefined} aria-label={`${ref.name} ${referenceKindLabel(ref)}`} {...itemProps(ref)}>
- <td><span className="reference-row__name"><span className="reference-row__icon" aria-hidden="true">{referenceImages(ref).length || ref.kind === "video" ? <ImagePlus size={14} /> : <FileText size={14} />}</span><span>{ref.name}</span></span></td>
+ <td><span className="reference-row__name"><span className="reference-row__icon" aria-hidden="true">{referenceImages(ref).length || ref.kind === "video" ? <ImageAdd14 /> : <TextFile14 />}</span><span>{ref.name}</span></span></td>
<td>{referenceTypeLabel(referenceType(ref))}</td>
<td>{referenceKindLabel(ref)}</td>
<td>{users === 0 ? "—" : users === 1 ? "1 scene" : `${users} scenes`}</td>
@@ -513,7 +513,7 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
referenceKindLabel(selected),
jobs.length === 0 ? "Not used" : jobs.length === 1 ? "1 scene" : `${jobs.length} scenes`,
].join(" · ")}
- actions={<button className="icon-button" onClick={() => remove([selected.id])} aria-label="Delete reference" {...tooltipProps("Delete reference", "Delete")}><Trash2 size={16} aria-hidden="true" /></button>}
+ actions={<button className="icon-button" onClick={() => remove([selected.id])} aria-label="Delete reference" {...tooltipProps("Delete reference", "Delete")}><Delete16 aria-hidden="true" /></button>}
/>}
<div className="reference-inspector__scroll">
{selected ? <>
@@ -521,7 +521,7 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
<section className="reference-video" aria-label="Video reference">
<ReferenceVideo key={`${selected.id}:${selected.sourcePath ?? selected.relativePath}`} folderPath={folderPath} reference={selected}
onChange={(video) => update(selected.id, { video })} />
- <button className="secondary-button" onClick={() => update(selected.id, { kind: "text", sourcePath: null, relativePath: null, video: undefined })}><Trash2 size={16} aria-hidden="true" /> Remove video</button>
+ <button className="secondary-button" onClick={() => update(selected.id, { kind: "text", sourcePath: null, relativePath: null, video: undefined })}><Delete16 aria-hidden="true" /> Remove video</button>
</section>
</PropSection>}
{/* The picture at a readable size, where the chip is only a glance:
@@ -538,10 +538,10 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
? <ReferenceImage className="reference-detail-preset-icon" folderPath={folderPath} relativePath={selected.iconRelativePath} alt={`${selected.name} reference icon`} />
: !hasRefmods && selectedPresetIcon
? <PresetIcon className="reference-detail-preset-icon" preset={selectedPresetIcon} alt={`${selected.name} reference icon`} />
- : <span><FileText size={16} aria-hidden="true" /></span>}
+ : <span><TextFile16 aria-hidden="true" /></span>}
{/* A caption only where there is no picture to look at. */}
{!showImages && !selected.iconRelativePath && (hasRefmods || !selectedPresetIcon) && <em>{referenceKindLabel(selected)}</em>}
- {showImages && <button type="button" className="reference-image-remove" aria-label="Remove reference image" {...tooltipProps(`Remove ${selectedImage.name}`)} onClick={removeImage}><Trash2 size={14} aria-hidden="true" /></button>}
+ {showImages && <button type="button" className="reference-image-remove" aria-label="Remove reference image" {...tooltipProps(`Remove ${selectedImage.name}`)} onClick={removeImage}><Delete14 aria-hidden="true" /></button>}
{!showImages && onRegenerateIcon && <button
type="button"
className="reference-icon-refresh"
@@ -553,12 +553,12 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
try { onRegenerateIcon(selected.id); }
catch (reason) { setIconError(reason instanceof Error ? reason.message : String(reason)); }
}}
- ><RefreshCw size={14} aria-hidden="true" /></button>}
+ ><Refresh14 aria-hidden="true" /></button>}
</div>
{showImages && <div className="reference-image-controls" role="group" aria-label="Reference images">
- <button type="button" className="icon-button" aria-label="Previous reference image" data-tooltip="Previous image" disabled={currentImagePage === 0} onClick={() => setImagePage(currentImagePage - 1)}><ChevronLeft size={16} aria-hidden="true" /></button>
+ <button type="button" className="icon-button" aria-label="Previous reference image" data-tooltip="Previous image" disabled={currentImagePage === 0} onClick={() => setImagePage(currentImagePage - 1)}><ChevronLeft16 aria-hidden="true" /></button>
<span aria-live="polite">Image {currentImagePage + 1} of {selectedImages.length}</span>
- <button type="button" className="icon-button" aria-label="Next reference image" data-tooltip="Next image" disabled={currentImagePage === selectedImages.length - 1} onClick={() => setImagePage(currentImagePage + 1)}><ChevronRight size={16} aria-hidden="true" /></button>
+ <button type="button" className="icon-button" aria-label="Next reference image" data-tooltip="Next image" disabled={currentImagePage === selectedImages.length - 1} onClick={() => setImagePage(currentImagePage + 1)}><ChevronRight16 aria-hidden="true" /></button>
</div>}
</PropSection>}
<PropSection title="Prompt" persistKey="references.prompt" summary={hasRefmods ? "Locked by refmods" : isReferenceDescribed(selected) ? undefined : "Not described"}>
@@ -577,7 +577,7 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
title="Refmods"
persistKey="references.refmods"
summary={selected.refmods!.length}
- actions={<button type="button" className="icon-button prop-row__button" aria-label="Remove refmods" data-tooltip="Remove all refmods" onClick={() => update(selected.id, { iconRelativePath: undefined, refmods: [] })}><Trash2 size={16} aria-hidden="true" /></button>}
+ actions={<button type="button" className="icon-button prop-row__button" aria-label="Remove refmods" data-tooltip="Remove all refmods" onClick={() => update(selected.id, { iconRelativePath: undefined, refmods: [] })}><Delete16 aria-hidden="true" /></button>}
>
<section className="reference-refmods" aria-label="Refmod attachments">
<p>Needs a Ref2VA generator. Strength 0 turns a refmod off; more copies use more GPU memory.</p>
@@ -635,11 +635,11 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
</PropSection>
<PropSection title="Used by" persistKey="references.used-by" summary={jobs.length}>
<div className="reference-used-by">
- {jobs.length ? jobs.map((job) => <button type="button" key={job.id} onClick={() => onOpenGenerator?.(job.id)} data-tooltip={`Open ${job.title}`}><b>{job.title}</b><ChevronRight size={16} aria-hidden="true" /></button>) : <p>No scenes yet.</p>}
+ {jobs.length ? jobs.map((job) => <button type="button" key={job.id} onClick={() => onOpenGenerator?.(job.id)} data-tooltip={`Open ${job.title}`}><b>{job.title}</b><ChevronRight16 aria-hidden="true" /></button>) : <p>No scenes yet.</p>}
</div>
</PropSection>
</> : <EmptyState
- icon={<MousePointerClick />}
+ icon={<CursorClick32 />}
title="Nothing selected"
description="Select a reference to see its details."
/>}
@@ -679,7 +679,7 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
</nav>
<section>
{pickerType !== "custom" && <>
- <label className="reference-preset-search"><Search size={16} aria-hidden="true" /><input value={presetSearch} onChange={(event) => setPresetSearch(event.target.value)} placeholder={`Search ${referenceTypeLabel(pickerType).toLocaleLowerCase()}`} aria-label="Search reference options" /></label>
+ <label className="reference-preset-search"><Search16 aria-hidden="true" /><input value={presetSearch} onChange={(event) => setPresetSearch(event.target.value)} placeholder={`Search ${referenceTypeLabel(pickerType).toLocaleLowerCase()}`} aria-label="Search reference options" /></label>
<SelectorBar
className="reference-subcategories"
aria-label={`${referenceTypeLabel(pickerType)} subcategories`}
@@ -697,7 +697,7 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,
setIconError(null);
try { onRegenerateBuiltinIcon(preset.id); }
catch (reason) { setIconError(reason instanceof Error ? reason.message : String(reason)); }
- }}><RefreshCw size={20} aria-hidden="true" /></button>}
+ }}><Refresh20 aria-hidden="true" /></button>}
</div>)}
{visiblePresets.length === 0 && <p>No results for “{presetSearch.trim()}”.</p>}
</div>
diff --git a/src/components/workspace/SceneBoard.tsx b/src/components/workspace/SceneBoard.tsx
index d188855..80cdd57 100644
--- a/src/components/workspace/SceneBoard.tsx
+++ b/src/components/workspace/SceneBoard.tsx
@@ -1,4 +1,4 @@
-import { ArrowDown, ArrowUp, ChevronDown, ChevronRight, ExternalLink, FolderInput, GripVertical, Pencil, Plus, Square, Trash2, WandSparkles } from "lucide-react";
+import { Add16, ArrowDown16, ArrowUp16, ChevronDown12, ChevronRight12, Delete16, Grip16, MoveTo16, OpenExternal16, Rename16, Stop14, Stop16, Wand16 } from "../ui/icons";
import { useState, type DragEvent, type KeyboardEvent, type ReactNode } from "react";
import {
SCENE_MAX_SECONDS,
@@ -133,15 +133,15 @@ export function SceneBoard({
const blocker = generationBlocker(job);
return [
cancellable
- ? { id: "cancel", label: "Cancel generation", icon: <Square size={16} />, onSelect: () => onGenerate(job) }
- : { id: "generate", label: "Generate", icon: <WandSparkles size={16} />, disabled: Boolean(blocker), onSelect: () => onGenerate(job) },
- { id: "rename", label: "Rename", icon: <Pencil size={16} />, shortcut: "F2", disabled: !onRename, onSelect: () => onRename?.({ jobId: job.id, shotId: null }) },
- { id: "add-shot", label: "Add shot", icon: <Plus size={16} />, onSelect: () => onAddShot(job) },
+ ? { id: "cancel", label: "Cancel generation", icon: <Stop16 />, onSelect: () => onGenerate(job) }
+ : { id: "generate", label: "Generate", icon: <Wand16 />, disabled: Boolean(blocker), onSelect: () => onGenerate(job) },
+ { id: "rename", label: "Rename", icon: <Rename16 />, shortcut: "F2", disabled: !onRename, onSelect: () => onRename?.({ jobId: job.id, shotId: null }) },
+ { id: "add-shot", label: "Add shot", icon: <Add16 />, onSelect: () => onAddShot(job) },
{ separator: true },
- { id: "up", label: "Move up", icon: <ArrowUp size={16} />, disabled: jobIndex === 0, onSelect: () => onMoveScene(job.id, jobs[jobIndex - 1]?.id ?? null) },
- { id: "down", label: "Move down", icon: <ArrowDown size={16} />, disabled: jobIndex === jobs.length - 1, onSelect: () => onMoveScene(job.id, jobs[jobIndex + 2]?.id ?? null) },
+ { id: "up", label: "Move up", icon: <ArrowUp16 />, disabled: jobIndex === 0, onSelect: () => onMoveScene(job.id, jobs[jobIndex - 1]?.id ?? null) },
+ { id: "down", label: "Move down", icon: <ArrowDown16 />, disabled: jobIndex === jobs.length - 1, onSelect: () => onMoveScene(job.id, jobs[jobIndex + 2]?.id ?? null) },
{ separator: true },
- { id: "delete", label: "Delete", icon: <Trash2 size={16} />, shortcut: "Delete", danger: true, disabled: !onRemoveScene, onSelect: () => onRemoveScene?.(job) },
+ { id: "delete", label: "Delete", icon: <Delete16 />, shortcut: "Delete", danger: true, disabled: !onRemoveScene, onSelect: () => onRemoveScene?.(job) },
];
};
@@ -149,12 +149,12 @@ export function SceneBoard({
const alone = sceneShots(job).length <= 1;
const others = jobs.filter((candidate) => candidate.id !== job.id);
return [
- { id: "open", label: "Open", icon: <ExternalLink size={16} />, onSelect: () => onSelect({ jobId: job.id, shotId: shot.id }) },
- { id: "rename", label: "Rename", icon: <Pencil size={16} />, shortcut: "F2", disabled: !onRename, onSelect: () => onRename?.({ jobId: job.id, shotId: shot.id }) },
+ { id: "open", label: "Open", icon: <OpenExternal16 />, onSelect: () => onSelect({ jobId: job.id, shotId: shot.id }) },
+ { id: "rename", label: "Rename", icon: <Rename16 />, shortcut: "F2", disabled: !onRename, onSelect: () => onRename?.({ jobId: job.id, shotId: shot.id }) },
...(others.length ? [{ separator: true } as const, {
id: "move-to",
label: "Move to",
- icon: <FolderInput size={16} />,
+ icon: <MoveTo16 />,
disabled: alone,
items: others.map((target): MenuEntry => ({
id: `move-${target.id}`,
@@ -163,7 +163,7 @@ export function SceneBoard({
})),
}] : []),
{ separator: true },
- { id: "delete", label: "Delete", icon: <Trash2 size={16} />, shortcut: "Delete", danger: true, disabled: alone || !onRemoveShot, onSelect: () => onRemoveShot?.(job, shot.id) },
+ { id: "delete", label: "Delete", icon: <Delete16 />, shortcut: "Delete", danger: true, disabled: alone || !onRemoveShot, onSelect: () => onRemoveShot?.(job, shot.id) },
];
};
@@ -312,7 +312,7 @@ export function SceneBoard({
aria-expanded={!isCollapsed}
aria-label={`${isCollapsed ? "Expand" : "Collapse"} ${job.title}`}
onClick={() => toggle(job.id)}
- >{isCollapsed ? <ChevronRight size={12} aria-hidden="true" /> : <ChevronDown size={12} aria-hidden="true" />}</button>
+ >{isCollapsed ? <ChevronRight12 aria-hidden="true" /> : <ChevronDown12 aria-hidden="true" />}</button>
<span
className="scene-rule__drag"
@@ -343,7 +343,7 @@ export function SceneBoard({
openSceneMenu(event);
}
}}
- ><GripVertical size={16} aria-hidden="true" /></span>
+ ><Grip16 aria-hidden="true" /></span>
<button
type="button"
@@ -357,7 +357,7 @@ export function SceneBoard({
openSceneMenu(event);
}}
>
- {job.status !== "draft" && <span className={`scene-rule__status scene-rule__status--${indicator}`}>{statusIcon(indicator, 16)}</span>}
+ {job.status !== "draft" && <span className={`scene-rule__status scene-rule__status--${indicator}`}>{statusIcon(indicator)}</span>}
<b className="scene-rule__title" data-tooltip={job.title}>{job.title}</b>
{job.status !== "draft" && indicator !== "generating" && <span className="scene-rule__badge">{STATUS_BADGE[indicator]}</span>}
{/* The section's summary, at the trailing edge like any section
@@ -377,14 +377,14 @@ export function SceneBoard({
/>
</label>
- <HeaderButton label={`Add a shot to ${job.title}`} tooltip="Add shot" onClick={() => onAddShot(job)}><Plus size={16} /></HeaderButton>
+ <HeaderButton label={`Add a shot to ${job.title}`} tooltip="Add shot" onClick={() => onAddShot(job)}><Add16 /></HeaderButton>
<HeaderButton
label={cancellable ? "Cancel" : "Generate"}
tooltip={cancellable ? `Cancel ${job.title}` : blocker ?? `Generate ${job.title}`}
className={cancellable ? "scene-rule__cancel" : undefined}
disabled={!cancellable && Boolean(blocker)}
onClick={() => onGenerate(job)}
- >{cancellable ? <Square size={14} /> : <WandSparkles size={16} />}</HeaderButton>
+ >{cancellable ? <Stop14 /> : <Wand16 />}</HeaderButton>
</header>
{!isCollapsed && <ol
diff --git a/src/components/workspace/SceneEditor.tsx b/src/components/workspace/SceneEditor.tsx
index 3a9e628..8b4a5b3 100644
--- a/src/components/workspace/SceneEditor.tsx
+++ b/src/components/workspace/SceneEditor.tsx
@@ -1,4 +1,4 @@
-import { ImagePlus, X } from "lucide-react";
+import { Dismiss12, ImageAdd16 } from "../ui/icons";
import { useId, useMemo, useRef, useState, type ReactNode } from "react";
import { ComboBox, InfoBar, PropRow, PropSection } from "../ui";
import {
@@ -365,7 +365,7 @@ export function SceneInspector({ job, shots, references, previousScene, defaultS
disabled={disabled || !importAvailable}
data-tooltip={importAvailable ? label : "Image import is available in the desktop app"}
onClick={onClick}
- ><ImagePlus size={16} aria-hidden="true" /></button>;
+ ><ImageAdd16 aria-hidden="true" /></button>;
return <section className="scene-inspector" aria-label="This scene">
<div role="region" aria-label="Scene" className="scene-settings">
@@ -607,7 +607,7 @@ function ShotSettings({ settings, disabled, shotNumber, onChange }: {
disabled={disabled}
aria-label={`Remove ${owner.label}: ${option.label} from shot ${shotNumber}`}
onClick={() => onChange(toggleShotTag(settings, owner.id, option.id))}
- ><X size={12} aria-hidden="true" /></button>
+ ><Dismiss12 aria-hidden="true" /></button>
</span>
</li>)}
{chosen.length === 0 && <li className="shot-settings__none">None</li>}
diff --git a/src/components/workspace/ShotThumbnail.tsx b/src/components/workspace/ShotThumbnail.tsx
index 9d1e585..a5f1fa3 100644
--- a/src/components/workspace/ShotThumbnail.tsx
+++ b/src/components/workspace/ShotThumbnail.tsx
@@ -1,4 +1,4 @@
-import { Ban, Clock3, Film, LoaderCircle, Pause, Play, TriangleAlert } from "lucide-react";
+import { Clock18, Film18, Pause20, Play20Filled, Prohibited18, Spinner18, Spinner20, Warning18, Warning20 } from "../ui/icons";
import { useEffect, useRef, useState, type ReactNode } from "react";
import { readMediaFileUrl } from "../../lib/persistence";
import { sceneDurationSeconds, type GenerationJob } from "../../lib/project";
@@ -219,20 +219,20 @@ export function shotPoster(folderPath: string, relativePath: string, seconds: nu
* the scene the user can see and act on, never a shrug. */
function placeholder(job: GenerationJob, failed: boolean, cancelling: boolean): { icon: ReactNode; word: string } {
if (cancelling && (job.status === "queued" || job.status === "generating")) {
- return { icon: <LoaderCircle size={18} className="spin" />, word: "Cancelling..." };
+ return { icon: <Spinner18 className="spin" />, word: "Cancelling..." };
}
switch (job.status) {
- case "generating": return { icon: <LoaderCircle size={18} className="spin" />, word: `Rendering ${Math.round(job.progress * 100)}%` };
- case "queued": return { icon: <Clock3 size={18} />, word: "Waiting to render" };
- case "ready": return { icon: <LoaderCircle size={18} className="spin" />, word: "Saving the file" };
- case "failed": return { icon: <TriangleAlert size={18} />, word: "Didn’t finish" };
- case "cancelled": return { icon: <Ban size={18} />, word: "Cancelled" };
+ case "generating": return { icon: <Spinner18 className="spin" />, word: `Rendering ${Math.round(job.progress * 100)}%` };
+ case "queued": return { icon: <Clock18 />, word: "Waiting to render" };
+ case "ready": return { icon: <Spinner18 className="spin" />, word: "Saving the file" };
+ case "failed": return { icon: <Warning18 />, word: "Didn’t finish" };
+ case "cancelled": return { icon: <Prohibited18 />, word: "Cancelled" };
case "completed": return job.outputRelativePath
? failed
- ? { icon: <TriangleAlert size={18} />, word: "No preview" }
- : { icon: <Film size={18} />, word: "Opening the file…" }
- : { icon: <TriangleAlert size={18} />, word: "No file saved" };
- default: return { icon: <Film size={18} />, word: "Not rendered yet" };
+ ? { icon: <Warning18 />, word: "No preview" }
+ : { icon: <Film18 />, word: "Opening the file…" }
+ : { icon: <Warning18 />, word: "No file saved" };
+ default: return { icon: <Film18 />, word: "Not rendered yet" };
}
}
@@ -415,7 +415,7 @@ export function ShotThumbnail({ folderPath, job, seconds, endSeconds = sceneDura
/>
: <img src={result.poster} alt="" loading="lazy" />}
<span className={`shot-thumb__play ${loadingPlayback ? "shot-thumb__play--loading" : ""}`} aria-hidden="true">
- {loadingPlayback ? <LoaderCircle size={20} className="spin" /> : playing ? <Pause size={20} /> : playFailed ? <TriangleAlert size={20} /> : <Play size={20} fill="currentColor" />}
+ {loadingPlayback ? <Spinner20 className="spin" /> : playing ? <Pause20 /> : playFailed ? <Warning20 /> : <Play20Filled />}
</span>
</button>;
}
diff --git a/src/components/workspace/TagEditor.tsx b/src/components/workspace/TagEditor.tsx
index 468ffb8..cafbed9 100644
--- a/src/components/workspace/TagEditor.tsx
+++ b/src/components/workspace/TagEditor.tsx
@@ -1,4 +1,4 @@
-import { X } from "lucide-react";
+import { Dismiss12 } from "../ui/icons";
import { useId, useLayoutEffect, useRef, useState } from "react";
import { createPortal } from "react-dom";
import "../../styles/tag-editor.css";
@@ -101,7 +101,7 @@ export function TagEditor({ label, value, suggestions, onChange }: {
}
drag.current = null; setDragging(null);
}} onLostPointerCapture={() => { drag.current = null; setDragging(null); }}>{tag}</button>
- <button type="button" className="tag-editor__remove" aria-label={`Remove ${tag} from ${label}`} tabIndex={-1} onClick={() => removeAt(index)}><X size={12} aria-hidden="true" /></button>
+ <button type="button" className="tag-editor__remove" aria-label={`Remove ${tag} from ${label}`} tabIndex={-1} onClick={() => removeAt(index)}><Dismiss12 aria-hidden="true" /></button>
</span>)}
<input
ref={input}
diff --git a/src/components/workspace/TimelineView.tsx b/src/components/workspace/TimelineView.tsx
index 5a35e7e..f6ebd75 100644
--- a/src/components/workspace/TimelineView.tsx
+++ b/src/components/workspace/TimelineView.tsx
@@ -2,10 +2,11 @@ import { clipEffectCount, ClipEffects } from "./ClipEffects";
import { ProjectStatus } from "./ProjectStatus";
import { PreviewEngineStatus } from "./PreviewEngineStatus";
import {
- AudioLines, ChevronFirst, ChevronLast, Clapperboard, Copy, Ellipsis, Film, Image as ImageIcon, LayoutGrid, List, Lock, LockOpen,
- MousePointerClick, PanelLeft, PanelRight, Pause, Play, Plus, Scan, Scissors, Sparkles, StepBack, StepForward, Trash2, Type, Upload,
- Volume2, VolumeX, ZoomIn, ZoomOut,
-} from "lucide-react";
+ Add16, Audio12, Audio16, Copy16, CursorClick32, Cut16, Delete16, Film12, Film16, Film20, Film32, GoToEnd16, GoToStart16,
+ GridView16, GridView16Filled, Image12, Image16, Import16, ListView16, ListView16Filled, Lock14Filled, More16, Mute14Filled,
+ NextFrame16, PanelLeft16, PanelLeft16Filled, PanelRight16, PanelRight16Filled, Pause16, Play16, PreviousFrame16, SafeArea16,
+ SafeArea16Filled, Scene32, Sparkle12, Sparkle16, Speaker14, Text12, Text16, Unlock14, ZoomIn16, ZoomOut16,
+} from "../ui/icons";
import { memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, type MutableRefObject } from "react";
import { outputDimensions, resolutionLabel } from "../../lib/export";
import { importMediaFiles, isTauri } from "../../lib/persistence";
@@ -81,11 +82,11 @@ const SHUTTLE_SPEEDS = [1, 2, 4];
the MEDIA's; a clip whose file is missing takes its track's. */
type ClipKind = "video" | "generated" | "image" | "audio" | "caption";
const CLIP_KINDS: Record<ClipKind, { label: string; color: string; icon: React.ReactNode; glyph: React.ReactNode }> = {
- video: { label: "Video", color: "var(--clip-video)", icon: <Film size={16} />, glyph: <Film size={12} aria-hidden="true" /> },
- generated: { label: "Generated video", color: "var(--clip-generated)", icon: <Sparkles size={16} />, glyph: <Sparkles size={12} aria-hidden="true" /> },
- image: { label: "Still image", color: "var(--clip-image)", icon: <ImageIcon size={16} />, glyph: <ImageIcon size={12} aria-hidden="true" /> },
- audio: { label: "Audio", color: "var(--clip-audio)", icon: <AudioLines size={16} />, glyph: <AudioLines size={12} aria-hidden="true" /> },
- caption: { label: "Caption", color: "var(--clip-caption)", icon: <Type size={16} />, glyph: <Type size={12} aria-hidden="true" /> },
+ video: { label: "Video", color: "var(--clip-video)", icon: <Film16 />, glyph: <Film12 aria-hidden="true" /> },
+ generated: { label: "Generated video", color: "var(--clip-generated)", icon: <Sparkle16 />, glyph: <Sparkle12 aria-hidden="true" /> },
+ image: { label: "Still image", color: "var(--clip-image)", icon: <Image16 />, glyph: <Image12 aria-hidden="true" /> },
+ audio: { label: "Audio", color: "var(--clip-audio)", icon: <Audio16 />, glyph: <Audio12 aria-hidden="true" /> },
+ caption: { label: "Caption", color: "var(--clip-caption)", icon: <Text16 />, glyph: <Text12 aria-hidden="true" /> },
};
const trackKindOf = (track: TimelineTrack): ClipKind => track.kind === "audio" ? "audio" : track.kind === "caption" ? "caption" : "video";
const clipKindOf = (asset: ProjectAsset | undefined, track: TimelineTrack): ClipKind => asset?.kind ?? trackKindOf(track);
@@ -1048,14 +1049,14 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
const locked = !track || track.locked;
return [
{ label: "Cut", shortcut: "Ctrl+X", disabled: locked, onSelect: () => cutClip(clip) },
- { label: "Copy", icon: <Copy size={16} />, shortcut: "Ctrl+C", onSelect: () => copyClip(clip) },
+ { label: "Copy", icon: <Copy16 />, shortcut: "Ctrl+C", onSelect: () => copyClip(clip) },
{ label: "Paste", shortcut: "Ctrl+V", disabled: !hasClipboard, onSelect: () => paste(clip.trackId) },
{ separator: true },
- { label: "Split at playhead", icon: <Scissors size={16} />, shortcut: "Ctrl+K", disabled: !canSplit(clip), onSelect: () => splitClip(clip) },
+ { label: "Split at playhead", icon: <Cut16 />, shortcut: "Ctrl+K", disabled: !canSplit(clip), onSelect: () => splitClip(clip) },
{ label: "Duplicate", shortcut: "Ctrl+D", disabled: locked, onSelect: () => duplicateClip(clip) },
{ label: "Rename", shortcut: "F2", onSelect: () => { setSelectedId(clip.id); renameSelected(); } },
{ separator: true },
- { label: "Delete", icon: <Trash2 size={16} />, shortcut: "Delete", danger: true, disabled: locked, onSelect: () => deleteClip(clip.id) },
+ { label: "Delete", icon: <Delete16 />, shortcut: "Delete", danger: true, disabled: locked, onSelect: () => deleteClip(clip.id) },
];
};
const laneTimeAt = (event: React.MouseEvent<HTMLElement>) => {
@@ -1172,7 +1173,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
onClick={() => void importMedia()}
disabled={importing || !isTauri()}
{...tooltipProps(isTauri() ? "Add video, sound or image files. Video and sound stay where they are; images are copied in." : "Importing files is available in the desktop app")}
- ><Upload size={16} aria-hidden="true" /> Import</button>
+ ><Import16 aria-hidden="true" /> Import</button>
{panelTab === "media" && <div className="scene-panel__layout" role="group" aria-label="Media layout">
<button
type="button"
@@ -1180,14 +1181,14 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
aria-pressed={mediaLayout === "grid"}
onClick={() => chooseMediaLayout("grid")}
{...tooltipProps("Grid")}
- ><LayoutGrid size={16} aria-hidden="true" /><span className="sr-only">Grid</span></button>
+ >{mediaLayout === "grid" ? <GridView16Filled aria-hidden="true" /> : <GridView16 aria-hidden="true" />}<span className="sr-only">Grid</span></button>
<button
type="button"
className="ui-toggle-button scene-panel__toggle"
aria-pressed={mediaLayout === "list"}
onClick={() => chooseMediaLayout("list")}
{...tooltipProps("List")}
- ><List size={16} aria-hidden="true" /><span className="sr-only">List</span></button>
+ >{mediaLayout === "list" ? <ListView16Filled aria-hidden="true" /> : <ListView16 aria-hidden="true" />}<span className="sr-only">List</span></button>
</div>}
</>}
/>
@@ -1221,7 +1222,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
>
<span className="scene-card__thumb">
{job.status !== "draft" ? <ShotThumbnail folderPath={folderPath} job={job} seconds={0} shotNumber={1} estimatedCompletionAt={generationCompletionTimes[job.id] ?? null} />
- : <Film size={20} aria-hidden="true" />}
+ : <Film20 aria-hidden="true" />}
<i>{String(index + 1).padStart(2, "0")}</i><em>{sceneDurationSeconds(job).toFixed(1)}s</em>
</span>
<span>
@@ -1232,7 +1233,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
</span>
</button>;
})}
- <button className="secondary-button scene-add" onClick={addScene}><Plus size={16} /> Add scene</button>
+ <button className="secondary-button scene-add" onClick={addScene}><Add16 /> Add scene</button>
</div>
) : (
<div className={`media-grid media-grid--${mediaLayout}`} role="tabpanel" aria-label="Media">
@@ -1259,7 +1260,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
onContextMenu={(event) => {
setMediaSelectedId(asset.id);
menu.open(event, [
- { label: "Remove from project", icon: <Trash2 size={16} />, shortcut: "Delete", danger: true, onSelect: () => removeMediaAsset(asset.id) },
+ { label: "Remove from project", icon: <Delete16 />, shortcut: "Delete", danger: true, onSelect: () => removeMediaAsset(asset.id) },
], { "aria-label": `${asset.name} actions` });
}}
{...tooltipProps(`${asset.name}. Drag onto a track to use it.`)}
@@ -1272,7 +1273,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
</div>)}
{mediaAssets.length === 0 && !importError && <EmptyState
className="media-grid__empty"
- icon={<Film />}
+ icon={<Film32 />}
title="No media yet"
description="Import video, sound or images, then drag them onto a track."
action={<button
@@ -1281,7 +1282,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
onClick={() => void importMedia()}
disabled={importing || !isTauri()}
{...tooltipProps(isTauri() ? undefined : "Importing files is available in the desktop app")}
- ><Upload size={16} aria-hidden="true" /> Import media</button>}
+ ><Import16 aria-hidden="true" /> Import media</button>}
/>}
{importError && <p className="panel-hint panel-hint--error" role="alert">{importError}</p>}
</div>
@@ -1312,7 +1313,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
/>
: <EmptyState
className="program-empty"
- icon={<Clapperboard />}
+ icon={<Scene32 />}
title="Nothing on the timeline yet"
description="Drop media on a track, or generate a scene."
action={<button
@@ -1321,7 +1322,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
onClick={() => void importMedia()}
disabled={importing || !isTauri()}
{...tooltipProps(isTauri() ? undefined : "Importing files is available in the desktop app")}
- ><Upload size={16} aria-hidden="true" /> Import media</button>}
+ ><Import16 aria-hidden="true" /> Import media</button>}
/>}
{safeArea && <div className="program-safe" aria-hidden="true"><i className="program-safe__frame"><b className="program-safe__action" /><b className="program-safe__title" /></i></div>}
</div>
@@ -1356,7 +1357,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
aria-label="Safe areas"
{...tooltipProps("Title and action safe areas")}
onClick={() => setSafeArea((value) => !value)}
- ><Scan size={16} aria-hidden="true" /></button>
+ >{safeArea ? <SafeArea16Filled aria-hidden="true" /> : <SafeArea16 aria-hidden="true" />}</button>
</footer>
</main>
@@ -1386,7 +1387,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
aria-haspopup="menu"
{...tooltipProps("More options")}
onClick={(event) => menu.open(event.currentTarget, clipMenuItems(selected), { "aria-label": `${selected.label} actions`, placement: "bottom-end", focusFirst: true })}
- ><Ellipsis size={16} aria-hidden="true" /></button>}
+ ><More16 aria-hidden="true" /></button>}
/>
<PropSection title="Timing" persistKey="timeline.clip.timing" summary={`${shortTimecode(selected.startMs, fps)} → ${shortTimecode(clipEndMs(selected), fps)}`}>
<PropRow label="Starts at"><span className="inspector-value">{formatTimecode(selected.startMs, fps)}</span></PropRow>
@@ -1430,7 +1431,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
</PropSection>
</> : <EmptyState
className="inspector-empty"
- icon={<MousePointerClick />}
+ icon={<CursorClick32 />}
title={clipCount === 0 ? "Nothing on the timeline yet" : "No clip selected"}
description={clipCount === 0
? "Drag media or a scene onto a track, then select the clip to edit it here."
@@ -1473,24 +1474,24 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {
{/* Go to start · Frame back · Play/Pause · Frame forward · Go to end —
the order every NLE uses, flat 28px buttons, no accent fill. */}
<div className="timeline-transport" role="group" aria-label="Transport">
- <button onClick={() => goTo(0)} aria-label="Go to start" {...tooltipProps(transportBlockedBy ?? "Go to start", transportBlockedBy ? undefined : "Home")} disabled={transportBlockedBy !== null}><ChevronFirst size={16} /></button>
- <button onClick={() => stepFrames(-1)} aria-label="Previous frame" {...tooltipProps(transportBlockedBy ?? "Previous frame", transportBlockedBy ? undefined : "Left")} disabled={transportBlockedBy !== null}><StepBack size={16} /></button>
- <button className="play-button" onClick={togglePlay} aria-label={playing ? "Pause" : "Play"} disabled={transportBlockedBy !== null} {...tooltipProps(transportBlockedBy ?? (playing ? "Pause" : "Play"), transportBlockedBy ? undefined : "Space")}>{playing ? <Pause size={16} /> : <Play size={16} />}</button>
- <button onClick={() => stepFrames(1)} aria-label="Next frame" {...tooltipProps(transportBlockedBy ?? "Next frame", transportBlockedBy ? undefined : "Right")} disabled={transportBlockedBy !== null}><StepForward size={16} /></button>
- <button onClick={() => goTo(contentEndMs)} aria-label="Go to end" {...tooltipProps(transportBlockedBy ?? "Go to end", transportBlockedBy ? undefined : "End")} disabled={transportBlockedBy !== null}><ChevronLast size={16} /></button>
+ <button onClick={() => goTo(0)} aria-label="Go to start" {...tooltipProps(transportBlockedBy ?? "Go to start", transportBlockedBy ? undefined : "Home")} disabled={transportBlockedBy !== null}><GoToStart16 /></button>
+ <button onClick={() => stepFrames(-1)} aria-label="Previous frame" {...tooltipProps(transportBlockedBy ?? "Previous frame", transportBlockedBy ? undefined : "Left")} disabled={transportBlockedBy !== null}><PreviousFrame16 /></button>
+ <button className="play-button" onClick={togglePlay} aria-label={playing ? "Pause" : "Play"} disabled={transportBlockedBy !== null} {...tooltipProps(transportBlockedBy ?? (playing ? "Pause" : "Play"), transportBlockedBy ? undefined : "Space")}>{playing ? <Pause16 /> : <Play16 />}</button>
+ <button onClick={() => stepFrames(1)} aria-label="Next frame" {...tooltipProps(transportBlockedBy ?? "Next frame", transportBlockedBy ? undefined : "Right")} disabled={transportBlockedBy !== null}><NextFrame16 /></button>
+ <button onClick={() => goTo(contentEndMs)} aria-label="Go to end" {...tooltipProps(transportBlockedBy ?? "Go to end", transportBlockedBy ? undefined : "End")} disabled={transportBlockedBy !== null}><GoToEnd16 /></button>
{playing && rate !== 1 && <span className="transport-rate" aria-live="polite">{rate > 0 ? `${rate}×` : `−${-rate}×`}</span>}
</div>
<div className="timeline-tools">
- <button onClick={splitSelected} disabled={splitBlockedBy !== null} {...tooltipProps(splitBlockedBy ?? "Split at playhead", splitBlockedBy ? undefined : "Ctrl+K")}><Scissors size={16} /> Split</button>
- <button onClick={duplicateSelected} disabled={duplicateBlockedBy !== null} {...tooltipProps(duplicateBlockedBy ?? "Duplicate clip", duplicateBlockedBy ? undefined : "Ctrl+D")}><Copy size={16} /> Duplicate</button>
- <button onClick={removeSelected} disabled={deleteBlockedBy !== null} {...tooltipProps(deleteBlockedBy ?? "Delete clip", deleteBlockedBy ? undefined : "Delete")}><Trash2 size={16} /> Delete</button>
+ <button onClick={splitSelected} disabled={splitBlockedBy !== null} {...tooltipProps(splitBlockedBy ?? "Split at playhead", splitBlockedBy ? undefined : "Ctrl+K")}><Cut16 /> Split</button>
+ <button onClick={duplicateSelected} disabled={duplicateBlockedBy !== null} {...tooltipProps(duplicateBlockedBy ?? "Duplicate clip", duplicateBlockedBy ? undefined : "Ctrl+D")}><Copy16 /> Duplicate</button>
+ <button onClick={removeSelected} disabled={deleteBlockedBy !== null} {...tooltipProps(deleteBlockedBy ?? "Delete clip", deleteBlockedBy ? undefined : "Delete")}><Delete16 /> Delete</button>
<span className="timeline-tools__separator" aria-hidden="true" />
- <button className="timeline-tools__icon" onClick={() => zoomTo(pxPerSecond / ZOOM_STEP)} disabled={!lanePx || pxPerSecond <= minPps + 1e-6} aria-label="Zoom out" {...tooltipProps("Zoom out", "-")}><ZoomOut size={16} /></button>
+ <button className="timeline-tools__icon" onClick={() => zoomTo(pxPerSecond / ZOOM_STEP)} disabled={!lanePx || pxPerSecond <= minPps + 1e-6} aria-label="Zoom out" {...tooltipProps("Zoom out", "-")}><ZoomOut16 /></button>
<Slider className="timeline-zoom" aria-label="Timeline zoom" min={0} max={100} step={1} value={zoomSliderValue} disabled={!lanePx} onChange={zoomFromSlider} />
- <button className="timeline-tools__icon" onClick={() => zoomTo(pxPerSecond * ZOOM_STEP)} disabled={!lanePx || pxPerSecond >= maxPps - 1e-6} aria-label="Zoom in" {...tooltipProps("Zoom in", "=")}><ZoomIn size={16} /></button>
+ <button className="timeline-tools__icon" onClick={() => zoomTo(pxPerSecond * ZOOM_STEP)} disabled={!lanePx || pxPerSecond >= maxPps - 1e-6} aria-label="Zoom in" {...tooltipProps("Zoom in", "=")}><ZoomIn16 /></button>
<span className="timeline-tools__separator" aria-hidden="true" />
- <button className="timeline-tools__icon ui-toggle-button" onClick={toggleSources} aria-pressed={sourcesOpen} aria-label="Media panel" {...tooltipProps(sourcesOpen ? "Hide media panel" : "Show media panel")}><PanelLeft size={16} /></button>
- <button className="timeline-tools__icon ui-toggle-button" onClick={toggleInspector} aria-pressed={inspectorOpen} aria-label="Inspector" {...tooltipProps(inspectorOpen ? "Hide inspector" : "Show inspector")}><PanelRight size={16} /></button>
+ <button className="timeline-tools__icon ui-toggle-button" onClick={toggleSources} aria-pressed={sourcesOpen} aria-label="Media panel" {...tooltipProps(sourcesOpen ? "Hide media panel" : "Show media panel")}>{sourcesOpen ? <PanelLeft16Filled /> : <PanelLeft16 />}</button>
+ <button className="timeline-tools__icon ui-toggle-button" onClick={toggleInspector} aria-pressed={inspectorOpen} aria-label="Inspector" {...tooltipProps(inspectorOpen ? "Hide inspector" : "Show inspector")}>{inspectorOpen ? <PanelRight16Filled /> : <PanelRight16 />}</button>
</div>
</header>
<div className="timeline-body">
@@ -1668,8 +1669,8 @@ const TrackRow = memo(function TrackRow({ track, alt, label, duration, folderPat
{...tooltipProps("Rename track")}
onChange={(event) => actions.current.rename(track.id, event.target.value || "Untitled track")}
/>
- <button className={track.muted ? "active" : ""} onClick={() => actions.current.toggle(track.id, "muted")} aria-label={`${track.muted ? "Unmute" : "Mute"} audio on ${named}`} aria-pressed={track.muted} {...tooltipProps(track.muted ? "Unmute" : "Mute")}>{track.muted ? <VolumeX size={14} /> : <Volume2 size={14} />}</button>
- <button className={track.locked ? "active" : ""} onClick={() => actions.current.toggle(track.id, "locked")} aria-label={`${track.locked ? "Unlock" : "Lock"} ${named}`} aria-pressed={track.locked} {...tooltipProps(track.locked ? "Unlock" : "Lock")}>{track.locked ? <Lock size={14} /> : <LockOpen size={14} />}</button>
+ <button className={track.muted ? "active" : ""} onClick={() => actions.current.toggle(track.id, "muted")} aria-label={`${track.muted ? "Unmute" : "Mute"} audio on ${named}`} aria-pressed={track.muted} {...tooltipProps(track.muted ? "Unmute" : "Mute")}>{track.muted ? <Mute14Filled /> : <Speaker14 />}</button>
+ <button className={track.locked ? "active" : ""} onClick={() => actions.current.toggle(track.id, "locked")} aria-label={`${track.locked ? "Unlock" : "Lock"} ${named}`} aria-pressed={track.locked} {...tooltipProps(track.locked ? "Unlock" : "Lock")}>{track.locked ? <Lock14Filled /> : <Unlock14 />}</button>
</div>
<div
className={`track-lane track-lane--${kind}${alt ? " track-lane--alt" : ""}${track.locked ? " track-lane--locked" : ""} ${track.muted ? "muted" : ""} ${dropActive ? "track-lane--drop" : ""} ${dropBlocked ? "track-lane--reject" : ""}`}
diff --git a/src/components/workspace/sceneStatus.tsx b/src/components/workspace/sceneStatus.tsx
index ad3df15..70b4aee 100644
--- a/src/components/workspace/sceneStatus.tsx
+++ b/src/components/workspace/sceneStatus.tsx
@@ -1,4 +1,4 @@
-import { AlertCircle, Ban, Check, Clock3, LoaderCircle, RefreshCw } from "lucide-react";
+import { Check16, Clock16, Error16, Prohibited16, Refresh16, Spinner16 } from "../ui/icons";
import { sceneDurationSeconds, sceneShots, type GenerationJob } from "../../lib/project";
/* What a scene's status is CALLED, in one place.
@@ -36,13 +36,13 @@ export const STATUS_WORD: Record<JobStatus, string> = {
/* Encoding turns the same spinner as rendering: it is the app working, not the
app waiting, and a tick beside "saving" would say it was already done. */
-export const statusIcon = (status: SceneIndicatorStatus, size = 16) =>
- status === "generating" || status === "ready" ? <LoaderCircle size={size} />
- : status === "completed" ? <Check size={size} />
- : status === "failed" ? <AlertCircle size={size} />
- : status === "cancelled" ? <Ban size={size} />
- : status === "changed" ? <RefreshCw size={size} />
- : <Clock3 size={size} />;
+export const statusIcon = (status: SceneIndicatorStatus) =>
+ status === "generating" || status === "ready" ? <Spinner16 />
+ : status === "completed" ? <Check16 />
+ : status === "failed" ? <Error16 />
+ : status === "cancelled" ? <Prohibited16 />
+ : status === "changed" ? <Refresh16 />
+ : <Clock16 />;
/** The shape of a scene — how long it runs and how many shots it is cut into. */
export const sceneShape = (job: GenerationJob) => {