From b0189cefee84cbc404d2ac63791d170e14c206fc Mon Sep 17 00:00:00 2001 From: Abdenasser Date: Wed, 13 Nov 2024 21:20:14 +0100 Subject: [PATCH] fix windows 11 vibrancy --- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/src/ui/window.rs | 4 ++-- src-tauri/tauri.conf.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5e6e333..ea2a081 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "neohtop", - "version": "1.1.0", + "version": "1.1.1", "description": "", "type": "module", "scripts": { diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index ac167b0..9e5f991 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1784,7 +1784,7 @@ dependencies = [ [[package]] name = "neohtop" -version = "1.1.0" +version = "1.1.1" dependencies = [ "serde", "serde_json", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 1067152..5ec91ec 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "neohtop" -version = "1.1.0" +version = "1.1.1" description = "A cross-platform system monitor" authors = ["you"] edition = "2021" diff --git a/src-tauri/src/ui/window.rs b/src-tauri/src/ui/window.rs index 02acf56..37f0c8b 100644 --- a/src-tauri/src/ui/window.rs +++ b/src-tauri/src/ui/window.rs @@ -5,14 +5,14 @@ use tauri::WebviewWindow; #[cfg(target_os = "windows")] -use window_vibrancy::apply_blur; +use window_vibrancy::apply_acrylic; #[cfg(target_os = "macos")] use window_vibrancy::{apply_vibrancy, NSVisualEffectMaterial, NSVisualEffectState}; /// Applies Windows-specific window effects #[cfg(target_os = "windows")] pub fn setup_window_effects(window: &WebviewWindow) -> Result<(), Box> { - apply_blur(window, Some((0, 0, 25, 125)))?; + apply_acrylic(window, Some((0, 0, 25, 125)))?; Ok(()) } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 2089e7d..f05334a 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -27,7 +27,7 @@ }, "productName": "NeoHtop", "mainBinaryName": "NeoHtop", - "version": "1.1.0", + "version": "1.1.1", "identifier": "com.neohtop.dev", "plugins": { "os": {