mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
parent
f607044da0
commit
796b3a40b7
@ -1475,7 +1475,13 @@ void TabBarPlus::drawItem(DRAWITEMSTRUCT* pDrawItemStruct, bool isDarkMode)
|
||||
{
|
||||
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);
|
||||
::FillRect(hDC, &inactiveRect, hBrush);
|
||||
::DeleteObject(static_cast<HGDIOBJ>(hBrush));
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Loading…
x
Reference in New Issue
Block a user