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