mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user