mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
ui/text: apply correct material for cursor
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -244,6 +244,8 @@ func (e *Editor) Layout(ops *ui.Ops, cs layout.Constraints) layout.Dimens {
|
|||||||
})
|
})
|
||||||
carRect = clip.Intersect(carRect)
|
carRect = clip.Intersect(carRect)
|
||||||
if !carRect.Empty() {
|
if !carRect.Empty() {
|
||||||
|
draw.ColorOp{Color: color.RGBA{A: 0xff}}.Add(ops)
|
||||||
|
e.Material.Add(ops)
|
||||||
draw.DrawOp{Rect: toRectF(carRect)}.Add(ops)
|
draw.DrawOp{Rect: toRectF(carRect)}.Add(ops)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user