Icon example scrolls!
This commit is contained in:
parent
ac51d3dc9f
commit
8aff032ebb
|
@ -8,7 +8,7 @@ import "git.tebibyte.media/tomo/objects"
|
||||||
import "git.tebibyte.media/tomo/tomo/theme"
|
import "git.tebibyte.media/tomo/tomo/theme"
|
||||||
import "git.tebibyte.media/tomo/objects/layouts"
|
import "git.tebibyte.media/tomo/objects/layouts"
|
||||||
|
|
||||||
const scrollIcons = false
|
const scrollIcons = true
|
||||||
|
|
||||||
type Application struct {
|
type Application struct {
|
||||||
size theme.IconSize
|
size theme.IconSize
|
||||||
|
@ -23,10 +23,10 @@ func (this *Application) Describe () nasin.ApplicationDescription {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Application) Init () error {
|
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 }
|
if err != nil { return err }
|
||||||
|
|
||||||
this.grid = objects.NewInnerContainer (
|
this.grid = objects.NewSunkenContainer (
|
||||||
layouts.NewGrid([]bool {
|
layouts.NewGrid([]bool {
|
||||||
false, false, false, false, false, false, false, false, false, false, false, false,
|
false, false, false, false, false, false, false, false, false, false, false, false,
|
||||||
}, []bool { }),
|
}, []bool { }),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user