mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
example: update gio version
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -28,8 +28,6 @@ import (
|
||||
_ "image/png"
|
||||
|
||||
_ "net/http/pprof"
|
||||
|
||||
_ "gioui.org/font/gofont"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
"runtime"
|
||||
|
||||
"gioui.org/f32"
|
||||
"gioui.org/font/gofont"
|
||||
"gioui.org/gesture"
|
||||
"gioui.org/io/key"
|
||||
"gioui.org/io/pointer"
|
||||
@@ -64,6 +65,7 @@ type user struct {
|
||||
var theme *material.Theme
|
||||
|
||||
func init() {
|
||||
gofont.Register()
|
||||
theme = material.NewTheme()
|
||||
theme.Color.Text = rgb(0x333333)
|
||||
theme.Color.Hint = rgb(0xbbbbbb)
|
||||
|
||||
Reference in New Issue
Block a user