Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
design: updated settings of Cap desktop (#803)
Ameer Al Ashhabe613cfc40ff9
diff --git a/apps/desktop/src/components/Toggle.tsx b/apps/desktop/src/components/Toggle.tsxindex f537ee279..5fd05b16b 100644--- a/apps/desktop/src/components/Toggle.tsx+++ b/apps/desktop/src/components/Toggle.tsx@@ -1,14 +1,14 @@import { Switch as KSwitch } from "@kobalte/core/switch";-import { cva, type VariantProps } from "cva";+import { cva } from "cva";import { splitProps, type ComponentProps } from "solid-js";const toggleControlStyles = cva(- "rounded-full bg-gray-5 ui-disabled:bg-gray-3 ui-checked:bg-blue-9 transition-colors outline-2 outline-offset-2 outline-blue-300",+ "rounded-full bg-gray-6 ui-disabled:bg-gray-3 ui-checked:bg-blue-500 transition-colors outline-2 outline-offset-2 outline-blue-300",{variants: {size: {sm: "w-9 h-[1.25rem] p-[0.125rem]",- md: "w-11 h-[1.5rem] p-[0.125rem]",+ md: "w-11 h-[1.4rem] p-[0.125rem]",lg: "w-14 h-[1.75rem] p-[0.1875rem]",},},diff --git a/apps/desktop/src/components/titlebar/Titlebar.tsx b/apps/desktop/src/components/titlebar/Titlebar.tsxindex 8becab605..5b3129fcf 100644--- a/apps/desktop/src/components/titlebar/Titlebar.tsx+++ b/apps/desktop/src/components/titlebar/Titlebar.tsx@@ -18,8 +18,8 @@ export default function Titlebar() {titlebarState.backgroundColor? titlebarState.backgroundColor: titlebarState.transparent- ? "bg-transparent"- : "bg-gray-2",+ ? "bg-transparent"+ : "bg-gray-2",titlebarState.border ? "border-b border-b-black-transparent-5" : "")}style={{diff --git a/apps/desktop/src/routes/(window-chrome).tsx b/apps/desktop/src/routes/(window-chrome).tsxindex c17e1b0e7..8181b5398 100644--- a/apps/desktop/src/routes/(window-chrome).tsx+++ b/apps/desktop/src/routes/(window-chrome).tsx@@ -80,7 +80,7 @@ function Header() {return (<headerclass={cx(- "flex items-center space-x-1 h-9 select-none shrink-0 bg-gray-2",+ "flex items-center space-x-1 h-9 border select-none shrink-0 bg-gray-2",isWindows ? "flex-row" : "flex-row-reverse pl-[5rem]")}data-tauri-drag-regiondiff --git a/apps/desktop/src/routes/(window-chrome)/settings.tsx b/apps/desktop/src/routes/(window-chrome)/settings.tsxindex 5bf375911..42df5e13b 100644--- a/apps/desktop/src/routes/(window-chrome)/settings.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings.tsx@@ -21,7 +21,7 @@ export default function Settings(props: RouteSectionProps) {};return (- <div class="flex-1 flex flex-row divide-x divide-gray-5 text-[0.875rem] leading-[1.25rem] overflow-y-hidden">+ <div class="flex-1 flex flex-row divide-x divide-gray-3 text-[0.875rem] leading-[1.25rem] overflow-y-hidden"><div class="flex flex-col h-full bg-gray-2"><ul class="min-w-[12rem] h-full p-[0.625rem] space-y-1 text-gray-12"><For@@ -84,7 +84,7 @@ export default function Settings(props: RouteSectionProps) {</ul><div class="p-[0.625rem] text-left flex flex-col"><Show when={version()}>- {(v) => <p class="mb-1 text-xs text-gray-11">v{v()}</p>}+ {(v) => <p class="mb-2 text-xs text-gray-11">v{v()}</p>}</Show>{auth.data ? (<Button onClick={handleAuth} variant="secondary" class="w-full">diff --git a/apps/desktop/src/routes/(window-chrome)/settings/Setting.tsx b/apps/desktop/src/routes/(window-chrome)/settings/Setting.tsxindex 7c8c31c4b..c5149ee74 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/Setting.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/Setting.tsx@@ -7,13 +7,8 @@ export function Setting(props: {children: any;}) {return (- <div class="flex flex-row gap-2 justify-between items-start py-3 text-sm">- <div class="flex flex-col justify-between items-start space-y-2">- {props.pro && (- <span class="px-2 py-1 text-xs font-medium rounded-lg text-solid-white bg-blue-9">- Cap Pro- </span>- )}+ <div class="flex flex-row gap-2 justify-between items-center py-3 text-sm">+ <div class="flex flex-col justify-between items-start space-y-1"><div class="flex gap-2 items-center"><p class="text-gray-12">{props.label}</p></div>diff --git a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsxindex 31b5d4ccb..527ca51e2 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx@@ -47,8 +47,8 @@ export default function Page() {let fadeIn = changelog.isLoading;return (- <div class="h-full flex flex-col">- <div class="flex-1 overflow-y-auto relative">+ <div class="flex flex-col h-full">+ <div class="relative flex-1 custom-scroll"><Suspense fallback={<AbsoluteInsetLoader />}><divclass={cx(diff --git a/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx b/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsxindex 8574e8ab9..ca8129bc8 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx@@ -39,24 +39,27 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {return (<div class="flex flex-col w-full h-full"><div class="flex-1 custom-scroll">- <div class="p-4 space-y-2 divide-y divide-gray-200">- <div class="py-2 mb-4">- <h2 class="text-gray-12 text-lg font-medium">+ <div class="p-4 space-y-4">+ <div class="flex flex-col pb-4 border-b border-gray-2">+ <h2 class="text-lg font-medium text-gray-12">Experimental Features</h2>- <p class="text-gray-11 text-sm">+ <p class="text-sm text-gray-10">These features are still in development and may not work asexpected.</p></div>-- <ToggleSetting- label="Custom cursor capture in Studio Mode"- description="Studio Mode recordings will capture cursor state separately for customisation (size, smoothing) in the editor. Currently experimental as cursor events may not be captured accurately."- value={!!settings.customCursorCapture}- onChange={(value) => handleChange("customCursorCapture", value)}- />-+ <div class="space-y-3">+ <h3 class="text-sm text-gray-12 w-fit">Recording Features</h3>+ <div class="px-3 rounded-xl border divide-y divide-gray-3 border-gray-3 bg-gray-2">+ <ToggleSetting+ label="Custom cursor capture in Studio Mode"+ description="Studio Mode recordings will capture cursor state separately for customisation (size, smoothing) in the editor. Currently experimental as cursor events may not be captured accurately."+ value={!!settings.customCursorCapture}+ onChange={(value) => handleChange("customCursorCapture", value)}+ />+ </div>+ </div></div></div></div>diff --git a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsxindex 70d390088..b52fc9ae5 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx@@ -25,10 +25,10 @@ export default function FeedbackTab() {return (<div class="flex flex-col w-full h-full"><div class="flex-1 custom-scroll">- <div class="p-4 space-y-2">- <div class="py-2 mb-4">- <h2 class="text-gray-12 text-lg font-medium">Send Feedback</h2>- <p class="text-gray-11 text-sm">+ <div class="p-4 space-y-4">+ <div class="flex flex-col pb-4 border-b border-gray-2">+ <h2 class="text-lg font-medium text-gray-12">Send Feedback</h2>+ <p class="text-sm text-gray-10">Help us improve Cap by submitting feedback or reporting bugs.We'll get right on it.</p>@@ -48,7 +48,7 @@ export default function FeedbackTab() {placeholder="Tell us what you think about Cap..."requiredminLength={10}- class="p-2 w-full h-32 bg-gray-2 rounded-md border transition-shadow duration-200 resize-none placeholder:text-zinc-400 border-gray-6 text-primary focus:outline-none focus:ring-2 focus:ring-blue-9"+ class="p-2 w-full h-32 text-[13px] rounded-md border transition-colors duration-200 resize-none bg-gray-2 placeholder:text-gray-10 border-gray-3 text-primary focus:outline-none focus:ring-1 focus:ring-gray-8 hover:border-gray-6"/></div>@@ -64,8 +64,9 @@ export default function FeedbackTab() {<Buttontype="submit"+ size="md"disabled={!feedback().trim() || feedback().trim().length < 0}- class="mt-2 w-full bg-primary text-primary"+ class="mt-2 bg-primary text-primary">{submission.pending ? "Submitting..." : "Submit Feedback"}</Button>diff --git a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx b/apps/desktop/src/routes/(window-chrome)/settings/general.tsxindex 9fdba6534..53b01e04a 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx@@ -6,7 +6,7 @@ import {} from "@tauri-apps/plugin-notification";import { type, type OsType } from "@tauri-apps/plugin-os";import "@total-typescript/ts-reset/filter-boolean";-import { createResource, For, ParentProps, Show } from "solid-js";+import { createResource, For, Show } from "solid-js";import { createStore } from "solid-js/store";import { authStore, generalSettingsStore } from "~/store";@@ -24,9 +24,8 @@ import { cx } from "cva";import themePreviewAuto from "~/assets/theme-previews/auto.jpg";import themePreviewDark from "~/assets/theme-previews/dark.jpg";import themePreviewLight from "~/assets/theme-previews/light.jpg";-import { Toggle } from "~/components/Toggle";-import { TextInput } from "~/routes/editor/TextInput";import { Setting, ToggleSetting } from "./Setting";+import { Input } from "~/routes/editor/ui";export default function GeneralSettings() {const [store] = createResource(() => generalSettingsStore.get());@@ -50,50 +49,58 @@ function AppearanceSection(props: {return (<div class="flex flex-col gap-4">- <p class="text-[--text-primary]">Appearance</p>+ <div class="flex flex-col pb-4 border-b border-gray-2">+ <h2 class="text-lg font-medium text-gray-12">General</h2>+ <p class="text-sm text-gray-10">+ General settings of your Cap application.+ </p>+ </div><div- class="flex justify-start items-center text-[--text-primary]"+ class="flex justify-start items-center text-gray-12"onContextMenu={(e) => e.preventDefault()}>- <div class="flex justify-between m-1 min-w-[20rem] w-[22.2rem] flex-nowrap">- <For each={options}>- {(theme) => (- <button- type="button"- aria-checked={props.currentTheme === theme.id}- class="flex flex-col items-center rounded-md group focus:outline-none focus-visible:ring-gray-300 focus-visible:ring-offset-gray-50 focus-visible:ring-offset-2 focus-visible:ring-4"- onClick={() => props.onThemeChange(theme.id)}- >- <div- class={cx(- `w-24 h-[4.8rem] rounded-md overflow-hidden focus:outline-none ring-offset-gray-50 transition-all duration-200`,- {- "ring-2 ring-offset-2": props.currentTheme === theme.id,- "group-hover:ring-2 ring-offset-2 group-hover:ring-gray-5":- props.currentTheme !== theme.id,- }- )}- aria-label={`Select theme: ${theme.name}`}+ <div class="flex flex-col gap-3">+ <p class="text-sm text-gray-12">Appearance</p>+ <div class="flex justify-between m-1 min-w-[20rem] w-[22.2rem] flex-nowrap">+ <For each={options}>+ {(theme) => (+ <button+ type="button"+ aria-checked={props.currentTheme === theme.id}+ class="flex flex-col items-center rounded-md group focus:outline-none focus-visible:ring-gray-300 focus-visible:ring-offset-gray-50 focus-visible:ring-offset-2 focus-visible:ring-4"+ onClick={() => props.onThemeChange(theme.id)}>- <div class="flex justify-center items-center w-full h-full">- <img- draggable={false}- src={theme.preview}- alt={`Preview of ${theme.name} theme`}- />+ <div+ class={cx(+ `w-24 h-[4.8rem] rounded-md overflow-hidden focus:outline-none ring-offset-gray-50 transition-all duration-200`,+ {+ "ring-2 ring-gray-12 ring-offset-2": props.currentTheme === theme.id,+ "group-hover:ring-2 ring-offset-2 group-hover:ring-gray-5":+ props.currentTheme !== theme.id,+ }+ )}+ aria-label={`Select theme: ${theme.name}`}+ >+ <div class="flex justify-center items-center w-full h-full">+ <img+ draggable={false}+ src={theme.preview}+ alt={`Preview of ${theme.name} theme`}+ />+ </div></div>- </div>- <span- class={cx(`mt-2 text-sm transition-color duration-200`, {- "text-blue-9": props.currentTheme === theme.id,- "text-gray-11": props.currentTheme !== theme.id,- })}- >- {theme.name}- </span>- </button>- )}- </For>+ <span+ class={cx(`mt-2 text-sm transition-color duration-200`, {+ "text-gray-12": props.currentTheme === theme.id,+ "text-gray-10": props.currentTheme !== theme.id,+ })}+ >+ {theme.name}+ </span>+ </button>+ )}+ </For>+ </div></div></div></div>@@ -123,10 +130,164 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {const ostype: OsType = type();+ type ToggleSettingItem = {+ label: string;+ type: "toggle";+ description: string;+ value: boolean;+ onChange: (value: boolean) => void | Promise<void>;+ os?: "macos" | "windows" | "linux";+ };++ type SelectSettingItem = {+ label: string;+ type: "select";+ description: string;+ value: MainWindowRecordingStartBehaviour | PostStudioRecordingBehaviour;+ onChange: (value: MainWindowRecordingStartBehaviour | PostStudioRecordingBehaviour) => void | Promise<void>;+ };++ type SettingItem = ToggleSettingItem | SelectSettingItem;++ type SettingsGroup = {+ title: string;+ titleStyling?: string;+ items: SettingItem[];+ };++ // Static settings groups structure to preserve component identity+ const settingsGroups: SettingsGroup[] = [+ {+ title: "Cap Pro",+ titleStyling: "bg-blue-500 py-1.5 mb-4 text-white text-xs px-2 rounded-lg",+ items: [+ {+ label: "Disable automatic link opening",+ type: "toggle",+ description: "When enabled, Cap will not automatically open links in your browser (e.g. after creating a shareable link).",+ get value() { return !!settings.disableAutoOpenLinks; },+ onChange: (value: boolean) => handleChange("disableAutoOpenLinks", value),+ },+ ],+ },+ {+ title: "App",+ items: [+ {+ label: "Hide dock icon",+ type: "toggle",+ os: "macos",+ description: "The dock icon will be hidden when there are no windows available to close.",+ get value() { return !!settings.hideDockIcon; },+ onChange: (value: boolean) => handleChange("hideDockIcon", value),+ },+ {+ label: "Enable haptics",+ type: "toggle",+ os: "macos",+ description: "Use haptics on Force Touch™ trackpads",+ get value() { return !!settings.hapticsEnabled; },+ onChange: (value: boolean) => handleChange("hapticsEnabled", value),+ }+ ],+ },+ {+ title: "Recording",+ items: [+ {+ label: "Main window recording start behaviour",+ description: "The main window recording start behaviour",+ type: "select",+ get value() { return settings.mainWindowRecordingStartBehaviour ?? "close"; },+ onChange: (value: MainWindowRecordingStartBehaviour | PostStudioRecordingBehaviour) =>+ handleChange("mainWindowRecordingStartBehaviour", value as MainWindowRecordingStartBehaviour),+ },+ {+ label: "Studio recording finish behaviour",+ description: "The studio recording finish behaviour",+ type: "select",+ get value() { return settings.postStudioRecordingBehaviour ?? "openEditor"; },+ onChange: (value: MainWindowRecordingStartBehaviour | PostStudioRecordingBehaviour) =>+ handleChange("postStudioRecordingBehaviour", value as PostStudioRecordingBehaviour),+ },+ ],+ },+ {+ title: "Notifications",+ items: [+ {+ label: "Enable system notifications",+ type: "toggle",+ description: "Show system notifications for events like copying to clipboard, saving files, and more. You may need to manually allow Cap access via your system's notification settings.",+ get value() { return !!settings.enableNotifications; },+ onChange: async (value: boolean) => {+ if (value) {+ // Check current permission state+ console.log("Checking notification permission status");+ const permissionGranted = await isPermissionGranted();+ console.log(`Current permission status: ${permissionGranted}`);++ if (!permissionGranted) {+ // Request permission if not granted+ console.log("Permission not granted, requesting permission");+ const permission = await requestPermission();+ console.log(`Permission request result: ${permission}`);+ if (permission !== "granted") {+ // If permission denied, don't enable the setting+ console.log("Permission denied, aborting setting change");+ return;+ }+ }+ }+ handleChange("enableNotifications", value);+ },+ },+ ],+ }+ ];++ // Helper function to render select dropdown for recording behaviors+ const renderRecordingSelect = (+ label: string,+ description: string,+ value: MainWindowRecordingStartBehaviour | PostStudioRecordingBehaviour,+ onChange: (value: any) => void,+ options: { text: string; value: any }[]+ ) => {+ const getDisplayText = () => {+ const option = options.find(opt => opt.value === value);+ return option ? option.text : value;+ };++ return (+ <Setting label={label} description={description}>+ <button+ class="flex flex-row gap-1 text-xs bg-gray-3 items-center px-2.5 py-1.5 rounded-md border border-gray-4"+ onClick={async () => {+ const items = options.map(option =>+ CheckMenuItem.new({+ text: option.text,+ checked: value === option.value,+ action: () => onChange(option.value),+ })+ );+ const menu = await Menu.new({+ items: await Promise.all(items),+ });+ menu.popup();+ }}+ >+ {getDisplayText()}+ <IconCapChevronDown class="size-4" />+ </button>+ </Setting>+ );+ };+return (<div class="flex flex-col w-full h-full"><div class="flex-1 custom-scroll">- <div class="p-4 space-y-2 divide-y divide-gray-200">+ <div class="p-4 space-y-6"><AppearanceSectioncurrentTheme={settings.theme ?? "system"}onThemeChange={(newTheme) => {@@ -134,128 +295,62 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {generalSettingsStore.set({ theme: newTheme });}}/>- <ToggleSetting- pro- label="Disable automatic link opening"- description="When enabled, Cap will not automatically open links in your browser (e.g. after creating a shareable link)."- value={!!settings.disableAutoOpenLinks}- onChange={(value) => handleChange("disableAutoOpenLinks", value)}- />- {ostype === "macos" && (- <>- <ToggleSetting- label="Hide dock icon"- description="The dock icon will be hidden when there are no windows available to close."- value={!!settings.hideDockIcon}- onChange={(value) => handleChange("hideDockIcon", value)}- />- <ToggleSetting- label="Enable haptics"- description="Use haptics on Force Touch™ trackpads"- value={!!settings.hapticsEnabled}- onChange={(value) => handleChange("hapticsEnabled", value)}- />- </>- )}- <ToggleSetting- label="Enable system notifications"- description="Show system notifications for events like copying to clipboard, saving files, and more. You may need to manually allow Cap access via your system's notification settings."- value={!!settings.enableNotifications}- onChange={async (value) => {- if (value) {- // Check current permission state- console.log("Checking notification permission status");- const permissionGranted = await isPermissionGranted();- console.log(`Current permission status: ${permissionGranted}`);+ <For each={settingsGroups}>+ {(group) => (+ <div>+ <h3 class={cx("mb-3 text-sm text-gray-12 w-fit", group.titleStyling)}>{group.title}</h3>+ <div class="px-3 rounded-xl border divide-y divide-gray-3 border-gray-3 bg-gray-2">+ <For each={group.items}>+ {(item) => {+ // Check OS compatibility+ if (item.type === "toggle" && item.os && item.os !== ostype) {+ return null;+ }- if (!permissionGranted) {- // Request permission if not granted- console.log("Permission not granted, requesting permission");- const permission = await requestPermission();- console.log(`Permission request result: ${permission}`);- if (permission !== "granted") {- // If permission denied, don't enable the setting- console.log("Permission denied, aborting setting change");- return;- }- }- }+ if (item.type === "toggle") {+ return (+ <ToggleSetting+ pro={group.title === "Cap Pro"}+ label={item.label}+ description={item.description}+ value={item.value}+ onChange={item.onChange}+ />+ );+ } else if (item.type === "select") {+ if (item.label === "Main window recording start behaviour") {+ return renderRecordingSelect(+ item.label,+ item.description,+ item.value,+ item.onChange,+ [+ { text: "Close", value: "close" },+ { text: "Minimise", value: "minimise" },+ ]+ );+ } else if (item.label === "Studio recording finish behaviour") {+ return renderRecordingSelect(+ item.label,+ item.description,+ item.value,+ item.onChange,+ [+ { text: "Open editor", value: "openEditor" },+ { text: "Show in overlay", value: "showOverlay" },+ ]+ );+ }+ }+ return null;+ }}+ </For>+ </div>+ </div>+ )}+ </For>- handleChange("enableNotifications", value);- }}- />- {/* <ToggleSetting- label="Enable window transparency"- description="Make the background of some windows (eg. the Editor) transparent."- value={!!settings.windowTransparency}- onChange={(value) => handleChange("windowTransparency", value)}- /> */}- <Setting- label="Studio recording finish behaviour"- description="What should happen when a studio recording finishes"- >- <button- class="flex flex-row gap-1 items-center px-2 py-1 rounded-md border border-gray-300"- onClick={async () => {- const item = (- text: string,- value: PostStudioRecordingBehaviour- ) =>- CheckMenuItem.new({- text,- checked: settings.postStudioRecordingBehaviour === value,- action: () =>- handleChange("postStudioRecordingBehaviour", value),- });- const menu = await Menu.new({- items: await Promise.all([- item("Open editor", "openEditor"),- item("Show in overlay", "showOverlay"),- ]),- });- menu.popup();- }}- >- {settings.postStudioRecordingBehaviour === "showOverlay"- ? "Show in overlay"- : "Open editor"}- <IconCapChevronDown class="size-4" />- </button>- </Setting>- <Setting- label="Main window recording start behaviour"- description="What should the main window do when starting a recording"- >- <button- class="flex flex-row gap-1 items-center px-2 py-1 rounded-md border border-gray-300"- onClick={async () => {- const item = (- text: string,- value: MainWindowRecordingStartBehaviour- ) =>- CheckMenuItem.new({- text,- checked:- settings.mainWindowRecordingStartBehaviour === value,- action: () =>- handleChange("mainWindowRecordingStartBehaviour", value),- });- const menu = await Menu.new({- items: await Promise.all([- item("Close", "close"),- item("Minimise", "minimise"),- ]),- });- menu.popup();- }}- >- {settings.mainWindowRecordingStartBehaviour === "close"- ? "Close"- : "Minimise"}- <IconCapChevronDown class="size-4" />- </button>- </Setting><ServerURLSettingvalue={settings.serverUrl ?? "https://cap.so"}onChange={async (v) => {@@ -287,24 +382,30 @@ function ServerURLSetting(props: {const [value, setValue] = createWritableMemo(() => props.value);return (- <Setting- label="Cap Server URL"- description="This setting should only be changed if you are self hosting your own instance of Cap Web."- >- <div class="flex flex-col gap-2 items-end">- <TextInput- class="flex flex-row gap-1 items-center px-2 py-1 rounded-md border outline-none border-gray-7 bg-gray-1 focus:border-blue-10 max-w-48"- value={value()}- onInput={(e) => setValue(e.currentTarget.value)}- />- <Button- size="sm"- disabled={props.value === value()}- onClick={() => props.onChange(value())}+ <div class="flex flex-col gap-3">+ <h3 class="text-sm text-gray-12 w-fit">Self host</h3>+ <div class="flex flex-col gap-2 px-4 rounded-xl border border-gray-3 bg-gray-2">+ <Setting+ label="Cap Server URL"+ description="This setting should only be changed if you are self hosting your own instance of Cap Web.">- Update- </Button>+ <div class="flex flex-col gap-2 items-end">+ <Input+ class="bg-gray-3"+ value={value()}+ onInput={(e) => setValue(e.currentTarget.value)}+ />+ <Button+ size="sm"+ class="mt-2"+ disabled={props.value === value()}+ onClick={() => props.onChange(value())}+ >+ Update+ </Button>+ </div>+ </Setting></div>- </Setting>+ </div>);}diff --git a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsxindex f8f24a797..b10e72ff7 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx@@ -1,6 +1,6 @@-import { Button } from "@cap/ui-solid";import { createEventListener } from "@solid-primitives/event-listener";import {+ For,Index,Match,Show,@@ -71,20 +71,24 @@ function Inner(props: { initialStore: HotkeysStore | null }) {}});+ const actions = [+ "startRecording",+ "stopRecording",+ "restartRecording",+ // "takeScreenshot",+ ] as Array<HotkeyAction>;+return (- <div class="flex flex-col w-full h-full divide-y divide-gray-200">- <ul class="flex-1 p-[0.625rem] flex flex-col gap-[0.5rem] w-full">- <Index- each={- [- "startRecording",- "stopRecording",- "restartRecording",- // "takeScreenshot",- ] as Array<HotkeyAction>- }- >- {(item) => {+ <div class="flex flex-col p-4 w-full h-fit">+ <div class="flex flex-col pb-4 border-b border-gray-2">+ <h2 class="text-lg font-medium text-gray-12">Hotkeys</h2>+ <p class="text-sm text-gray-10">+ Configure keyboard shortcuts for common actions.+ </p>+ </div>+ <div class="flex flex-col flex-1 gap-3 p-4 mt-4 w-full rounded-xl border bg-gray-2 border-gray-3">+ <Index each={actions}>+ {(item, idx) => {createEventListener(window, "click", () => {if (listening()?.action !== item()) return;@@ -95,18 +99,21 @@ function Inner(props: { initialStore: HotkeysStore | null }) {});return (- <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="flex flex-row justify-between items-center w-full h-8">+ <p class="text-sm text-gray-12">{ACTION_TEXT[item()]}</p><Switch><Match when={listening()?.action === item()}>- <div class="border border-[--gray-300] 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">+ <div class="flex flex-row-reverse gap-2 justify-between items-center h-full text-sm rounded-lg w-fit">+ <Show when={hotkeys[item()]} fallback={(+ <p class="text-[13px] text-gray-11">Set hotkeys...</p>+ )}>{(binding) => <HotkeyText binding={binding()} />}</Show>- <div class="flex flex-row items-center gap-[0.125rem] text-[--text-tertiary]">+ <div class="flex flex-row items-center gap-[0.125rem]"><Show when={hotkeys[item()]}><button+ class="w-fit"type="button"onBlur={(e) => console.log(e)}onClick={(e) => {@@ -119,7 +126,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {);}}>- <IconCapCircleCheck class="size-[1.25rem] text-[--blue-400]" />+ <IconCapCircleCheck class="transition-colors text-gray-12 hover:text-gray-10 size-5" /></button></Show><button@@ -134,7 +141,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {});}}>- <IconCapCircleX class="size-[1.25rem] text-[--gray-400]" />+ <IconCapCircleX class="text-red-500 transition-colors hover:text-red-700 size-5" /></button></div></div>@@ -142,7 +149,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {<Match when={listening()?.action !== item()}><buttontype="button"- class="border border-[--gray-200] rounded-lg text-[--text-tertiary] w-full h-full"+ class="text-sm bg-transparent rounded-lg"onClick={() => {// ensures that previously selected hotkey is cleared by letting the event propagate before listening to the new hotkeysetTimeout(() => {@@ -153,39 +160,52 @@ function Inner(props: { initialStore: HotkeysStore | null }) {}, 1);}}>- <Show when={hotkeys[item()]} fallback="None">+ <Show when={hotkeys[item()]} fallback={(+ <p class="flex items-center text-[11px] uppercase transition-colors hover:bg-gray-6 hover:border-gray-7+ cursor-pointer py-3 px-2.5 h-5 bg-gray-4 border border-gray-5 rounded-lg text-gray-11 hover:text-gray-12">None</p>+ )}>{(binding) => <HotkeyText binding={binding()} />}</Show></button></Match></Switch></div>- </li>+ {idx !== actions.length - 1 && <div class="w-full h-px bg-gray-3" />}+ </>);}}</Index>- </ul>- <div class="flex flex-row-reverse p-[1rem] text-[--text-primary]">- <Button disabled variant="secondary">- Restore Defaults- </Button></div></div>);}function HotkeyText(props: { binding: Hotkey }) {+ const keys = [];++ // Add modifier keys+ if (props.binding.meta) keys.push("⌘");+ if (props.binding.ctrl) keys.push("⌃");+ if (props.binding.alt) keys.push("⌥");+ if (props.binding.shift) keys.push("⇧");++ // Add the main key+ const mainKey = props.binding.code.startsWith("Key")+ ? props.binding.code[3]+ : props.binding.code;+ keys.push(mainKey);+return (- <span class="space-x-0.5 text-[--text-tertiary]">- {props.binding.meta && <span>⌘</span>}- {props.binding.ctrl && <span>⌃</span>}- {props.binding.alt && <span>⌥</span>}- {props.binding.shift && <span>⇧</span>}- <span>- {props.binding.code.startsWith("Key")- ? props.binding.code[3]- : props.binding.code}- </span>- </span>+ <div class="flex gap-1 items-center w-fit group">+ <For each={keys}>+ {(key) => (+ <kbd+ class="inline-flex justify-center w-fit text-xs items-center p-2 text-[13px] font-medium rounded border size-6 text-gray-11 bg-gray-5 border-gray-6 group-hover:border-gray-8 transition-colors duration-200 group-hover:bg-gray-7"+ >+ {key}+ </kbd>+ )}+ </For>+ </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 cc71c02ea..690cd84b3 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,6 @@import { Button } from "@cap/ui-solid";import { useNavigate } from "@solidjs/router";-import { For, createResource, onMount } from "solid-js";+import { For, onMount } from "solid-js";import "@total-typescript/ts-reset/filter-boolean";import { commands } from "~/utils/tauri";@@ -20,7 +20,7 @@ export default function AppsTab() {{name: "S3 Config",description:- "Connect your own S3 bucket. All new shareable link uploads will be uploaded here. Maintain complete ownership over your data.",+ "Connect your own S3 bucket for complete control over your data storage. All new shareable link uploads will be automatically uploaded to your configured S3 bucket, ensuring you maintain complete ownership and control over your content. Perfect for organizations requiring data sovereignty and custom storage policies.",icon: IconLucideDatabase,url: "/settings/integrations/s3-config",pro: true,@@ -40,31 +40,35 @@ export default function AppsTab() {};return (- <div class="p-4">+ <div class="p-4 space-y-4">+ <div class="flex flex-col pb-4 border-b border-gray-2">+ <h2 class="text-lg font-medium text-gray-12">+ Integrations+ </h2>+ <p class="text-sm text-gray-10">+ Configure integrations to extend Cap's functionality and connect with+ third-party services.+ </p>+ </div><For each={apps}>{(app) => (- <div class="p-1.5 bg-gray-2 rounded-lg border border-gray-3">- <div class="flex justify-between items-center pb-2 border-b border-gray-3">- <div class="flex gap-3 items-center">- <div class="p-2 bg-gray-2 rounded-lg">- <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-primary">- {app.name}- </span>- </div>+ <div class="px-4 py-2 rounded-lg border bg-gray-2 border-gray-3">+ <div class="flex justify-between items-center pb-2 mb-3 border-b border-gray-3">+ <div class="flex gap-2 items-center">+ <app.icon class="w-4 h-4 text-gray-12" />+ <p class="text-sm font-medium text-gray-12">+ {app.name}+ </p></div><Button- variant={app.pro && !isPro() ? "primary" : "secondary"}+ size="sm"+ variant="primary"onClick={() => handleAppClick(app)}>{app.pro && !isPro() ? "Upgrade to Pro" : "Configure"}</Button></div>- <div class="p-2">- <p class="text-xs text-[--text-tertiary]">{app.description}</p>- </div>+ <p class="text-[13px] text-gray-11">{app.description}</p></div>)}</For>diff --git a/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx b/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsxindex 040ab9e53..4be379529 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx@@ -6,7 +6,7 @@ import { createEventBus } from "@solid-primitives/event-bus";import { commands } from "~/utils/tauri";import { apiClient, protectedHeaders } from "~/utils/web-api";-import { message } from "@tauri-apps/plugin-dialog";+import { Input } from "~/routes/editor/ui";interface S3Config {provider: string;@@ -116,130 +116,132 @@ export default function S3ConfigPage() {const events = createEventBus<"save" | "test">();return (- <div class="flex flex-col h-full">- <div class="overflow-y-auto flex-1 p-4">- <Suspense- fallback={- <div class="flex w-full h-full justify-center items-center">- <IconCapLogo class="size-16 animate-spin" />- </div>- }- >- {(() => {- const [s3Config, setS3Config] = createWritableMemo(- () => _s3Config.latest ?? DEFAULT_CONFIG- );-- const renderInput = (- label: string,- key: keyof ReturnType<typeof s3Config>,- placeholder: string,- type: "text" | "password" = "text"- ) => (- <div>- <label class="text-sm text-gray-12">{label}</label>- <input- type={type}- value={s3Config()[key] ?? ""}- onInput={(- e: InputEvent & { currentTarget: HTMLInputElement }- ) =>- setS3Config({ ...s3Config(), [key]: e.currentTarget.value })- }- placeholder={placeholder}- class="px-3 py-2 w-full rounded-lg bg-gray-1 border border-gray-3 focus:outline-none focus:ring-2 focus:ring-blue-500"- autocomplete="off"- autocapitalize="off"- autocorrect="off"- spellcheck={false}- />+ <div class="flex flex-col p-4 h-full">+ <div class="rounded-xl border bg-gray-2 border-gray-4 custom-scroll">+ <div class="flex-1">+ <Suspense+ fallback={+ <div class="flex justify-center items-center w-full h-full">+ <IconCapLogo class="animate-spin size-16" /></div>- );-- events.listen((v) => {- if (v === "save") saveConfig.mutate(s3Config());- else if (v === "test") testConfig.mutate(s3Config());- });+ }+ >+ {(() => {+ const [s3Config, setS3Config] = createWritableMemo(+ () => _s3Config.latest ?? DEFAULT_CONFIG+ );- return (- <div class="space-y-4 animate-in fade-in">- <div>- <p class="text-sm text-gray-11">- It should take under 10 minutes to set up and connect your- storage bucket to Cap. View the{" "}- <a- href="https://cap.so/docs/s3-config"- target="_blank"- class="font-semibold text-gray-12 underline"- >- Storage Config Guide- </a>{" "}- to get started.- </p>+ const renderInput = (+ label: string,+ key: keyof ReturnType<typeof s3Config>,+ placeholder: string,+ type: "text" | "password" = "text"+ ) => (+ <div class="space-y-2">+ <label class="text-[13px] text-gray-12">{label}</label>+ <Input+ class="!bg-gray-3"+ type={type}+ value={s3Config()[key] ?? ""}+ onInput={(+ e: InputEvent & { currentTarget: HTMLInputElement }+ ) =>+ setS3Config({ ...s3Config(), [key]: e.currentTarget.value })+ }+ placeholder={placeholder}+ autocomplete="off"+ autocapitalize="off"+ autocorrect="off"+ spellcheck={false}+ /></div>+ );- <div>- <label class="text-sm text-gray-12">Storage Provider</label>- <div class="relative">- <select- value={s3Config().provider}- onChange={(e) =>- setS3Config((c) => ({- ...c,- provider: e.currentTarget.value,- }))- }- class="px-3 py-2 pr-10 w-full bg-gray-1 rounded-lg border border-gray-3 appearance-none focus:outline-none focus:ring-2 focus:ring-blue-500"- >- <option value="aws">AWS S3</option>- <option value="cloudflare">Cloudflare R2</option>- <option value="supabase">Supabase</option>- <option value="minio">MinIO</option>- <option value="other">Other S3-Compatible</option>- </select>- <div class="flex absolute inset-y-0 right-0 items-center px-2 pointer-events-none">- <svg- class="w-4 h-4 text-gray-11"- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 20 20"- fill="currentColor"+ events.listen((v) => {+ if (v === "save") saveConfig.mutate(s3Config());+ else if (v === "test") testConfig.mutate(s3Config());+ });++ return (+ <div class="p-4 space-y-4 animate-in fade-in">+ <div class="pb-4 border-b border-gray-3">+ <p class="text-sm text-gray-11">+ It should take under 10 minutes to set up and connect your+ storage bucket to Cap. View the{" "}+ <a+ href="https://cap.so/docs/s3-config"+ target="_blank"+ class="underline text-gray-12">- <path- fill-rule="evenodd"- d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"- clip-rule="evenodd"- />- </svg>+ Storage Config Guide+ </a>{" "}+ to get started.+ </p>+ </div>++ <div class="space-y-2">+ <label class="text-[13px] text-gray-12">Storage Provider</label>+ <div class="relative">+ <select+ value={s3Config().provider}+ onChange={(e) =>+ setS3Config((c) => ({+ ...c,+ provider: e.currentTarget.value,+ }))+ }+ class="px-3 py-2 pr-10 w-full rounded-lg border transition-colors duration-200 appearance-none bg-gray-3 border-gray-4 focus:outline-none focus:ring-2 focus:ring-blue-500"+ >+ <option value="aws">AWS S3</option>+ <option value="cloudflare">Cloudflare R2</option>+ <option value="supabase">Supabase</option>+ <option value="minio">MinIO</option>+ <option value="other">Other S3-Compatible</option>+ </select>+ <div class="flex absolute inset-y-0 right-0 items-center px-2 pointer-events-none">+ <svg+ class="w-4 h-4 text-gray-11"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20"+ fill="currentColor"+ >+ <path+ fill-rule="evenodd"+ d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"+ clip-rule="evenodd"+ />+ </svg>+ </div></div></div>- </div>- {renderInput(- "Access Key ID",- "accessKeyId",- "PL31OADSQNK",- "password"- )}- {renderInput(- "Secret Access Key",- "secretAccessKey",- "PL31OADSQNK",- "password"- )}- {renderInput(- "Endpoint",- "endpoint",- "https://s3.amazonaws.com"- )}- {renderInput("Bucket Name", "bucketName", "my-bucket")}- {renderInput("Region", "region", "us-east-1")}- </div>- );- })()}- </Suspense>- </div>+ {renderInput(+ "Access Key ID",+ "accessKeyId",+ "PL31OADSQNK",+ "password"+ )}+ {renderInput(+ "Secret Access Key",+ "secretAccessKey",+ "PL31OADSQNK",+ "password"+ )}+ {renderInput(+ "Endpoint",+ "endpoint",+ "https://s3.amazonaws.com"+ )}+ {renderInput("Bucket Name", "bucketName", "my-bucket")}+ {renderInput("Region", "region", "us-east-1")}+ </div>+ );+ })()}+ </Suspense>+ </div >- <div class="flex-shrink-0 p-4 border-t">+ </div >+ <div class="flex-shrink-0 mt-5"><fieldsetclass="flex justify-between items-center"disabled={@@ -262,11 +264,11 @@ export default function S3ConfigPage() {{testConfig.isPending ? "Testing..." : "Test Connection"}</Button></div>- <Button variant="primary" onClick={() => events.emit("save")}>+ <Button class="min-w-[72px]" variant="primary" onClick={() => events.emit("save")}>{saveConfig.isPending ? "Saving..." : "Save"}</Button></fieldset></div>- </div>+ </div >);}diff --git a/apps/desktop/src/routes/(window-chrome)/settings/license.tsx b/apps/desktop/src/routes/(window-chrome)/settings/license.tsxindex af346be38..becd25d56 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/license.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/license.tsx@@ -1,9 +1,7 @@import { createRive } from "@aerofoil/rive-solid-canvas";import { Button } from "@cap/ui-solid";import { licenseContract } from "@cap/web-api-contract";-import { useNavigate } from "@solidjs/router";import { createMutation, useQueryClient } from "@tanstack/solid-query";-import * as tauriShell from "@tauri-apps/plugin-shell";import { ClientInferResponseBody } from "@ts-rest/core";import {createResource,@@ -22,40 +20,22 @@ import { Input } from "../../editor/ui";export default function Page() {const license = createLicenseQuery();- const navigate = useNavigate();const queryClient = useQueryClient();return (- <div class="flex overflow-y-auto gap-3 relative flex-col items-center p-4 mx-auto w-full h-full custom-scroll">- <div class="text-left w-full py-2">- <h2 class="text-gray-12 text-lg font-medium">Commercial License</h2>- <p class="text-gray-11 text-sm">- Permits using Cap for commercial purposes, but without paying for- cloud features.- <Show when={license.data?.type !== "pro"}>- <br />- Need cloud features?{" "}- <button- class="underline cursor-pointer"- onClick={() => commands.showWindow("Upgrade")}- >- Upgrade to Cap Pro.- </button>- </Show>- </p>- </div>+ <div class="flex overflow-y-auto relative flex-col gap-3 items-center p-4 mx-auto w-full h-full custom-scroll"><Switch fallback={<CommercialLicensePurchase />}><Match when={license.data?.type === "pro" && license.data}>- <div class="p-6 mx-auto mt-6 w-full max-w-md text-white bg-gray-2 rounded-3xl border border-gray-4">- <div class="space-y-4 text-center">- <div class="flex flex-col gap-2 items-center mb-4">+ <div class="flex justify-center items-center w-full h-screen">+ <div class="flex flex-col items-center p-6 mx-auto space-y-3 w-full max-w-md text-white rounded-3xl border bg-gray-2 border-gray-3">+ <div class="flex flex-col gap-2 items-center"><h3 class="text-2xl font-medium text-gray-12">Cap Pro License</h3></div>- <p class="text-gray-11">+ <p class="text-center text-gray-11">Your account is upgraded to{" "}- <span class="font-semibold text-blue-400">Cap Pro</span> and+ <span class="font-semibold text-blue-500">Cap Pro</span> andalready includes a commercial license.</p></div>@@ -67,7 +47,7 @@ export default function Page() {<div class="space-y-6"><div class="flex flex-col gap-2 items-center mb-4 text-center"><span class="text-2xl text-green-400 fa fa-briefcase" />- <h3 class="text-2xl text-gray-12 font-medium">+ <h3 class="text-2xl font-medium text-gray-12">Commercial License</h3></div>@@ -155,7 +135,7 @@ function LicenseKeyActivate(props: {}));return (- <div class="p-6 mx-auto w-full text-gray-12 rounded-xl border bg-gray-2 border-gray-3">+ <div class="p-6 mx-auto w-full rounded-xl border text-gray-12 bg-gray-2 border-gray-3"><div class="space-y-3"><h3 class="mb-2 text-xl text-center">Have a license key?</h3><Inputdiff --git a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsxindex 1c46c4134..3c920d684 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx@@ -110,7 +110,13 @@ export default function Recordings() {};return (- <div class="flex relative flex-col w-full h-full">+ <div class="flex relative flex-col p-4 space-y-4 w-full h-full">+ <div class="flex flex-col">+ <h2 class="text-lg font-medium text-gray-12">Previous Recordings</h2>+ <p class="text-sm text-gray-10">+ Manage your recordings and perform actions.+ </p>+ </div><Showwhen={recordings.data && recordings.data.length > 0}fallback={@@ -119,28 +125,27 @@ export default function Recordings() {</p>}>- <div class="p-4 border-b border-dashed border-gray-5">- <div class="flex gap-3 items-center w-fit">- <For each={Tabs}>- {(tab) => (- <div- class={cx(- "flex gap-1.5 items-center transition-colors duration-200 p-2 px-3 border rounded-full",- activeTab() === tab.id- ? "bg-gray-5 cursor-default border-gray-5"- : "bg-transparent cursor-pointer hover:bg-gray-3 border-gray-5"- )}- onClick={() => setActiveTab(tab.id)}- >- {tab.icon && tab.icon}- <p class="text-xs text-gray-12">{tab.label}</p>- </div>- )}- </For>- </div>+ <div class="flex gap-3 items-center pb-4 w-full border-b border-gray-2">+ <For each={Tabs}>+ {(tab) => (+ <div+ class={cx(+ "flex gap-1.5 items-center transition-colors duration-200 p-2 px-3 border rounded-full",+ activeTab() === tab.id+ ? "bg-gray-5 cursor-default border-gray-5"+ : "bg-transparent cursor-pointer hover:bg-gray-3 border-gray-5"+ )}+ onClick={() => setActiveTab(tab.id)}+ >+ {tab.icon && tab.icon}+ <p class="text-xs text-gray-12">{tab.label}</p>+ </div>+ )}+ </For></div>- <div class="flex flex-col flex-1 custom-scroll">- <ul class="p-4 flex flex-col gap-[0.5rem] w-full text-[--text-primary]">++ <div class="flex flex-col flex-1 mt-4 rounded-xl border custom-scroll bg-gray-2 border-gray-3">+ <ul class="p-4 flex flex-col gap-5 w-full text-[--text-primary]"><For each={filteredRecordings()}>{(recording) => (<RecordingItem@@ -176,7 +181,7 @@ function RecordingItem(props: {const queryClient = useQueryClient();return (- <li class="flex flex-row justify-between items-center px-4 py-3 w-full rounded-xl transition-colors duration-200 hover:bg-gray-2">+ <li class="flex flex-row justify-between [&:not(:last-child)]:border-b [&:not(:last-child)]:pb-5 [&:not(:last-child)]:border-gray-3 items-center w-full transition-colors duration-200 hover:bg-gray-2"><div class="flex gap-5 items-center"><Showwhen={imageExists()}diff --git a/apps/desktop/src/routes/editor/ui.tsx b/apps/desktop/src/routes/editor/ui.tsxindex e2fdc31d1..6c22304c8 100644--- a/apps/desktop/src/routes/editor/ui.tsx+++ b/apps/desktop/src/routes/editor/ui.tsx@@ -123,8 +123,8 @@ export function Slider(? typeof props.formatTooltip === "string"? `${props.value[0].toFixed(1)}${props.formatTooltip}`: props.formatTooltip- ? props.formatTooltip(props.value[0])- : props.value[0].toFixed(1)+ ? props.formatTooltip(props.value[0])+ : props.value[0].toFixed(1): undefined}>@@ -311,7 +311,7 @@ export function MenuItemList<T extends ValidComponent = "div">(const editorButtonStyles = cva(["group flex flex-row items-center px-[0.375rem] gap-[0.375rem] h-[2rem] rounded-[0.5rem] text-[0.875rem]",- "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 transition-colors duration-100",+ "focus:outline focus:outline-2 focus:outline-offset-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 transition-colors duration-100","disabled:opacity-50 disabled:text-gray-11",],{diff --git a/packages/ui-solid/src/Button.tsx b/packages/ui-solid/src/Button.tsxindex 22215f503..80954fe22 100644--- a/packages/ui-solid/src/Button.tsx+++ b/packages/ui-solid/src/Button.tsx@@ -2,7 +2,7 @@ import { cva, type VariantProps } from "cva";import type { ComponentProps } from "solid-js";const styles = cva(- "rounded-xl outline-offset-2 outline-2 focus-visible:outline transition-all will-change-transform duration-200",+ "outline-offset-2 outline-2 focus-visible:outline rounded-full transition-all will-change-transform duration-200",{defaultVariants: {variant: "primary",@@ -11,21 +11,21 @@ const styles = cva(variants: {variant: {primary:- "bg-blue-9 text-gray-1 dark:text-gray-12 enabled:hover:opacity-80 disabled:text-gray-10 outline-blue-300 disabled:bg-gray-4 disabled:dark:text-gray-9",+ "bg-gray-12 text-gray-1 hover:bg-gray-11 disabled:text-gray-10 outline-blue-300 disabled:bg-gray-4 disabled:dark:text-gray-9",secondary:- "bg-gray-4 enabled:hover:opacity-80 text-gray-500 disabled:bg-gray-3 disabled:text-gray-10 outline-blue-300",+ "bg-gray-4 enabled:hover:bg-gray-5 text-gray-500 disabled:bg-gray-3 disabled:text-gray-10 outline-blue-300",destructive:"bg-red-300 text-gray-50 dark:text-gray-12 dark:disabled:text-gray-10 enabled:hover:bg-red-400 disabled:bg-red-200 outline-red-300",white:- "bg-gray-1 dark:bg-gray-12 enabled:hover:opacity-80 text-gray-500 dark:disabled:bg-gray-300 dark:disabled:text-gray-8 dark:text-gray-1 disabled:bg-gray-400 disabled:text-gray-8 outline-blue-300",+ "bg-gray-1 dark:bg-gray-12 enabled:hover:bg-gray-5 text-gray-500 dark:disabled:bg-gray-300 dark:disabled:text-gray-8 dark:text-gray-1 disabled:bg-gray-400 disabled:text-gray-8 outline-blue-300",lightdark:- "bg-gray-500 enabled:hover:opacity-80 text-gray-100 dark:disabled:bg-gray-300 dark:disabled:text-gray-8 dark:text-gray-1 disabled:bg-gray-400 disabled:text-gray-8 outline-blue-300",+ "bg-gray-12 hover:bg-gray-11 text-gray-1 dark:disabled:bg-gray-300 dark:disabled:text-gray-8 disabled:bg-gray-400 disabled:text-gray-8",},size: {- xs: "font-[400] text-[0.75rem] px-[0.5rem] h-[1.25rem] ",- sm: "font-[400] text-[0.875rem] px-[0.75rem] h-[1.75rem]",- md: "font-[400] text-sm px-4 py-2.5",- lg: "font-[400] text-[0.875rem] px-[1rem] h-[2.25rem]",+ xs: "text-[0.75rem] px-[0.5rem] h-[1.25rem]",+ sm: "text-xs px-[0.75rem] h-[1.75rem]",+ md: "text-[13px] px-3 py-2",+ lg: "text-[0.875rem] px-[1rem] h-[2.25rem]",},},}