example: bump gio version

Tweak kitchen Border example as well.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-07-09 20:37:34 +02:00
parent 188bfa9a0b
commit 742e1f9e72
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ func kitchen(gtx layout.Context, th *material.Theme) layout.Dimensions {
func(gtx C) D {
e := material.Editor(th, lineEditor, "Hint")
e.Font.Style = text.Italic
border := widget.Border{Color: color.RGBA{A: 0xff}, CornerRadius: unit.Dp(10), Width: unit.Px(2)}
border := widget.Border{Color: color.RGBA{A: 0xff}, CornerRadius: unit.Dp(8), Width: unit.Px(2)}
return border.Layout(gtx, func(gtx C) D {
return layout.UniformInset(unit.Dp(8)).Layout(gtx, e.Layout)
})