fix(core): fix invalid path for Color in context generation (#9071)

This commit is contained in:
Amr Bashir 2024-03-04 22:03:55 +02:00 committed by GitHub
parent e62ca4ee95
commit 86fa339de7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
'tauri-utils': 'patch:bug'
'tauri': 'patch:bug'
---
Fix compile time error in context generation when using `app.windows.windowEffects.color`

View File

@ -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 {