Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Update mask defaults and arrow head sizing

Richie McIlroyf3a79ae4ec6b
diff --git a/apps/desktop/src-tauri/src/screenshot_editor.rs b/apps/desktop/src-tauri/src/screenshot_editor.rs
index 8ffcd06dd..1a56e9849 100644
--- a/apps/desktop/src-tauri/src/screenshot_editor.rs
+++ b/apps/desktop/src-tauri/src/screenshot_editor.rs
@@ -367,7 +367,7 @@ impl ScreenshotEditorInstances {
}));
}
Err(e) => {
- eprintln!("Failed to render frame: {e}");
+ tracing::error!("Failed to render screenshot frame: {e}");
}
}
diff --git a/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx b/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx
index 0a02cd1a3..3b67431d1 100644
--- a/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx
+++ b/apps/desktop/src/routes/screenshot-editor/AnnotationLayer.tsx
@@ -198,8 +198,8 @@ export function AnnotationLayer(props: {
opacity: 1,
rotation: 0,
text: tool === "text" ? "Text" : null,
- maskType: tool === "mask" ? "blur" : null,
- maskLevel: tool === "mask" ? 16 : null,
+ maskType: tool === "mask" ? "pixelate" : null,
+ maskLevel: tool === "mask" ? 7 : null,
};
if (tool === "text") {
diff --git a/apps/desktop/src/routes/screenshot-editor/arrow.ts b/apps/desktop/src/routes/screenshot-editor/arrow.ts
index 3e4e3bfe7..3d8aa2a79 100644
--- a/apps/desktop/src/routes/screenshot-editor/arrow.ts
+++ b/apps/desktop/src/routes/screenshot-editor/arrow.ts
@@ -1,7 +1,7 @@
export function getArrowHeadSize(strokeWidth: number) {
const width = Math.max(1, strokeWidth);
- const length = Math.max(12, width * 3);
- const headWidth = Math.max(8, width * 2);
+ const length = Math.max(20, width * 6);
+ const headWidth = Math.max(14, width * 5);
return { length, width: headWidth };
}