mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
cmd,example: fix uses of color.NRGBA
Signed-off-by: Egon Elbre <egonelbre@gmail.com>
This commit is contained in:
@@ -41,7 +41,7 @@ func loop(w *app.Window) error {
|
||||
case system.FrameEvent:
|
||||
gtx := layout.NewContext(&ops, e)
|
||||
l := material.H1(th, "Hello, Gio")
|
||||
maroon := color.RGBA{127, 0, 0, 255}
|
||||
maroon := color.NRGBA{R: 127, G: 0, B: 0, A: 255}
|
||||
l.Color = maroon
|
||||
l.Alignment = text.Middle
|
||||
l.Layout(gtx)
|
||||
|
||||
Reference in New Issue
Block a user