Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Use previous window material on macOS and make sure stored device is selected on load
Ilya995859efe28d
diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.jsonindex 5e1c48c23..c9debe55e 100644--- a/apps/desktop/src-tauri/tauri.conf.json+++ b/apps/desktop/src-tauri/tauri.conf.json@@ -54,7 +54,7 @@"center": true,"decorations": false,"windowEffects": {- "effects": ["underWindowBackground", "mica"],+ "effects": ["mediumLight", "mica"],"radius": 16.0}}diff --git a/apps/desktop/src/utils/recording/MediaDeviceContext.tsx b/apps/desktop/src/utils/recording/MediaDeviceContext.tsxindex 7cff475b4..7fd66eb7f 100644--- a/apps/desktop/src/utils/recording/MediaDeviceContext.tsx+++ b/apps/desktop/src/utils/recording/MediaDeviceContext.tsx@@ -98,25 +98,27 @@ export const MediaDeviceProvider: React.FC<React.PropsWithChildren<{}>> = ({if (!selectedVideoDevice) {const storedVideoDevice = localStorage.getItem("selected-videoinput");let videoDevice: Device | null = null;+if (storedVideoDevice && storedVideoDevice !== "none") {videoDevice = formattedDevices.find((device) =>device.kind === "videoinput" && device.label === storedVideoDevice);+ setSelectedVideoDevice(videoDevice);}- setSelectedVideoDevice(videoDevice);}if (!selectedAudioDevice) {const storedAudioDevice = localStorage.getItem("selected-audioinput");let audioDevice: Device | null = null;+if (storedAudioDevice && storedAudioDevice !== "none") {audioDevice = formattedDevices.find((device) =>device.kind === "audioinput" && device.label === storedAudioDevice);+ setSelectedAudioDevice(audioDevice);}- setSelectedAudioDevice(audioDevice);}} catch (error) {console.error("Failed to get media devices:", error);