Add feedback components 106-130; inert scope, focus return, two-step deploy
This commit is contained in:
87 files changed
+2492
-147
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ type SliderResult struct {
|
||||
func Slider(c *ui.Context, text string, value *float64, o SliderOptions) SliderResult {
|
||||
k := pixel.K(c)
|
||||
lo, hi := bounds(o.Min, o.Max)
|
||||
w := orDef("Slider Width", o.Width, 96)
|
||||
w := pixel.Or("Slider Width", o.Width, 96)
|
||||
shell, st, changed := slide(c, value, rail{lo: lo, hi: hi, label: text, disabled: o.Disabled})
|
||||
shell.Size(k.D(w), k.D(12)).Draw(func(p *ui.Painter, r ui.Rect) {
|
||||
g := k.Canvas(p, r)
|
||||
|
||||
Reference in new issue
Block a user