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
@@ -108,7 +108,7 @@ func drawTabs(gtx layout.Context, th *material.Theme) layout.Dimensions {
}
tabHeight := gtx.Px(unit.Dp(4))
tabRect := image.Rect(0, 0, tabWidth, tabHeight)
paint.FillShape(gtx.Ops, th.Color.Primary, clip.Rect(tabRect).Op())
paint.FillShape(gtx.Ops, th.Palette.ContrastBg, clip.Rect(tabRect).Op())
return layout.Dimensions{
Size: image.Point{X: tabWidth, Y: tabHeight},
}