Skip to content

Commit

Permalink
Merge pull request #113 from Abdenasser/fix-windows-vibrancy
Browse files Browse the repository at this point in the history
fix windows 11 vibrancy
  • Loading branch information
Abdenasser authored Nov 13, 2024
2 parents 7de952a + b0189ce commit e74a878
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neohtop",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/ui/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn std::error::Error>> {
apply_blur(window, Some((0, 0, 25, 125)))?;
apply_acrylic(window, Some((0, 0, 25, 125)))?;
Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"productName": "NeoHtop",
"mainBinaryName": "NeoHtop",
"version": "1.1.0",
"version": "1.1.1",
"identifier": "com.neohtop.dev",
"plugins": {
"os": {
Expand Down

0 comments on commit e74a878

Please sign in to comment.