Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat: In progress recording window position + hide icons
Richie McIlroy7e75358d7032
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rsindex 403c44ef6..bc4be7371 100644--- a/apps/desktop/src-tauri/src/lib.rs+++ b/apps/desktop/src-tauri/src/lib.rs@@ -268,7 +268,7 @@ async fn start_recording(app: AppHandle, state: MutableState<'_, App>) -> Resultfn create_in_progress_recording_window(app: &AppHandle) {let monitor = app.primary_monitor().unwrap().unwrap();- let width = 200.0;+ let width = 120.0;let height = 40.0;WebviewWindow::builder(@@ -286,10 +286,11 @@ fn create_in_progress_recording_window(app: &AppHandle) {.transparent(true).visible_on_all_workspaces(true).content_protected(true)+ .accept_first_mouse(true).inner_size(width, height).position(((monitor.size().width as f64) / monitor.scale_factor() - width) / 2.0,- (monitor.size().height as f64) / monitor.scale_factor() - height - 60.0,+ (monitor.size().height as f64) / monitor.scale_factor() - height - 120.0,).build().ok();diff --git a/apps/desktop/src/routes/in-progress-recording.tsx b/apps/desktop/src/routes/in-progress-recording.tsxindex 3c86e2a0f..e7a3d4634 100644--- a/apps/desktop/src/routes/in-progress-recording.tsx+++ b/apps/desktop/src/routes/in-progress-recording.tsx@@ -33,16 +33,16 @@ export default function () {<div class="flex flex-row justify-between p-[0.25rem] flex-1"><buttondisabled={stopRecording.isPending}- class="p-[0.25rem] text-red-300 gap-[0.25rem] flex flex-row items-center hover:bg-red-transparent-20 transition-colors rounded-lg"+ class="py-[0.25rem] px-[0.5rem] text-red-300 gap-[0.25rem] flex flex-row items-center hover:bg-red-transparent-20 transition-colors rounded-lg"type="button"onClick={() => stopRecording.mutate()}><IconCapStopCircle />- <span class="font-[700] text-[0.875rem]">+ <span class="font-[500] text-[0.875rem]">{formatTime((time() - start) / 1000)}</span></button>- <ActionButton disabled>+ {/* <ActionButton disabled><IconCapPauseCircle /></ActionButton><ActionButton disabled>@@ -50,7 +50,7 @@ export default function () {</ActionButton><ActionButton disabled><IconCapTrash />- </ActionButton>+ </ActionButton> */}</div><divclass="bg-white-transparent-5 cursor-move flex items-center justify-center p-[0.25rem] border-l border-white-transparent-5"