wyhaya / tauri-plugin-theme

Dynamically change Tauri App theme
61 stars 7 forks source link

Fails to build on Windows #18

Open dacobo opened 2 hours ago

dacobo commented 2 hours ago

My team is currently getting the following build error when trying to attach this plugin:

error[E0433]: failed to resolve: could not find `Graphics` in `Win32`
  --> ...\tauri-plugin-theme-2.1.1\src\platform\windows.rs:52:13
   |
52 |             Graphics::Dwm::{DwmSetWindowAttribute, DWMWA_USE_IMMERSIVE_DARK_MODE},
   |             ^^^^^^^^ could not find `Graphics` in `Win32`
   |
note: found an item that was configured out
  --> ...\windows-0.58.0\src\Windows\Win32\mod.rs:14:9
   |
14 | pub mod Graphics;
   |         ^^^^^^^^
   = note: the item is gated behind the `Win32_Graphics` feature

Environment info: OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22631 Build 22631 RustC / Cargo version: 1.78.0

wyhaya commented 2 hours ago

Try cargo update and see if that fixes it