Skip to content

Commit

Permalink
change acrylic to blur
Browse files Browse the repository at this point in the history
  • Loading branch information
NoPlagiarism committed Nov 13, 2024
1 parent dea6d2a commit 47276db
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 47276db

Please sign in to comment.