Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Merge branch 'main' into desktop-tailwind-v4
Ilya93c11efbd2bb
diff --cc apps/desktop/src/routes/camera.tsxindex cbff80637,a5ecb877b..f2eaa2266--- a/apps/desktop/src/routes/camera.tsx+++ b/apps/desktop/src/routes/camera.tsx@@@ -213,11 -223,11 +223,11 @@@ function NativeCameraPreviewPage(propsisCameraOnlyMode()? getCameraOnlyInitialState(): {-- size: CAMERA_DEFAULT_SIZE,-- shape: "round",-- mirrored: false,-- backgroundBlur: "off" as BackgroundBlurMode,-- },++ size: CAMERA_DEFAULT_SIZE,++ shape: "round",++ mirrored: false,++ backgroundBlur: "off" as BackgroundBlurMode,++ },),{ name: "cameraWindowState" },);@@@ -246,7 -256,7 +256,7 @@@const handleVisibilityChange = () => {if (!document.hidden) {setTimeout(() => {-- commands.refreshCameraFeed().catch(() => {});++ commands.refreshCameraFeed().catch(() => { });}, 500);}};@@@ -570,11 -595,11 +595,11 @@@ function LegacyCameraPreviewPage(propsisCameraOnlyMode()? getCameraOnlyInitialState(): {-- size: CAMERA_DEFAULT_SIZE,-- shape: "round",-- mirrored: false,-- backgroundBlur: "off" as BackgroundBlurMode,-- },++ size: CAMERA_DEFAULT_SIZE,++ shape: "round",++ mirrored: false,++ backgroundBlur: "off" as BackgroundBlurMode,++ },),{ name: "cameraWindowState" },);@@@ -757,7 -782,7 +782,7 @@@setIsWindowVisible(!document.hidden);if (!document.hidden) {lastFrameTime = Date.now();-- commands.refreshCameraFeed().catch(() => {});++ commands.refreshCameraFeed().catch(() => { });}};document.addEventListener("visibilitychange", handleVisibilityChange);@@@ -896,7 -921,7 +921,7 @@@Date.now() - lastFrameTime > STALL_TIMEOUT_MS) {lastFrameTime = Date.now();-- commands.refreshCameraFeed().catch(() => {});++ commands.refreshCameraFeed().catch(() => { });if (ws) ws.close();ws = createSocket();}@@@ -928,6 -953,14 +953,14 @@@(state.size - CAMERA_MIN_SIZE) / (CAMERA_MAX_SIZE - CAMERA_MIN_SIZE);return 0.7 + normalized * 0.3;};+ const chrome = createCameraWindowChromeVisibility();+ const toolbarClass = () =>+ cx(- "flex flex-row gap-[0.25rem] p-[0.25rem] rounded-xl transition-[opacity,transform] bg-gray-1 border border-white-transparent-20 text-gray-10",++ "flex flex-row gap-1 p-1 rounded-xl transition-[opacity,transform] bg-gray-1 border border-white-transparent-20 text-gray-10",+ chrome.visible()+ ? "opacity-100 translate-y-0"+ : "opacity-0 translate-y-2",+ );const [_windowSize] = createResource(() =>