From ec92b09ea759520625a316f018d85d640d8d6378 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Sun, 19 Nov 2023 06:50:22 +0200 Subject: [PATCH] shadows windows only --- desktop/src-tauri/Cargo.toml | 2 +- desktop/src-tauri/src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop/src-tauri/Cargo.toml b/desktop/src-tauri/Cargo.toml index 1115d0d..4c11b7a 100644 --- a/desktop/src-tauri/Cargo.toml +++ b/desktop/src-tauri/Cargo.toml @@ -17,7 +17,7 @@ tauri = { version = "1.4", features = ["shell-open"] } enigo = { version = "0.1.3" } tokio = "1.34.0" -[target.'cfg(any(windows, target_os = "macos"))'.dependencies] +[target.'cfg(windows)'.dependencies] window-shadows = "0.2.2" [features] diff --git a/desktop/src-tauri/src/main.rs b/desktop/src-tauri/src/main.rs index 6db6035..9ea4828 100644 --- a/desktop/src-tauri/src/main.rs +++ b/desktop/src-tauri/src/main.rs @@ -1,7 +1,7 @@ // Prevents additional console window on Windows in release, DO NOT REMOVE!! #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] -#[cfg(any(windows, target_os = "macos"))] +#[cfg(windows)] use window_shadows::set_shadow; use tauri::Manager; @@ -47,7 +47,7 @@ fn main() { .setup(|app| { let window = app.get_window("main").unwrap(); - #[cfg(any(windows, target_os = "macos"))] + #[cfg(windows)] set_shadow(&window, true).unwrap(); Ok(())