Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat: remove cursor coming soon in editor if window.FLAGS.recordMouse === false
Richie McIlroy758b81bbba13
diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsxindex 86cbe622a..3f1310746 100644--- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx+++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx@@ -541,7 +541,7 @@ export function ConfigSidebar() {</Field></KTabs.Content><KTabs.Content value="cursor" class="flex flex-col gap-6">- {window.FLAGS.recordMouse ? (+ {window.FLAGS.recordMouse === false ? (<><Field name="Cursor" icon={<IconCapCursor />}><Subfield name="Hide cursor when not moving">@@ -551,70 +551,63 @@ export function ConfigSidebar() {/></Subfield></Field>- <ComingSoonTooltip>- <Field name="Size" icon={<IconCapEnlarge />}>- <Slider- value={[project.cursor.size]}- onChange={(v) => setProject("cursor", "size", v[0])}- minValue={20}- maxValue={300}- step={1}- disabled- />- </Field>- </ComingSoonTooltip>+ <Field name="Size" icon={<IconCapEnlarge />}>+ <Slider+ value={[project.cursor.size]}+ onChange={(v) => setProject("cursor", "size", v[0])}+ minValue={20}+ maxValue={300}+ step={1}+ disabled={window.FLAGS.recordMouse}+ />+ </Field>{window.FLAGS.zoom && (- <ComingSoonTooltip>- <Field name="Animation Style" icon={<IconLucideRabbit />}>- <RadioGroup- defaultValue="regular"- value={project.cursor.animationStyle}- onChange={(value) => {- console.log("Changing animation style to:", value);- setProject(- "cursor",- "animationStyle",- value as CursorAnimationStyle- );- }}- class="flex flex-col gap-2"- disabled- >- {(- Object.entries(CURSOR_ANIMATION_STYLES) as [- CursorAnimationStyle,- string- ][]- ).map(([value, label]) => (- <RadioGroup.Item- value={value}- class="flex items-center"+ <Field name="Animation Style" icon={<IconLucideRabbit />}>+ <RadioGroup+ defaultValue="regular"+ value={project.cursor.animationStyle}+ onChange={(value) => {+ console.log("Changing animation style to:", value);+ setProject(+ "cursor",+ "animationStyle",+ value as CursorAnimationStyle+ );+ }}+ class="flex flex-col gap-2"+ disabled+ >+ {(+ Object.entries(CURSOR_ANIMATION_STYLES) as [+ CursorAnimationStyle,+ string+ ][]+ ).map(([value, label]) => (+ <RadioGroup.Item value={value} class="flex items-center">+ <RadioGroup.ItemInput class="peer sr-only" />+ <RadioGroup.ItemControl+ class={cx(+ "w-4 h-4 rounded-full border border-gray-300 mr-2",+ "relative after:absolute after:inset-0 after:m-auto after:block after:w-2 after:h-2 after:rounded-full",+ "after:transition-colors after:duration-200",+ "peer-checked:border-blue-500 peer-checked:after:bg-blue-400",+ "peer-focus-visible:ring-2 peer-focus-visible:ring-blue-400/50",+ "peer-disabled:opacity-50"+ )}+ />+ <span+ class={cx(+ "text-gray-500",+ "peer-checked:text-gray-900",+ "peer-disabled:opacity-50"+ )}>- <RadioGroup.ItemInput class="peer sr-only" />- <RadioGroup.ItemControl- class={cx(- "w-4 h-4 rounded-full border border-gray-300 mr-2",- "relative after:absolute after:inset-0 after:m-auto after:block after:w-2 after:h-2 after:rounded-full",- "after:transition-colors after:duration-200",- "peer-checked:border-blue-500 peer-checked:after:bg-blue-400",- "peer-focus-visible:ring-2 peer-focus-visible:ring-blue-400/50",- "peer-disabled:opacity-50"- )}- />- <span- class={cx(- "text-gray-500",- "peer-checked:text-gray-900",- "peer-disabled:opacity-50"- )}- >- {label}- </span>- </RadioGroup.Item>- ))}- </RadioGroup>- </Field>- </ComingSoonTooltip>+ {label}+ </span>+ </RadioGroup.Item>+ ))}+ </RadioGroup>+ </Field>)}</>) : (