mirror of
https://github.com/felixangell/phi.git
synced 2024-10-26 17:18:31 +03:00
use theme cursor invert rather than fixed colour
This commit is contained in:
parent
85910c00b6
commit
cb0b1f936f
@ -370,7 +370,7 @@ func (b *Buffer) OnRender(ctx *strife.Renderer) {
|
||||
// if we're currently over a character then set
|
||||
// the font colour to something else
|
||||
if b.curs.x+1 == x_col && b.curs.y == y_col && should_draw {
|
||||
ctx.SetColor(strife.Green)
|
||||
ctx.SetColor(strife.HexRGB(b.cfg.Theme.Cursor_Invert))
|
||||
}
|
||||
|
||||
last_w, last_h = ctx.String(string(char), b.x+((x_col-1)*last_w), b.y+(y_col*last_h))
|
||||
|
Loading…
Reference in New Issue
Block a user