From 86fa339de7b176efafa9b3e89f94dcad5fcd03da Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Mon, 4 Mar 2024 22:03:55 +0200 Subject: [PATCH] fix(core): fix invalid path for `Color` in context generation (#9071) --- .changes/color-context-generation.md | 6 ++++++ core/tauri-utils/src/config.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/color-context-generation.md diff --git a/.changes/color-context-generation.md b/.changes/color-context-generation.md new file mode 100644 index 000000000..68eb29eb1 --- /dev/null +++ b/.changes/color-context-generation.md @@ -0,0 +1,6 @@ +--- +'tauri-utils': 'patch:bug' +'tauri': 'patch:bug' +--- + +Fix compile time error in context generation when using `app.windows.windowEffects.color` diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index ed738929a..6018ea888 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -2096,7 +2096,7 @@ mod build { impl ToTokens for Color { fn to_tokens(&self, tokens: &mut TokenStream) { let Color(r, g, b, a) = self; - tokens.append_all(quote! {::tauri::utils::Color(#r,#g,#b,#a)}); + tokens.append_all(quote! {::tauri::utils::config::Color(#r,#g,#b,#a)}); } } impl ToTokens for WindowEffectsConfig {