diff --git a/main.go b/main.go index ed69c20..e8b8efd 100644 --- a/main.go +++ b/main.go @@ -75,6 +75,7 @@ func eventloop() { ) gofont.Register() th := material.NewTheme() + th.TextSize = unit.Sp(fontSize) gtx := &layout.Context{Queue: w.Queue()} sysinset := &layout.Inset{} diff --git a/os_android.go b/os_android.go index 2e95474..a277964 100644 --- a/os_android.go +++ b/os_android.go @@ -7,6 +7,7 @@ import ( ) var confDir string +var fontSize float32 = 24 func getConfDir() string { if confDir == "" { diff --git a/os_darwin.go b/os_darwin.go index 90127a3..1639906 100644 --- a/os_darwin.go +++ b/os_darwin.go @@ -8,6 +8,7 @@ import ( ) var confDir string +var fontSize float32 = 16 func getConfDir() string { if confDir != "" {