diff --git a/editor.go b/editor.go index 17d948a..7be91df 100644 --- a/editor.go +++ b/editor.go @@ -47,6 +47,7 @@ type Editor struct { width int height int selectedBg *RGBA + matchFg *RGBA } func initWindow(box *ui.Box, width, height int) *ui.Window { @@ -125,7 +126,8 @@ func InitEditor() error { font: font, cols: 0, rows: 0, - selectedBg: newRGBA(81, 154, 186, 0.5), + selectedBg: newRGBA(81, 154, 186, 0.6), + matchFg: newRGBA(81, 154, 186, 1), } editor.resize() diff --git a/finder.go b/finder.go index 95b8a23..0d3b160 100644 --- a/finder.go +++ b/finder.go @@ -209,7 +209,7 @@ func (f *Finder) showResult(args []interface{}) { itemHandler := &SpanHandler{} itemSpan := ui.NewArea(itemHandler) itemHandler.span = itemSpan - itemHandler.matchColor = newRGBA(81, 154, 186, 1) + itemHandler.matchColor = editor.matchFg y := height * (i + 1) ui.QueueMain(func() { f.box.Append(itemSpan, false)