Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(editor): a subagent review of the previous commit's own diff, addressed
EtienneLescotee628222f459
diff --git a/index.html b/index.htmlindex a7ee0237c..a5d20360c 100644--- a/index.html+++ b/index.html@@ -5,6 +5,20 @@<link rel="icon" type="image/svg+xml" href="/vite.svg" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title></title>+ <script>+ // Apply the stored theme before first paint — src/hooks/useTheme.ts+ // does the same thing, but only once the editor's code-split chunk+ // mounts and its useEffect runs. Left to that alone, a dark-theme+ // user sees the CSS-token-driven UI (the Suspense fallback, etc.)+ // flash light on every load, since design-tokens.css's :root:root+ // block (light) applies until data-theme="dark" lands.+ try {+ if (localStorage.getItem("openscreen-theme") === "dark") {+ document.documentElement.setAttribute("data-theme", "dark");+ document.documentElement.classList.add("dark");+ }+ } catch {}+ </script></head><body style="background:#09090b;margin:0"><div id="root"></div>diff --git a/src/components/ai-edition/LeftPanel.tsx b/src/components/ai-edition/LeftPanel.tsxindex 06a349ef1..2cafaebf2 100644--- a/src/components/ai-edition/LeftPanel.tsx+++ b/src/components/ai-edition/LeftPanel.tsx@@ -1952,7 +1952,7 @@ function ChatStripPanel() {background: "var(--accent)",border: "1px solid var(--accent)",borderRadius: "var(--r-sm)",- color: "var(--bg)",+ color: "var(--accent-on)",font: "500 12px var(--font-body)",cursor: "pointer",}}diff --git a/src/components/ai-edition/v4/EditorShellV4.module.css b/src/components/ai-edition/v4/EditorShellV4.module.cssindex 6d47a11aa..df6af761a 100644--- a/src/components/ai-edition/v4/EditorShellV4.module.css+++ b/src/components/ai-edition/v4/EditorShellV4.module.css@@ -1140,6 +1140,7 @@.bigRecBtn.recording {border-color: var(--danger);background: var(--danger);+ color: #fff;}.bigRecDot {width: 10px;diff --git a/src/components/ai-edition/v4/MediaStage.tsx b/src/components/ai-edition/v4/MediaStage.tsxindex f844bfca4..81fd07ed8 100644--- a/src/components/ai-edition/v4/MediaStage.tsx+++ b/src/components/ai-edition/v4/MediaStage.tsx@@ -285,7 +285,7 @@ export function MediaStage({borderRadius: 9,border: "1px solid var(--accent)",background: "var(--accent)",- color: "var(--on-accent, #fff)",+ color: "var(--accent-on)",fontSize: 12.5,fontWeight: 650,cursor: "pointer",diff --git a/src/components/video-editor/ShortcutsConfigDialog.tsx b/src/components/video-editor/ShortcutsConfigDialog.tsxindex 118e6e716..7118a2915 100644--- a/src/components/video-editor/ShortcutsConfigDialog.tsx+++ b/src/components/video-editor/ShortcutsConfigDialog.tsx@@ -178,7 +178,7 @@ export function ShortcutsConfigDialog() {</button></div>{hasConflict && conflict?.conflictWith.type === "configurable" && (- <div className="flex items-center justify-between px-1 py-1.5 mb-0.5 bg-[var(--warn-soft)] border border-[var(--warn-soft)] rounded text-xs">+ <div className="flex items-center justify-between px-1 py-1.5 mb-0.5 bg-[var(--warn-soft)] border border-[var(--warn)] rounded text-xs"><span className="text-[var(--warn)]">⚠{" "}{t("alreadyUsedBy", {@@ -189,7 +189,7 @@ export function ShortcutsConfigDialog() {<buttontype="button"onClick={handleSwap}- className="px-2 py-0.5 bg-[var(--warn-soft)] hover:bg-[var(--warn-soft)] border border-[var(--warn)] rounded text-[var(--warn)] font-medium transition-colors"+ className="px-2 py-0.5 bg-[var(--warn-soft)] hover:bg-[color-mix(in_srgb,var(--warn)_28%,transparent)] border border-[var(--warn)] rounded text-[var(--warn)] font-medium transition-colors">{t("swap")}</button>