Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
style(theme): apply dark mode styles across all screens
David Anyatonwuf9f69650410e
diff --git a/apps/desktop/src/routes/(window-chrome)/(main).tsx b/apps/desktop/src/routes/(window-chrome)/(main).tsxindex 3cf4f29c4..b199f185b 100644--- a/apps/desktop/src/routes/(window-chrome)/(main).tsx+++ b/apps/desktop/src/routes/(window-chrome)/(main).tsx@@ -118,10 +118,10 @@ export default function () {});return (- <div class="flex justify-center flex-col p-[1rem] gap-[0.75rem] text-[0.875rem] font-[400] bg-gray-50 h-full">+ <div class="flex justify-center flex-col p-[1rem] gap-[0.75rem] text-[0.875rem] font-[400] bg-[--gray-50] h-full text-[--text-primary]"><div class="flex items-center justify-between pb-[0.25rem]"><div class="flex items-center space-x-1">- <IconCapLogoFull class="w-[90px] h-auto" />+ <IconCapLogoFull class="w-[90px] h-auto text-[--text-primary]" /><spanonClick={async () => {if (!isUpgraded()) {@@ -130,7 +130,7 @@ export default function () {}}class={`text-[0.625rem] ${isUpgraded()- ? "bg-blue-400 text-gray-50"+ ? "bg-[--blue-400] text-[--text-primary]": "bg-gray-200 text-gray-400 cursor-pointer hover:bg-gray-300"} rounded-lg px-1.5 py-0.5`}>@@ -150,9 +150,9 @@ export default function () {</button></Tooltip.Trigger><Tooltip.Portal>- <Tooltip.Content class="z-50 px-2 py-1 text-xs text-gray-50 bg-gray-500 rounded shadow-lg animate-in fade-in duration-100">+ <Tooltip.Content class="z-50 px-2 py-1 text-xs text-gray-50 bg-[--gray-500] rounded shadow-lg animate-in fade-in duration-100">Cap Apps- <Tooltip.Arrow class="fill-gray-500" />+ <Tooltip.Arrow class="fill-[--gray-500]" /></Tooltip.Content></Tooltip.Portal></Tooltip.Root>@@ -205,7 +205,7 @@ export default function () {variant={isRecording() ? "destructive" : "primary"}size="md"onClick={() => toggleRecording.mutate()}- class="flex-grow"+ class="flex-grow text-[--text-primary] hover:text-[--text-primary]">{isRecording() ? "Stop Recording" : "Start Recording"}</Button>@@ -222,7 +222,7 @@ export default function () {href={`${import.meta.env.VITE_SERVER_URL}/dashboard`}target="_blank"rel="noreferrer"- class="text-gray-400 text-[0.875rem] mx-auto hover:text-gray-500 hover:underline"+ class="text-[--text-tertiary] text-[0.875rem] mx-auto hover:text-[--text-primary] hover:underline">Open Cap on Web</a>@@ -394,8 +394,8 @@ function CameraSelect(props: {selectOptions()?.find((o) => o.name === props.options?.cameraLabel) ?? null;return (- <div class="flex flex-col gap-[0.25rem] items-stretch">- <label class="text-gray-400 text-[0.875rem]">Camera</label>+ <div class="flex flex-col gap-[0.25rem] items-stretch text-[--text-primary]">+ <label class="text-[--text-tertiary] text-[0.875rem]">Camera</label><KSelect<Option>options={selectOptions()}optionValue="name"@@ -506,8 +506,8 @@ function MicrophoneSelect(props: {Math.pow(1 - Math.max((dbs() ?? 0) + DB_SCALE, 0) / DB_SCALE, 0.5);return (- <div class="flex flex-col gap-[0.25rem] items-stretch">- <label class="text-gray-400">Microphone</label>+ <div class="flex flex-col gap-[0.25rem] items-stretch text-[--text-primary]">+ <label class="text-[--text-tertiary]">Microphone</label><KSelect<Option>options={[{ name: "No Audio", deviceId: "" }, ...(devices.data ?? [])]}optionValue="deviceId"diff --git a/apps/desktop/src/routes/(window-chrome)/settings.tsx b/apps/desktop/src/routes/(window-chrome)/settings.tsxindex e09384e03..0a538289d 100644--- a/apps/desktop/src/routes/(window-chrome)/settings.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings.tsx@@ -13,9 +13,9 @@ export default function Settings(props: RouteSectionProps) {const [version] = createResource(() => getVersion());return (- <div class="flex-1 flex flex-row divide-x divide-gray-200 text-[0.875rem] leading-[1.25rem] overflow-y-hidden">+ <div class="flex-1 flex flex-row divide-x divide-[--gray-200] text-[0.875rem] leading-[1.25rem] overflow-y-hidden"><div class="h-full flex flex-col">- <ul class="min-w-[12rem] h-full p-[0.625rem] space-y-2">+ <ul class="min-w-[12rem] h-full p-[0.625rem] space-y-2 text-[--text-primary]"><Foreach={[{ href: "general", name: "General", icon: IconCapSettings },diff --git a/apps/desktop/src/routes/(window-chrome)/settings/apps/index.tsx b/apps/desktop/src/routes/(window-chrome)/settings/apps/index.tsxindex 32b5e6b1c..3f1ae7e43 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/apps/index.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/apps/index.tsx@@ -30,14 +30,14 @@ export default function AppsTab() {<div class="p-4"><For each={apps}>{(app) => (- <div class="p-1.5 bg-white rounded-lg border border-gray-200">- <div class="flex justify-between items-center border-b border-gray-200 pb-2">+ <div class="p-1.5 bg-white rounded-lg border border-[--gray-500]">+ <div class="flex justify-between items-center border-b border-[--gray-500] pb-2"><div class="flex items-center gap-3">- <div class="p-2 rounded-lg bg-gray-100">- <app.icon class="w-4 h-4 text-gray-500" />+ <div class="p-2 rounded-lg bg-[--gray-100]">+ <app.icon class="w-4 h-4 text-[--text-tertiary]" /></div><div class="flex flex-col gap-1">- <span class="text-sm font-medium text-gray-900">+ <span class="text-sm font-medium text-[--text-primary]">{app.name}</span></div>@@ -50,7 +50,7 @@ export default function AppsTab() {</Button></div><div class="p-2">- <p class="text-xs text-gray-400">{app.description}</p>+ <p class="text-xs text-[--text-tertiary]">{app.description}</p></div></div>)}diff --git a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsxindex 9e8ad7608..9faf21059 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx@@ -102,16 +102,16 @@ function Inner(props: { initialStore: HotkeysStore | null }) {});return (- <li class="w-full flex flex-row justify-between items-center">+ <li class="w-full flex flex-row justify-between items-center text-[--text-primary]"><span>{ACTION_TEXT[item()]}</span>- <div class="w-[9rem] h-[2rem]">+ <div class="w-[9rem] h-[2rem] "><Switch><Match when={listening()?.action === item()}>- <div class="border border-blue-300 rounded-lg text-gray-500 w-full h-full bg-gray-100 flex flex-row items-center justify-between px-[0.375rem]">+ <div class="border border-[--gray-500] rounded-lg text-[--text-tertiary] w-full h-full bg-[--gray-100] flex flex-row items-center justify-between px-[0.375rem]"><Show when={hotkeys[item()]} fallback="Listening">{(binding) => <HotkeyText binding={binding()} />}</Show>- <div class="flex flex-row items-center gap-[0.125rem]">+ <div class="flex flex-row items-center gap-[0.125rem] text-[--text-tertiary]"><Show when={hotkeys[item()]}><buttontype="button"@@ -125,7 +125,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {);}}>- <IconCapCircleCheck class="size-[1.25rem] text-blue-300" />+ <IconCapCircleCheck class="size-[1.25rem] text-[--blue-400]" /></button></Show><button@@ -140,7 +140,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {});}}>- <IconCapCircleX class="size-[1.25rem] text-gray-400" />+ <IconCapCircleX class="size-[1.25rem] text-[--gray-400]" /></button></div></div>@@ -148,7 +148,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {<Match when={listening()?.action !== item()}><buttontype="button"- class="border border-gray-200 rounded-lg text-gray-400 w-full h-full"+ class="border border-[--gray-500] rounded-lg text-[--text-tertiary] w-full h-full"onClick={(e) => {e.stopPropagation();setListening({@@ -169,7 +169,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {}}</Index></ul>- <div class="flex flex-row-reverse p-[1rem]">+ <div class="flex flex-row-reverse p-[1rem] text-[--text-primary]"><Button disabled variant="secondary">Restore Defaults</Button>@@ -180,7 +180,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {function HotkeyText(props: { binding: Hotkey }) {return (- <span class="space-x-0.5">+ <span class="space-x-0.5 text-[--text-tertiary]">{props.binding.meta && <span>⌘</span>}{props.binding.ctrl && <span>⌃</span>}{props.binding.alt && <span>⌥</span>}diff --git a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsxindex 7de458006..f61416f95 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx@@ -56,13 +56,13 @@ export default function Recordings() {};return (- <div class="flex flex-col w-full h-full divide-y divide-gray-200 pt-1 pb-12">+ <div class="flex flex-col w-full h-full divide-y divide-[--gray-200] pt-1 pb-12"><div class="flex-1 overflow-y-auto">- <ul class="p-[0.625rem] flex flex-col gap-[0.5rem] w-full">+ <ul class="p-[0.625rem] flex flex-col gap-[0.5rem] w-full text-[--text-primary]"><Showwhen={fetchRecordings.data && fetchRecordings.data.length > 0}fallback={- <p class="text-center text-gray-500">No recordings found</p>+ <p class="text-center text-[--text-tertiary]">No recordings found</p>}><For each={fetchRecordings.data}>