apps: update to renamed ColorOp.Color field

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-05 17:17:02 +02:00
parent 38ec6a8831
commit 6440fc35b7
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module gioui.org/apps
go 1.12
require (
gioui.org/ui v0.0.0-20190705145213-86bc3e612d00
gioui.org/ui v0.0.0-20190705151457-38ec6a8831bd
github.com/google/go-github/v24 v24.0.1
golang.org/x/exp v0.0.0-20190627132806-fd42eb6b336f
golang.org/x/image v0.0.0-20190703141733-d6a02ce849c9
+1 -1
View File
@@ -177,7 +177,7 @@ func init() {
func colorMaterial(ops *ui.Ops, color color.RGBA) ui.BlockOp {
ops.Begin()
gdraw.ColorOp{Col: color}.Add(ops)
gdraw.ColorOp{Color: color}.Add(ops)
return ops.End()
}
+1 -1
View File
@@ -56,7 +56,7 @@ func loop(w *app.Window) {
cs := layout.ExactConstraints(w.Size())
ops.Reset()
ops.Begin()
draw.ColorOp{Col: maroon}.Add(ops)
draw.ColorOp{Color: maroon}.Add(ops)
material := ops.End()
text.Label{Material: material, Face: face, Alignment: text.Center, Text: message}.Layout(ops, cs)
w.Draw(ops)