ui/draw: rename ColorOp.Col to Color

This commit is contained in:
Elias Naur
2019-07-05 17:14:57 +02:00
parent 0f576cf625
commit 38ec6a8831
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -206,10 +206,10 @@ func (e *Editor) Layout(ops *ui.Ops, cs layout.Constraints) layout.Dimens {
ui.PushOp{}.Add(ops)
// Apply material. Set a default color in case the material is empty.
if e.rr.len() > 0 {
draw.ColorOp{Col: color.RGBA{A: 0xff}}.Add(ops)
draw.ColorOp{Color: color.RGBA{A: 0xff}}.Add(ops)
e.Material.Add(ops)
} else {
draw.ColorOp{Col: color.RGBA{A: 0xaa}}.Add(ops)
draw.ColorOp{Color: color.RGBA{A: 0xaa}}.Add(ops)
e.HintMaterial.Add(ops)
}
for {
+1 -1
View File
@@ -111,7 +111,7 @@ func (l Label) Layout(ops *ui.Ops, cs layout.Constraints) layout.Dimens {
ui.TransformOp{Transform: ui.Offset(off)}.Add(ops)
l.Face.Path(str).Add(ops)
// Set a default color in case the material is empty.
draw.ColorOp{Col: color.RGBA{A: 0xff}}.Add(ops)
draw.ColorOp{Color: color.RGBA{A: 0xff}}.Add(ops)
l.Material.Add(ops)
draw.DrawOp{Rect: lclip}.Add(ops)
ui.PopOp{}.Add(ops)