~eliasnaur/gio

9c0fc631bd3a6f9cdfbe4ce4427146b9669bed6a — Elias Naur 1 year, 11 months ago 454b226
widget/material: use theme TextSize for Editors

Thanks to Werner Laurensse for noticing.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 1 insertions(+), 2 deletions(-)

M widget/material/editor.go
M widget/material/editor.go => widget/material/editor.go +1 -2
@@ 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,