Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(desktop): relocate main window help for macOS titlebar
Richie McIlroy5dd73f00f8cc
diff --git a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsxindex d6f7ea983..573a7cf91 100644--- a/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx+++ b/apps/desktop/src/routes/(window-chrome)/new-main/index.tsx@@ -960,6 +960,22 @@ function createUpdateCheck() {});}+function MainWindowHelpButton() {+ return (+ <Tooltip content={<span>Help & Tour</span>}>+ <button+ type="button"+ onClick={() => {+ commands.showWindow("Onboarding");+ }}+ class="flex shrink-0 justify-center items-center size-5 focus:outline-none"+ >+ <IconLucideCircleHelp class="transition-colors text-gray-11 size-4 hover:text-gray-12" />+ </button>+ </Tooltip>+ );+}+function Page() {const { rawOptions, setOptions } = useRecordingOptions();const currentRecording = createCurrentRecordingQuery();@@ -1686,13 +1702,14 @@ function Page() {><WindowChromeHeader hideMaximize><div- class={cx(- "flex items-center mx-2 w-full",- ostype() === "macos" && "flex-row-reverse",- )}+ class="flex flex-1 gap-1 items-center mx-2 min-w-0"data-tauri-drag-region>- <div class="flex gap-1 items-center" data-tauri-drag-region>+ <Show when={ostype() === "macos"}>+ <MainWindowHelpButton />+ </Show>+ <div class="flex-1 min-h-9 min-w-0" data-tauri-drag-region />+ <div class="flex gap-1 items-center shrink-0" data-tauri-drag-region><Tooltip content={<span>Settings</span>}><buttontype="button"@@ -1744,17 +1761,6 @@ function Page() {</button></Tooltip><ChangelogButton />- <Tooltip content={<span>Help & Tour</span>}>- <button- type="button"- onClick={() => {- commands.showWindow("Onboarding");- }}- class="flex justify-center items-center size-5 focus:outline-none"- >- <IconLucideCircleHelp class="transition-colors text-gray-11 size-4 hover:text-gray-12" />- </button>- </Tooltip>{import.meta.env.DEV && (<buttontype="button"@@ -1767,9 +1773,9 @@ function Page() {</button>)}</div>- {ostype() === "macos" && (- <div class="flex-1" data-tauri-drag-region />- )}+ <Show when={ostype() !== "macos"}>+ <MainWindowHelpButton />+ </Show></div></WindowChromeHeader><Show when={!activeMenu()}>