widget/material: use font.Default

And simplify NewTheme to take no arguments.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-13 18:23:39 +02:00
parent 445d85efe0
commit 8cd4c2e5de
+3 -2
View File
@@ -8,6 +8,7 @@ import (
"image/color"
"gioui.org/f32"
"gioui.org/font"
"gioui.org/layout"
"gioui.org/op"
"gioui.org/op/paint"
@@ -25,9 +26,9 @@ type Theme struct {
TextSize unit.Value
}
func NewTheme(shaper *text.Shaper) *Theme {
func NewTheme() *Theme {
t := &Theme{
Shaper: shaper,
Shaper: font.Default(),
}
t.Color.Primary = rgb(0x3f51b5)
t.Color.Text = rgb(0x000000)