mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 08:25:34 +00:00
apps: update to renamed ColorOp.Color field
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user