tawasuyu

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 660Markdown 302TOML 157RON 312382 Definitions

⎇ main widgets/range-slider/README.md Markdown · 20 lines · 704 B History raw

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

1# llimphi-widget-range-slider
2
3Two-thumb slider over a track.
4
5The analogue of Flutter's `RangeSlider` or Material 3's. The caller keeps
6`(lo, hi)` in its model (fractions in `[0,1]`); the widget reports the new value
7through `on_change(lo, hi)` when the user drags either thumb.
8
9Design:
10
11- A 4 px track, with the active band in the `accent` colour between the two
12  thumbs.
13- 14 px thumbs (circles), 2 px border in the `accent` colour, E1 shadow — the
14  canonical elevation signature.
15- Drag through `draggable` per thumb → the callback receives `(lo, hi)`
16  normalized and monotonically ordered (the low one never overtakes the high).
17
18---
19
20Part of **llimphi** — see [llimphi](../../README.md).

README.md

llimphi-widget-range-slider

Two-thumb slider over a track.

The analogue of Flutter's RangeSlider or Material 3's. The caller keeps (lo, hi) in its model (fractions in [0,1]); the widget reports the new value through on_change(lo, hi) when the user drags either thumb.

Design:


Part of llimphi — see llimphi.