mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +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
|
go 1.12
|
||||||
|
|
||||||
require (
|
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
|
github.com/google/go-github/v24 v24.0.1
|
||||||
golang.org/x/exp v0.0.0-20190627132806-fd42eb6b336f
|
golang.org/x/exp v0.0.0-20190627132806-fd42eb6b336f
|
||||||
golang.org/x/image v0.0.0-20190703141733-d6a02ce849c9
|
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 {
|
func colorMaterial(ops *ui.Ops, color color.RGBA) ui.BlockOp {
|
||||||
ops.Begin()
|
ops.Begin()
|
||||||
gdraw.ColorOp{Col: color}.Add(ops)
|
gdraw.ColorOp{Color: color}.Add(ops)
|
||||||
return ops.End()
|
return ops.End()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ func loop(w *app.Window) {
|
|||||||
cs := layout.ExactConstraints(w.Size())
|
cs := layout.ExactConstraints(w.Size())
|
||||||
ops.Reset()
|
ops.Reset()
|
||||||
ops.Begin()
|
ops.Begin()
|
||||||
draw.ColorOp{Col: maroon}.Add(ops)
|
draw.ColorOp{Color: maroon}.Add(ops)
|
||||||
material := ops.End()
|
material := ops.End()
|
||||||
text.Label{Material: material, Face: face, Alignment: text.Center, Text: message}.Layout(ops, cs)
|
text.Label{Material: material, Face: face, Alignment: text.Center, Text: message}.Layout(ops, cs)
|
||||||
w.Draw(ops)
|
w.Draw(ops)
|
||||||
|
|||||||
Reference in New Issue
Block a user