example: update gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-14 15:17:51 +02:00
parent fc521ec1ff
commit 3a27bcea2e
5 changed files with 19 additions and 16 deletions
+4 -3
View File
@@ -9,6 +9,7 @@ import (
"log"
"gioui.org/app"
"gioui.org/io/system"
_ "gioui.org/font/gofont"
"gioui.org/layout"
"gioui.org/text"
@@ -33,10 +34,10 @@ func loop(w *app.Window) error {
for {
e := <-w.Events()
switch e := e.(type) {
case app.DestroyEvent:
case system.DestroyEvent:
return e.Err
case app.FrameEvent:
gtx.Reset(&e.Config, e.Size)
case system.FrameEvent:
gtx.Reset(e.Config, e.Size)
l := th.H1("Hello, Gio")
maroon := color.RGBA{127, 0, 0, 255}
l.Color = maroon