Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
disable transparency for now
Brendan Allan6f0622be158f
diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.tomlindex d9a087d3d..d2cd299e6 100644--- a/apps/desktop/src-tauri/Cargo.toml+++ b/apps/desktop/src-tauri/Cargo.toml@@ -94,7 +94,7 @@ tauri-plugin-opener = "2.2.6"[target.'cfg(target_os = "macos")'.dependencies]core-graphics = "0.24.0"core-foundation = "0.10.0"-objc2-app-kit = { version = "0.2.2", features = [+objc2-app-kit = { version = "0.3.0", features = ["NSWindow","NSResponder","NSHapticFeedback",diff --git a/apps/desktop/src-tauri/capabilities/default.json b/apps/desktop/src-tauri/capabilities/default.jsonindex 7751dbe8a..67fd6bf87 100644--- a/apps/desktop/src-tauri/capabilities/default.json+++ b/apps/desktop/src-tauri/capabilities/default.json@@ -40,6 +40,7 @@"core:window:allow-set-position","core:window:allow-set-theme","core:window:allow-set-progress-bar",+ "core:window:allow-set-effects","core:webview:default","core:webview:allow-create-webview-window","core:app:allow-version",diff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rsindex 094c113f7..6e4985264 100644--- a/apps/desktop/src-tauri/src/windows.rs+++ b/apps/desktop/src-tauri/src/windows.rs@@ -631,7 +631,7 @@ pub fn set_window_transparent(window: tauri::Window, value: bool) {as *const objc2_app_kit::NSWindow;unsafe {- (*ns_win).setOpaque(value);+ (*ns_win).setOpaque(!value);}}}diff --git a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx b/apps/desktop/src/routes/(window-chrome)/settings/general.tsxindex 59c96482a..8053767a8 100644--- a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx+++ b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx@@ -57,12 +57,12 @@ const settingsList: Array<{"Show system notifications for events like copying to clipboard, saving files, and more. You may need to manually allow Cap access via your system's notification settings.",requiresPermission: true,},- type() === "macos" && {- key: "windowTransparency",- label: "Enable Window Transparency",- description:- "Make the background of some windows (eg. the Editor) transparent",- },+ // type() === "macos" && {+ // key: "windowTransparency",+ // label: "Enable Window Transparency",+ // description:+ // "Make the background of some windows (eg. the Editor) transparent",+ // },] as const).filter(Boolean);