mirror of
https://github.com/akiyosi/goneovim.git
synced 2025-08-30 06:29:28 +02:00
changed selected bg color
This commit is contained in:
parent
2f1cbc1df5
commit
d7de9f8483
2 changed files with 4 additions and 2 deletions
|
@ -47,6 +47,7 @@ type Editor struct {
|
||||||
width int
|
width int
|
||||||
height int
|
height int
|
||||||
selectedBg *RGBA
|
selectedBg *RGBA
|
||||||
|
matchFg *RGBA
|
||||||
}
|
}
|
||||||
|
|
||||||
func initWindow(box *ui.Box, width, height int) *ui.Window {
|
func initWindow(box *ui.Box, width, height int) *ui.Window {
|
||||||
|
@ -125,7 +126,8 @@ func InitEditor() error {
|
||||||
font: font,
|
font: font,
|
||||||
cols: 0,
|
cols: 0,
|
||||||
rows: 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()
|
editor.resize()
|
||||||
|
|
|
@ -209,7 +209,7 @@ func (f *Finder) showResult(args []interface{}) {
|
||||||
itemHandler := &SpanHandler{}
|
itemHandler := &SpanHandler{}
|
||||||
itemSpan := ui.NewArea(itemHandler)
|
itemSpan := ui.NewArea(itemHandler)
|
||||||
itemHandler.span = itemSpan
|
itemHandler.span = itemSpan
|
||||||
itemHandler.matchColor = newRGBA(81, 154, 186, 1)
|
itemHandler.matchColor = editor.matchFg
|
||||||
y := height * (i + 1)
|
y := height * (i + 1)
|
||||||
ui.QueueMain(func() {
|
ui.QueueMain(func() {
|
||||||
f.box.Append(itemSpan, false)
|
f.box.Append(itemSpan, false)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue