From 2c5b7496d2636b64efd9f1157744264184ff4a04 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 7 Jul 2019 00:48:00 +0200 Subject: [PATCH] ui/text: apply correct material for cursor Signed-off-by: Elias Naur --- ui/text/editor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/text/editor.go b/ui/text/editor.go index 7fa4b6f7..cbf76f90 100644 --- a/ui/text/editor.go +++ b/ui/text/editor.go @@ -244,6 +244,8 @@ func (e *Editor) Layout(ops *ui.Ops, cs layout.Constraints) layout.Dimens { }) carRect = clip.Intersect(carRect) if !carRect.Empty() { + draw.ColorOp{Color: color.RGBA{A: 0xff}}.Add(ops) + e.Material.Add(ops) draw.DrawOp{Rect: toRectF(carRect)}.Add(ops) } }