Skip to content

The open source AI video agent: turns any coding agent into a video agent, with an editor to change anything it makes.

Projects: the logo opens Settings when no project is open (#200)

WEBGRSce2e12006687
diff --git a/.changeset/settings-from-projects.md b/.changeset/settings-from-projects.md
new file mode 100644
index 0000000..8e70527
--- /dev/null
+++ b/.changeset/settings-from-projects.md
@@ -0,0 +1,6 @@
+---
+"openfilm": patch
+"@openfilm/desktop": patch
+---
+
+In the app, with no project open, the logo at the top left opens Settings. The projects window's shade covered it, so a click on it did nothing. The top bar now stays above the shade, in the window's color.
diff --git a/packages/openfilm/studio/ui/src/components/Launcher.tsx b/packages/openfilm/studio/ui/src/components/Launcher.tsx
index c99a1d2..d97408c 100644
--- a/packages/openfilm/studio/ui/src/components/Launcher.tsx
+++ b/packages/openfilm/studio/ui/src/components/Launcher.tsx
@@ -2,7 +2,8 @@
* The window of an app with tabs (lib/host.ts `tabs`) when no tab is open: an empty window (its top bar still drags
* it) and the projects window over it, as `+` opens it, only with nothing behind to close it to. The project picked
* opens in its tab. Shown while tabs are open too (a tab's page that could not load), its top bar has them, so they
- * can always be reached.
+ * can always be reached. The top bar stays above the projects window's shade, in the window's color like the system's
+ * window buttons beside it: its logo opens Settings, as a project's does.
*/
import { BrandLogo } from './BrandLogo';
import { ProjectsPopover } from './ProjectsLibrary';
@@ -17,8 +18,10 @@ export function Launcher({ onOpen }: { onOpen: (projectId: string) => void }) {
const [settings, setSettings] = useSettings();
const { tabs } = useHostTabs();
return (
- <div className="workspace-shell flex flex-col bg-[var(--dock-shell)]">
- <div data-titlebar className="relative flex h-8 min-w-0 shrink-0 items-center gap-1 px-[6px]">
+ <>
+ <div className="workspace-shell bg-[var(--dock-shell)]" />
+ {/* not inside the shell: a fixed box is a layer of its own, which would keep this bar under the shade */}
+ <div data-titlebar className="fixed inset-x-0 top-0 z-[10045] flex h-8 min-w-0 items-center gap-1 bg-[var(--dock-shell)] px-[6px]">
<div aria-hidden className="shrink-0 self-stretch" style={{ width: 'var(--titlebar-logo-x)' }} />
<Tooltip label={t('project.appMenu')} side="bottom">
<button type="button" aria-label={t('project.appMenu')} aria-haspopup="dialog" onClick={() => setSettings('general')}
@@ -30,6 +33,6 @@ export function Launcher({ onOpen }: { onOpen: (projectId: string) => void }) {
</div>
<ProjectsPopover open currentProjectId="" onOpen={onOpen} onCurrentRemoved={() => {}} />
<SettingsModal open={settings !== null} section={settings ?? undefined} onClose={() => setSettings(null)} />
- </div>
+ </>
);
}