Fix new editing dialog not in dark mode

Fix https://community.notepad-plus-plus.org/topic/25478/notepad-v8-6-3-rc-2/3?_=1708095675232
This commit is contained in:
Don Ho 2024-02-16 15:59:30 +01:00
parent f2d66170fc
commit 250dfe0f8b
1 changed files with 20 additions and 0 deletions

View File

@ -1323,6 +1323,26 @@ intptr_t CALLBACK Editing2SubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARA
}
return TRUE;
case WM_CTLCOLOREDIT:
{
return NppDarkMode::onCtlColorSofter(reinterpret_cast<HDC>(wParam));
}
case WM_CTLCOLORDLG:
case WM_CTLCOLORSTATIC:
{
return NppDarkMode::onCtlColorDarker(reinterpret_cast<HDC>(wParam));
}
case WM_PRINTCLIENT:
{
if (NppDarkMode::isEnabled())
{
return TRUE;
}
break;
}
case WM_COMMAND:
{
NppParameters& nppParam = NppParameters::getInstance();