mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Rename translucent to transparentize and mixed to mix
This commit is contained in:
parent
64ad1ce357
commit
4845241ebf
13 changed files with 64 additions and 64 deletions
|
@ -2365,21 +2365,21 @@ fn compile_builtin_function_call(
|
|||
let factor = a.next().unwrap();
|
||||
quote!(#x.darker(#factor as f32))
|
||||
}
|
||||
BuiltinFunction::ColorTranslucent => {
|
||||
BuiltinFunction::ColorTransparentize => {
|
||||
let x = a.next().unwrap();
|
||||
let factor = a.next().unwrap();
|
||||
quote!(#x.translucent(#factor as f32))
|
||||
quote!(#x.transparentize(#factor as f32))
|
||||
}
|
||||
BuiltinFunction::ColorOpaque => {
|
||||
let x = a.next().unwrap();
|
||||
let factor = a.next().unwrap();
|
||||
quote!(#x.opaque(#factor as f32))
|
||||
}
|
||||
BuiltinFunction::ColorMixed => {
|
||||
BuiltinFunction::ColorMix => {
|
||||
let x = a.next().unwrap();
|
||||
let y = a.next().unwrap();
|
||||
let factor = a.next().unwrap();
|
||||
quote!(#x.mixed(&#y.into(), #factor as f32))
|
||||
quote!(#x.mix(&#y.into(), #factor as f32))
|
||||
}
|
||||
BuiltinFunction::ColorWithAlpha => {
|
||||
let x = a.next().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue