mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-08-17 03:40:23 +03:00
fix(core): fix invalid path for Color
in context generation (#9071)
This commit is contained in:
parent
e62ca4ee95
commit
86fa339de7
6
.changes/color-context-generation.md
Normal file
6
.changes/color-context-generation.md
Normal 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`
|
@ -2096,7 +2096,7 @@ mod build {
|
|||||||
impl ToTokens for Color {
|
impl ToTokens for Color {
|
||||||
fn to_tokens(&self, tokens: &mut TokenStream) {
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
||||||
let Color(r, g, b, a) = self;
|
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 {
|
impl ToTokens for WindowEffectsConfig {
|
||||||
|
Loading…
Reference in New Issue
Block a user