Skip to content

Commit 86fa339

Browse files
authored
fix(core): fix invalid path for Color in context generation (#9071)
1 parent e62ca4e commit 86fa339

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changes/color-context-generation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri-utils': 'patch:bug'
3+
'tauri': 'patch:bug'
4+
---
5+
6+
Fix compile time error in context generation when using `app.windows.windowEffects.color`

core/tauri-utils/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2096,7 +2096,7 @@ mod build {
20962096
impl ToTokens for Color {
20972097
fn to_tokens(&self, tokens: &mut TokenStream) {
20982098
let Color(r, g, b, a) = self;
2099-
tokens.append_all(quote! {::tauri::utils::Color(#r,#g,#b,#a)});
2099+
tokens.append_all(quote! {::tauri::utils::config::Color(#r,#g,#b,#a)});
21002100
}
21012101
}
21022102
impl ToTokens for WindowEffectsConfig {

0 commit comments

Comments
 (0)