From 8aff032ebb01aacaa819be5527b4f5e381346715 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 13 May 2024 20:11:24 -0400 Subject: [PATCH] Icon example scrolls! --- examples/icons/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/icons/main.go b/examples/icons/main.go index 4c8da84..b263c0c 100644 --- a/examples/icons/main.go +++ b/examples/icons/main.go @@ -8,7 +8,7 @@ import "git.tebibyte.media/tomo/objects" import "git.tebibyte.media/tomo/tomo/theme" import "git.tebibyte.media/tomo/objects/layouts" -const scrollIcons = false +const scrollIcons = true type Application struct { size theme.IconSize @@ -23,10 +23,10 @@ func (this *Application) Describe () nasin.ApplicationDescription { } func (this *Application) Init () error { - window, err := nasin.NewApplicationWindow(this, image.Rect(0, 0, 128, 128)) + window, err := nasin.NewApplicationWindow(this, image.Rect(0, 0, 128, 256)) if err != nil { return err } - this.grid = objects.NewInnerContainer ( + this.grid = objects.NewSunkenContainer ( layouts.NewGrid([]bool { false, false, false, false, false, false, false, false, false, false, false, false, }, []bool { }),