Fix regression of tab background highlighting issue after drag&drop

Fix #16559
This commit is contained in:
Don Ho 2025-05-18 15:35:25 +02:00
parent 393815b99f
commit 140b11a835

View File

@ -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