forked from joejulian/gio
ui: merge Transform into TransformOp
The separate Transform type is not worth its weight. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@ func (l Label) Layout(ops *ui.Ops, cs layout.Constraints) layout.Dimens {
|
||||
lclip := toRectF(clip).Sub(off)
|
||||
var stack ui.StackOp
|
||||
stack.Push(ops)
|
||||
ui.TransformOp{Transform: ui.Offset(off)}.Add(ops)
|
||||
ui.TransformOp{}.Offset(off).Add(ops)
|
||||
l.Face.Path(str).Add(ops)
|
||||
// Set a default color in case the material is empty.
|
||||
draw.ColorOp{Color: color.RGBA{A: 0xff}}.Add(ops)
|
||||
|
||||
Reference in New Issue
Block a user