feat(ui): per-side borders (border-top/right/bottom/left)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-24 17:43:42 +03:00
parent 0a7525b125
commit 584e455f2d
8 changed files with 50 additions and 16 deletions

View file

@ -42,8 +42,8 @@ function ly_measure(n: UiNode, avail: float, size: float, fg: int) -> void {
n.mh = ly_clamp(n.mh, n.min_h, n.max_h)
}
var ly_fg_a: float = 1.0
function ly_hin(n: UiNode) -> float { return n.pl + n.pr + n.border * 2.0 }
function ly_vin(n: UiNode) -> float { return n.pt + n.pb + n.border * 2.0 }
function ly_hin(n: UiNode) -> float { return n.pl + n.pr + n.bl + n.br }
function ly_vin(n: UiNode) -> float { return n.pt + n.pb + n.bt + n.bb }
function ly_clamp(v: float, lo: float, hi: float) -> float {
var out = v
if hi > 0.0 and out > hi { out = hi }