|
|
@ -1476,6 +1476,12 @@ void TabBarPlus::drawItem(DRAWITEMSTRUCT* pDrawItemStruct, bool isDarkMode)
|
|
|
|
brushColour = colorActiveBg;
|
|
|
|
brushColour = colorActiveBg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_currentHoverTabItem == nTab && brushColour != colorActiveBg) // hover on a "darker" inactive tab
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
HLSColour hls(brushColour);
|
|
|
|
|
|
|
|
brushColour = hls.toRGB4DarkModWithTuning(15, 0); // make it lighter slightly
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
hBrush = ::CreateSolidBrush(brushColour);
|
|
|
|
hBrush = ::CreateSolidBrush(brushColour);
|
|
|
|
::FillRect(hDC, &inactiveRect, hBrush);
|
|
|
|
::FillRect(hDC, &inactiveRect, hBrush);
|
|
|
|
::DeleteObject(static_cast<HGDIOBJ>(hBrush));
|
|
|
|
::DeleteObject(static_cast<HGDIOBJ>(hBrush));
|
|
|
|