mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Convert to struct field access and make HsvColor public
This commit is contained in:
parent
4312ce8fc6
commit
0b1ec5e4c9
10 changed files with 119 additions and 150 deletions
|
@ -3051,14 +3051,8 @@ fn compile_builtin_function_call(
|
|||
BuiltinFunction::ColorRgbaStruct => {
|
||||
format!("{}.to_argb_uint()", a.next().unwrap())
|
||||
}
|
||||
BuiltinFunction::ColorHue => {
|
||||
format!("{}.hue()", a.next().unwrap())
|
||||
}
|
||||
BuiltinFunction::ColorSaturation => {
|
||||
format!("{}.saturation()", a.next().unwrap())
|
||||
}
|
||||
BuiltinFunction::ColorBrightness => {
|
||||
format!("{}.brightness()", a.next().unwrap())
|
||||
BuiltinFunction::ColorHsvaStruct => {
|
||||
format!("{}.to_hsva()", a.next().unwrap())
|
||||
}
|
||||
BuiltinFunction::ColorBrighter => {
|
||||
format!("{}.brighter({})", a.next().unwrap(), a.next().unwrap())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue