Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fmt
Richie McIlroy778184700fce
diff --git a/apps/desktop/src/routes/(window-chrome)/(main).tsx b/apps/desktop/src/routes/(window-chrome)/(main).tsxindex 3f1be7516..79062b270 100644--- a/apps/desktop/src/routes/(window-chrome)/(main).tsx+++ b/apps/desktop/src/routes/(window-chrome)/(main).tsx@@ -15,7 +15,6 @@ import {Suspense,} from "solid-js";import { createStore, reconcile } from "solid-js/store";-import Mode from "~/components/Mode";import Tooltip from "~/components/Tooltip";import { identifyUser, trackEvent } from "~/utils/analytics";@@ -37,6 +36,9 @@ import {type RecordingMode,type ScreenCaptureTarget,} from "~/utils/tauri";+import IconCapLogoFull from "~icons/cap/logo-full";+import IconCapLogoFullDark from "~icons/cap/logo-full-dark";+import IconLucideBug from "~icons/lucide/bug";function getWindowSize() {return {diff --git a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsxindex 806b7ad12..04acfdcbf 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx@@ -130,53 +130,70 @@ export default function FeedbackTab() {</p>}>- {(diag) => (- <div class="space-y-3 text-sm">- <Show when={diag().macosVersion}>- {(ver) => (- <div class="space-y-1">- <p class="text-gray-11 font-medium">Operating System</p>- <p class="text-gray-10 bg-gray-2 px-2 py-1.5 rounded font-mono text-xs">- {ver().displayName}- </p>- </div>- )}- </Show>-- <div class="space-y-1">- <p class="text-gray-11 font-medium">Capture Support</p>- <div class="flex gap-2 flex-wrap">- <span- class={`px-2 py-1 rounded text-xs ${- diag().screenCaptureSupported- ? "bg-green-500/20 text-green-400"- : "bg-red-500/20 text-red-400"- }`}- >- Screen Capture:{" "}- {diag().screenCaptureSupported- ? "Supported"- : "Not Supported"}- </span>- </div>- </div>+ {(diag) => {+ const d = diag();+ const osVersion =+ "macosVersion" in d+ ? d.macosVersion+ : "windowsVersion" in d+ ? d.windowsVersion+ : null;+ const captureSupported =+ "screenCaptureSupported" in d+ ? d.screenCaptureSupported+ : "graphicsCaptureSupported" in d+ ? d.graphicsCaptureSupported+ : false;+ return (+ <div class="space-y-3 text-sm">+ <Show when={osVersion}>+ {(ver) => (+ <div class="space-y-1">+ <p class="text-gray-11 font-medium">+ Operating System+ </p>+ <p class="text-gray-10 bg-gray-2 px-2 py-1.5 rounded font-mono text-xs">+ {ver().displayName}+ </p>+ </div>+ )}+ </Show>- <Show when={diag().availableEncoders.length > 0}><div class="space-y-1">- <p class="text-gray-11 font-medium">Available Encoders</p>- <div class="flex gap-1.5 flex-wrap">- <For each={diag().availableEncoders}>- {(encoder) => (- <span class="px-2 py-1 bg-gray-2 rounded text-xs text-gray-10 font-mono">- {encoder}- </span>- )}- </For>+ <p class="text-gray-11 font-medium">Capture Support</p>+ <div class="flex gap-2 flex-wrap">+ <span+ class={`px-2 py-1 rounded text-xs ${+ captureSupported+ ? "bg-green-500/20 text-green-400"+ : "bg-red-500/20 text-red-400"+ }`}+ >+ Screen Capture:{" "}+ {captureSupported ? "Supported" : "Not Supported"}+ </span></div></div>- </Show>- </div>- )}++ <Show when={d.availableEncoders.length > 0}>+ <div class="space-y-1">+ <p class="text-gray-11 font-medium">+ Available Encoders+ </p>+ <div class="flex gap-1.5 flex-wrap">+ <For each={d.availableEncoders}>+ {(encoder) => (+ <span class="px-2 py-1 bg-gray-2 rounded text-xs text-gray-10 font-mono">+ {encoder}+ </span>+ )}+ </For>+ </div>+ </div>+ </Show>+ </div>+ );+ }}</Show></div></div>diff --git a/apps/desktop/src/routes/(window-chrome)/settings/integrations/index.tsx b/apps/desktop/src/routes/(window-chrome)/settings/integrations/index.tsxindex 3581b30e0..491e2752b 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/integrations/index.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/integrations/index.tsx@@ -1,6 +1,7 @@import { Button } from "@cap/ui-solid";import { useNavigate } from "@solidjs/router";import { For, onMount } from "solid-js";+import IconLucideDatabase from "~icons/lucide/database";import "@total-typescript/ts-reset/filter-boolean";import { authStore } from "~/store";