mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05: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"
|
||||||
"gioui.org/op/paint"
|
"gioui.org/op/paint"
|
||||||
"gioui.org/text"
|
"gioui.org/text"
|
||||||
"gioui.org/unit"
|
|
||||||
"gioui.org/widget"
|
"gioui.org/widget"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -28,7 +27,7 @@ type Editor struct {
|
|||||||
func (t *Theme) Editor(hint string) Editor {
|
func (t *Theme) Editor(hint string) Editor {
|
||||||
return Editor{
|
return Editor{
|
||||||
Font: text.Font{
|
Font: text.Font{
|
||||||
Size: unit.Sp(16),
|
Size: t.TextSize,
|
||||||
},
|
},
|
||||||
Color: t.Color.Text,
|
Color: t.Color.Text,
|
||||||
shaper: t.Shaper,
|
shaper: t.Shaper,
|
||||||
|
|||||||
Reference in New Issue
Block a user