瀏覽代碼

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

Amr Bashir 1 年之前
父節點
當前提交
86fa339de7
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 6 0
      .changes/color-context-generation.md
  2. 1 1
      core/tauri-utils/src/config.rs

+ 6 - 0
.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`

+ 1 - 1
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 {