Fix a regression due to usage of double buffer (2nd part)
Fix black text background in Find dialog status bar
Regression introduced in 5b36e09
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15319#issuecomment-2177773329
Close #15320
pull/15327/head^2
parent
90762bbdda
commit
965e24859f
|
@ -4987,17 +4987,8 @@ void FindReplaceDlg::drawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
|
||||||
}
|
}
|
||||||
|
|
||||||
SetTextColor(lpDrawItemStruct->hDC, fgColor);
|
SetTextColor(lpDrawItemStruct->hDC, fgColor);
|
||||||
|
::SetBkMode(lpDrawItemStruct->hDC, TRANSPARENT);
|
||||||
|
|
||||||
COLORREF bgColor;
|
|
||||||
if (NppDarkMode::isEnabled())
|
|
||||||
{
|
|
||||||
bgColor = NppDarkMode::getBackgroundColor();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
bgColor = getCtrlBgColor(_statusBar.getHSelf());
|
|
||||||
}
|
|
||||||
::SetBkColor(lpDrawItemStruct->hDC, bgColor);
|
|
||||||
RECT rect{};
|
RECT rect{};
|
||||||
_statusBar.getClientRect(rect);
|
_statusBar.getClientRect(rect);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue