Skip to content

Commit

Permalink
Merge pull request #111 from NoPlagiarism/apply_blur
Browse files Browse the repository at this point in the history
Change acrylic to blur on Windows
  • Loading branch information
Abdenasser authored Nov 13, 2024
2 parents 6727c61 + 8f46808 commit 7de952a
Showing 1 changed file with 2 additions and 2 deletions.
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_acrylic;
use window_vibrancy::apply_blur;
#[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_acrylic(window, Some((0, 0, 25, 125)))?;
apply_blur(window, Some((0, 0, 25, 125)))?;
Ok(())
}

Expand Down

0 comments on commit 7de952a

Please sign in to comment.