Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix: Mode select during onboarding (#1299)
Richie McIlroydd717623c19e
diff --git a/apps/desktop/src/components/ModeSelect.tsx b/apps/desktop/src/components/ModeSelect.tsxindex cfee9ecff..5c9535901 100644--- a/apps/desktop/src/components/ModeSelect.tsx+++ b/apps/desktop/src/components/ModeSelect.tsx@@ -16,10 +16,16 @@ interface ModeOptionProps {const ModeOption = (props: ModeOptionProps) => {return (<div+ data-tauri-drag-region="none"onClick={() => props.onSelect(props.mode)}class={cx(- `p-5 space-y-3 rounded-lg border transition-all duration-200 border-gray-4 dark:border-gray-3 h-fit bg-gray-3 dark:bg-gray-2`,+ "p-5 space-y-3 rounded-lg border transition-all duration-200 cursor-pointer h-fit",+ props.isSelected+ ? "border-blue-7 bg-blue-3/60 dark:border-blue-6 dark:bg-blue-4/40"+ : "border-gray-4 dark:border-gray-3 dark:bg-gray-2 hover:border-gray-6 dark:hover:border-gray-4 hover:bg-gray-2 dark:hover:bg-gray-3",)}+ role="button"+ aria-pressed={props.isSelected}><div class="flex flex-col items-center mb-2 text-center">{props.icon({@@ -28,7 +34,12 @@ const ModeOption = (props: ModeOptionProps) => {<h3 class="text-lg font-medium text-gray-12">{props.title}</h3></div>- <p class={`mx-auto w-full text-sm text-gray-11 max-w-[300px]`}>+ <p+ class={cx(+ "mx-auto w-full text-sm max-w-[300px]",+ props.isSelected ? "text-gray-12" : "text-gray-11",+ )}+ >{props.description}</p></div>@@ -47,20 +58,21 @@ const ModeSelect = (props: { onClose?: () => void; standalone?: boolean }) => {mode: "instant" as const,title: "Instant Mode",description:- "Share your screen instantly with a magic link — no waiting for rendering, just capture and share in seconds.",+ "Share your screen instantly with a shareable link. No waiting for rendering, just capture and share. Uploads in the background as you record.",icon: IconCapInstant,},{mode: "studio" as const,title: "Studio Mode",description:- "Records at the highest quality/framerate. Captures both your screen and camera separately for editing later.",+ "Records at the highest quality and framerate, completely locally. Captures both your screen and camera separately for editing and exporting later.",icon: IconCapFilmCut,},];return (<div+ data-tauri-drag-region="none"class={cx("grid grid-cols-2 gap-8 items-center text-center bg-gray-1",props.standalonediff --git a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsxindex cbd1c6bde..f81059faa 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx@@ -91,9 +91,12 @@ export default function FeedbackTab() {</form><div class="pt-6 border-t border-gray-2">- <h3 class="text-sm font-medium text-gray-12 mb-2">Debug Information</h3>+ <h3 class="text-sm font-medium text-gray-12 mb-2">+ Debug Information+ </h3><p class="text-sm text-gray-10 mb-3">- Upload your logs to help us diagnose issues with Cap. No personal information is included.+ Upload your logs to help us diagnose issues with Cap. No personal+ information is included.</p><ButtononClick={handleUploadLogs}diff --git a/apps/desktop/src/routes/(window-chrome)/setup.tsx b/apps/desktop/src/routes/(window-chrome)/setup.tsxindex 7b13a1a30..e13737eb9 100644--- a/apps/desktop/src/routes/(window-chrome)/setup.tsx+++ b/apps/desktop/src/routes/(window-chrome)/setup.tsx@@ -164,7 +164,9 @@ export default function () {<h1 class="text-[1.2rem] font-[700] mb-1 text-[--text-primary]">Select Recording Mode</h1>- <p class="text-gray-11">Choose how you want to record with Cap.</p>+ <p class="text-gray-11">+ Choose how you want to record with Cap. You can change this later.+ </p></div><div class="w-full py-4">diff --git a/apps/desktop/src/routes/mode-select.tsx b/apps/desktop/src/routes/mode-select.tsxindex c0f307b41..bbeb90846 100644--- a/apps/desktop/src/routes/mode-select.tsx+++ b/apps/desktop/src/routes/mode-select.tsx@@ -21,7 +21,10 @@ const ModeSelectWindow = () => {data-tauri-drag-regionclass="flex relative justify-center items-center p-4 min-h-screen bg-gray-1">- <div class="relative z-10 space-y-10 w-full max-w-3xl">+ <div+ data-tauri-drag-region="none"+ class="relative z-10 space-y-10 w-full max-w-3xl"+ ><h2 class="text-[24px] font-medium text-center text-gray-12">Recording Modes</h2>diff --git a/packages/ui-solid/src/auto-imports.d.ts b/packages/ui-solid/src/auto-imports.d.tsindex db21f744e..8914e81d1 100644--- a/packages/ui-solid/src/auto-imports.d.ts+++ b/packages/ui-solid/src/auto-imports.d.ts@@ -88,7 +88,7 @@ declare global {const IconLucideUnplug: typeof import('~icons/lucide/unplug.jsx')['default']const IconLucideVideo: typeof import('~icons/lucide/video.jsx')['default']const IconLucideVolume2: typeof import('~icons/lucide/volume2.jsx')['default']- const IconLucideVolumeX: typeof import("~icons/lucide/volume-x.jsx")["default"]+ const IconLucideVolumeX: typeof import('~icons/lucide/volume-x.jsx')['default']const IconMaterialSymbolsScreenshotFrame2Rounded: typeof import('~icons/material-symbols/screenshot-frame2-rounded.jsx')['default']const IconMdiLoading: typeof import("~icons/mdi/loading.jsx")["default"]const IconMdiMonitor: typeof import('~icons/mdi/monitor.jsx')['default']