Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
cleanup
Brendan Allancbecd443c016
diff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rsindex 03ec26413..8c5f6992a 100644--- a/apps/desktop/src-tauri/src/windows.rs+++ b/apps/desktop/src-tauri/src/windows.rs@@ -380,8 +380,7 @@ impl ShowCapWindow {Self::InProgressRecording {position: _position,} => {- let mut width = 180.0;- width += 32.0;+ let mut width = 180.0 + 32.0;let height = 40.0;diff --git a/apps/desktop/src/routes/(window-chrome)/(main).tsx b/apps/desktop/src/routes/(window-chrome)/(main).tsxindex dcd7f9391..9ac726177 100644--- a/apps/desktop/src/routes/(window-chrome)/(main).tsx+++ b/apps/desktop/src/routes/(window-chrome)/(main).tsx@@ -42,6 +42,11 @@ import {events,} from "~/utils/tauri";+const MAIN_WINDOW_SIZE = {+ width: 300,+ height: 290 + (window.FLAGS.systemAudioRecording ? 50 : 0),+};+export default function () {const { options, setOptions } = createOptionsQuery();const currentRecording = createCurrentRecordingQuery();@@ -101,10 +106,6 @@ export default function () {// Enforce window size with multiple safeguardsconst currentWindow = getCurrentWindow();- const MAIN_WINDOW_SIZE = {- width: 300,- height: 290 + (window.FLAGS.systemAudioRecording ? 50 : 0),- };// Set initial sizeawait currentWindow.setSize(diff --git a/apps/desktop/src/routes/in-progress-recording.tsx b/apps/desktop/src/routes/in-progress-recording.tsxindex 108996c50..871259a60 100644--- a/apps/desktop/src/routes/in-progress-recording.tsx+++ b/apps/desktop/src/routes/in-progress-recording.tsx@@ -1,4 +1,9 @@-import { createEffect, createSignal, type ComponentProps } from "solid-js";+import {+ createEffect,+ createSignal,+ onMount,+ type ComponentProps,+} from "solid-js";import { cx } from "cva";import { type as ostype } from "@tauri-apps/plugin-os";import { createTimer } from "@solid-primitives/timer";diff --git a/crates/media/src/sources/screen_capture.rs b/crates/media/src/sources/screen_capture.rsindex 1ad4eb5f1..4ed43e21e 100644--- a/crates/media/src/sources/screen_capture.rs+++ b/crates/media/src/sources/screen_capture.rs@@ -590,7 +590,6 @@ impl PipelineSourceTask for ScreenCaptureSource<CMSampleBufferCapture> {match typ {SCStreamOutputType::Screen => {- println!("screen: {frame_time}");let Some(pixel_buffer) = sample_buffer.image_buf() else {return Some(ControlFlow::Continue(()));};