example/{kitchen,tabs,gophers}: update to use material.Palette

Update gioui.org/cmd while here.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
Chris Waldon
2020-12-05 22:03:28 -05:00
committed by Elias Naur
parent a87a520ae8
commit acc3f704e4
7 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ func (b iconAndTextButton) Layout(gtx layout.Context) layout.Dimensions {
layLabel := layout.Rigid(func(gtx C) D {
return layout.Inset{Left: textIconSpacer}.Layout(gtx, func(gtx C) D {
l := material.Body1(b.theme, b.word)
l.Color = b.theme.Color.InvText
l.Color = b.theme.Palette.ContrastFg
return l.Layout(gtx)
})
})