igoui

Log | Files | Refs

commit 749eb9f69ad3e4f81fb0f960e7eda980b5e3a506
parent 9406a9ae0247abf3ca83eb037887fe0e34cf6661
Author: Thomas Vigouroux <me@vigoux.eu>
Date:   Fri, 26 Apr 2024 08:04:27 +0200

style: remove unneeded code

Diffstat:
Mmain.go | 16----------------
1 file changed, 0 insertions(+), 16 deletions(-)

diff --git a/main.go b/main.go @@ -168,22 +168,6 @@ func (g *App) LayoutGoban(gtx layout.Context) layout.Dimensions { return layout.Dimensions{Size: image.Pt(size, size)} } -// Test colors. -var ( - background = color.NRGBA{R: 0xC0, G: 0xC0, B: 0xC0, A: 0xFF} - red = color.NRGBA{R: 0xC0, G: 0x40, B: 0x40, A: 0xFF} - green = color.NRGBA{R: 0x40, G: 0xC0, B: 0x40, A: 0xFF} - blue = color.NRGBA{R: 0x40, G: 0x40, B: 0xC0, A: 0xFF} -) - -// ColorBox creates a widget with the specified dimensions and color. -func ColorBox(gtx layout.Context, size image.Point, color color.NRGBA) layout.Dimensions { - defer clip.Rect{Max: size}.Push(gtx.Ops).Pop() - paint.ColorOp{Color: color}.Add(gtx.Ops) - paint.PaintOp{}.Add(gtx.Ops) - return layout.Dimensions{Size: size} -} - func run(window *app.Window) error { // theme := material.NewTheme() var ops op.Ops