apps: update to newest macro api

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-16 13:24:41 +02:00
parent 94a913a371
commit f9fda47d25
3 changed files with 12 additions and 8 deletions
+3 -2
View File
@@ -54,9 +54,10 @@ func loop(w *app.Window) error {
cfg = e.Config
cs := layout.RigidConstraints(e.Size)
ops.Reset()
ops.Record()
var material ui.MacroOp
material.Record(ops)
draw.ColorOp{Color: maroon}.Add(ops)
material := ops.Stop()
material.Stop()
text.Label{Material: material, Face: face, Alignment: text.Center, Text: message}.Layout(ops, cs)
w.Draw(ops)
faces.Frame()