Closed merlindiavova closed 1 year ago
Your view.element_color[view.ELEMENT_CARET_LINE_BACK]
is not a translucent color. I think Scintilla (Textadept's editing component) draws selections first and then the caret line, so with an opaque caret line, it's overwriting the selection background.
I was able to see the selection background using this:
view.element_color[view.ELEMENT_CARET_LINE_BACK] = colors.bg_line | 0x60000000
Tweak the alpha byte to something that suits you.
@orbitalquark Thanks!
Hi,
When I set
view.caret_line_layer = view.LAYER_UNDER_TEXT
in my theme, it seems to override theview.ELEMENT_SELECTION_BACK
withview.ELEMENT_CARET_LINE_BACK
for the current line only.I can highlight all other lines however the line that has the caret and a selection just shows the
view.ELEMENT_CARET_LINE_BACK
color notview.ELEMENT_SELECTION_BACK
.Any ideas?
Please see my theme below