Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight caret line is missing alpha/opacity value #646

Closed
uffejakobsen opened this issue Feb 9, 2015 · 9 comments

Comments

Projects
None yet
2 participants
@uffejakobsen
Copy link

commented Feb 9, 2015

Highlight caret line is missing alpha/opacity value

I'm using codelite with dark background color - and have set caret line highlight to bright yellow.
The result is nowhere near bright yellow - it looks more like a very dark green - diffucult to spot from the background.

PS: I believe (seem to remember) that the caret line highlight once had an aplha/opacity value ???

Seen with codelite 6.1 and 7.0 on ArchLinux

@eranif

This comment has been minimized.

Copy link
Owner

commented Feb 10, 2015

You are correct, I can't remember why it was removed (by me), I believe it was part of a page reorganization...
I will fix this today - thanks for spotting this
PS
There seems to be hard coded alpha: SetCaretLineBackAlpha(30)
also, using WHITE as the caret line gives a nice background over the black theme

1

@eranif

This comment has been minimized.

Copy link
Owner

commented Feb 10, 2015

Fixed. (See screenshot below)
editor-settings-7 1

@eranif eranif closed this Feb 10, 2015

@uffejakobsen

This comment has been minimized.

Copy link
Author

commented Feb 10, 2015

That was quick - thanks 👍 :-)

@eranif

This comment has been minimized.

Copy link
Owner

commented Feb 10, 2015

I spent most of the time updating the UI, the real fix took 3 minutes :D
Would appreciate if you could test this to see that it works for you

@uffejakobsen

This comment has been minimized.

Copy link
Author

commented Feb 10, 2015

It works much better now.
There seems to be some constant factor still present - because I still cannot get a full (bright) white or yellow highligh on a dark background - no matter what I adjust. I may have missed some point here.

@eranif

This comment has been minimized.

Copy link
Owner

commented Feb 11, 2015

You did not miss anything. Its just how it works. You can set it to 256 which disables the alpha completely.

http://www.scintilla.org/ScintillaDoc.html#alpha

You can't make it full white or yellow on dark background, this is because the text is usually white or light gray - so the text will be invisible

@uffejakobsen

This comment has been minimized.

Copy link
Author

commented Feb 11, 2015

Oh - I was focused on the value as a percentage and was only testing values from 1 to 100 - did not notice that it could go higher - my bad - sorry for the noise.

It is a really good solution - thanks

PS: not really sure what happens - but 256 is a much better value than 255 - and it does not seem to have wrapped - as 0 and 1 yeilds other results :-)

@eranif

This comment has been minimized.

Copy link
Owner

commented Feb 11, 2015

256 means: disable alpha completely
0-255 means: 0 is complete transparent, 255 fully opaque

@uffejakobsen

This comment has been minimized.

Copy link
Author

commented Feb 11, 2015

Aaaah thx - it is clearly written in the docs - I guess that I'm too busy multiplexing between $work and this stuff - apologies for the noise :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.