Start working on transparency

This commit is contained in:
Lncvrt committed 2026-04-17 06:39:42 -07:00
1 parent 3a9e0b0358
commit 4601628a55
7 files changed
+11 -70

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ tauri-plugin-http = "2.5.8"
dashmap = "6.1.0"
tauri-plugin-store = "2.4.2"
hex = "0.4.3"
window-vibrancy = "0.7.1"
[target.'cfg(any(target_os = "windows", target_os = "linux"))'.dependencies]
sysinfo = "0.38.4"
+6
View File
@@ -21,6 +21,8 @@ use tauri_plugin_os::platform;
use tauri_plugin_prevent_default::Flags;
use tokio::io::AsyncReadExt;
use tokio::{io::AsyncWriteExt, time::timeout};
#[cfg(target_os = "macos")]
use window_vibrancy::{NSVisualEffectMaterial, apply_vibrancy};
use zip::ZipArchive;
use zip::result::ZipError;
@@ -749,6 +751,10 @@ pub fn run() {
let window = app.get_webview_window("main").unwrap();
#[cfg(target_os = "macos")]
apply_vibrancy(&window, NSVisualEffectMaterial::HudWindow, None, None)
.expect("Unable to apply window blur");
#[cfg(target_os = "windows")]
{
use tauri_plugin_decorum::WebviewWindowExt;
+2 -1
View File
@@ -20,7 +20,8 @@
"minWidth": 1000,
"minHeight": 500,
"titleBarStyle": "Overlay",
"hiddenTitle": true
"hiddenTitle": true,
"transparent": true
}
],
"security": {