feat(ui): linear-gradient backgrounds, object-fit and aspect-ratio
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
abf45ef9db
commit
7605a0253c
18 changed files with 248 additions and 4 deletions
|
|
@ -38,6 +38,7 @@ function fr_background(n: UiNode) -> void {
|
|||
}
|
||||
if a > 0.0 { fr_fill(n, n.x, n.y, c, a) }
|
||||
}
|
||||
if n.ex != null and n.ex.grad != null { gr_draw(n.ex.grad, n.x, n.y, n.cw, n.ch, fr_ga) }
|
||||
if n.bg_img != "" and ui_be.image != null { ui_be.image(n.bg_img, n.x, n.y, n.cw, n.ch, 16777215, fr_ga) }
|
||||
}
|
||||
function fr_fill(n: UiNode, x: float, y: float, c: int, a: float) -> void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue