Add data components 151-175; clear MyGo row highlights
Lists, tables, trees, grids, inventories and records in data/. Outline and GridView build on ui.List: ui.Outline strokes its arrows and ui.GridView spaces and tints items. The pixel theme keeps MyGo's row highlights clear so scrolled rows stay on whole dots; off lists take a veil against the wheel. Adds Canvas.Silhouette, SwitchOptions Label and exports Rarity.Slot.
This commit is contained in:
47 files changed
+3379
-17
No files matched your search
@@ -221,3 +221,14 @@ func TestGridCopyFollowsTheLocale(t *testing.T) {
|
||||
t.Fatal("END or the unlock banner ignores the locale")
|
||||
}
|
||||
}
|
||||
|
||||
func TestSwitchLabelNamesABarePlate(t *testing.T) {
|
||||
lever := false
|
||||
tt := view(300, 100, nil, func(c *ui.Context) {
|
||||
input.Switch(c, "", &lever, input.SwitchOptions{Label: "Fly"})
|
||||
})
|
||||
click(t, tt, "Fly")
|
||||
if !lever || len(tt.Texts()) != 1 {
|
||||
t.Fatalf("switch %v, texts %q", lever, tt.Texts())
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user