Skip to content

Commit

Permalink
fix(core): fix invalid path for Color in context generation (#9071)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Mar 4, 2024
1 parent e62ca4e commit 86fa339
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/color-context-generation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'tauri-utils': 'patch:bug'
'tauri': 'patch:bug'
---

Fix compile time error in context generation when using `app.windows.windowEffects.color`
2 changes: 1 addition & 1 deletion core/tauri-utils/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 86fa339

Please sign in to comment.