Add feedback components 106-130; inert scope, focus return, two-step deploy

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 20:58:30 -04:00
1 parent bce416182e
commit bd3877e1b1
87 files changed
+2492 -147

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ type SwatchOptions struct {
// Swatch shows the active palette's sixteen slots with names.
func Swatch(c *ui.Context, o SwatchOptions) *ui.Element {
k := pixel.K(c)
cols := orDef("Swatch Columns", o.Columns, 4)
cols := pixel.Or("Swatch Columns", o.Columns, 4)
cell := 14 + pixel.Measure("AccentLit")
return ui.Row(c).Wrap().Width(k.D(cols * (cell + 4))).Gap(k.D(4)).Role(ui.RoleList).Label(k.Palette().Name).Children(func() {
for s := range pixel.Slot(pixel.Slots) {