Skip to content

Commit

Permalink
shadows windows only
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Nov 19, 2023
1 parent 8195d55 commit ec92b09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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(())
Expand Down

0 comments on commit ec92b09

Please sign in to comment.