From 9c0fc631bd3a6f9cdfbe4ce4427146b9669bed6a Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 7 Nov 2019 18:45:53 +0100 Subject: [PATCH] widget/material: use theme TextSize for Editors Thanks to Werner Laurensse for noticing. Signed-off-by: Elias Naur --- widget/material/editor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/widget/material/editor.go b/widget/material/editor.go index cac4af89..61a5d048 100644 --- a/widget/material/editor.go +++ b/widget/material/editor.go @@ -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,