mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 23:05:13 +02:00
Fix regression of tab background highlighting issue after drag&drop
Fix #16559
This commit is contained in:
parent
393815b99f
commit
140b11a835
@ -1535,7 +1535,7 @@ void TabBarPlus::drawItem(DRAWITEMSTRUCT* pDrawItemStruct, bool isDarkMode)
|
|||||||
brushColour = colorActiveBg;
|
brushColour = colorActiveBg;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_currentHoverTabItem == nTab && brushColour != colorActiveBg) // hover on a "darker" inactive tab
|
if (_currentHoverTabItem == nTab && brushColour != colorActiveBg && !_isDragging) // hover on a "darker" inactive tab
|
||||||
{
|
{
|
||||||
HLSColour hls(brushColour);
|
HLSColour hls(brushColour);
|
||||||
brushColour = hls.toRGB4DarkModeWithTuning(15, 0); // make it lighter slightly
|
brushColour = hls.toRGB4DarkModeWithTuning(15, 0); // make it lighter slightly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user