mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
apps: upgrade to the block to macro rename
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -54,9 +54,9 @@ func loop(w *app.Window) error {
|
||||
cfg = e.Config
|
||||
cs := layout.RigidConstraints(e.Size)
|
||||
ops.Reset()
|
||||
ops.Begin()
|
||||
ops.Record()
|
||||
draw.ColorOp{Color: maroon}.Add(ops)
|
||||
material := ops.End()
|
||||
material := ops.Stop()
|
||||
text.Label{Material: material, Face: face, Alignment: text.Center, Text: message}.Layout(ops, cs)
|
||||
w.Draw(ops)
|
||||
faces.Frame()
|
||||
|
||||
Reference in New Issue
Block a user