widget/material: use theme TextSize for Editors

Thanks to Werner Laurensse for noticing.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-11-07 18:45:53 +01:00
parent 454b226404
commit 9c0fc631bd
+1 -2
View File
@@ -9,7 +9,6 @@ import (
"gioui.org/op"
"gioui.org/op/paint"
"gioui.org/text"
"gioui.org/unit"
"gioui.org/widget"
)
@@ -28,7 +27,7 @@ type Editor struct {
func (t *Theme) Editor(hint string) Editor {
return Editor{
Font: text.Font{
Size: unit.Sp(16),
Size: t.TextSize,
},
Color: t.Color.Text,
shaper: t.Shaper,