-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
Resuming normal view clears the alpha channel from custom caret line background #356
Comments
Thanks for reporting this and for the analysis. Now if some other plugin also changes caret background color it will for sure interfere with ComparePlus. If for example one plugin changes the color and then other plugin changes it immediately afterwards (on some event - in ComparePlus case it is notification about activation of another doc) then it is very important how the Notepad++ original setting will be restored. BR |
Hi guys, That is the best I can do : a374a82 Thanks. |
Steps to Reproduce
Set the caret line background to a translucent color, e.g.
0x28FF009C
; for example, by executing this NppExec script:Before opening the compare view, the caret line background should be translucent:
Open the compare view; close it again.
The caret line background is now solid:
Problem code path
The
setNormalView
function uses a 24-bit BGR color mask that clears the top 8 alpha bits; it also sets theSC_LAYER_BASE
flag, which will cancel transparency effects in any case:comparePlus/src/NppHelpers.cpp
Lines 376 to 382 in 64a9ee4
This could be seen as a negative interaction with user scripts and other plugins that customize the caret line background. There's a least one case of a plugin developer thinking that the alpha channel was disappearing because of a bug in his own code.
Version
1.1
The text was updated successfully, but these errors were encountered: