Fix a small regression due to c3daf4448d

Close #11378
This commit is contained in:
Ashfaaq18 2022-03-12 14:31:55 +05:30 committed by Don HO
parent d6b736aac0
commit 4e97469d8f
1 changed files with 6 additions and 1 deletions

View File

@ -131,7 +131,12 @@ intptr_t CALLBACK RegExtDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM lPa
)
{
if (nppParam.isAdmin())
SetTextColor((HDC)wParam, NppDarkMode::getTextColor());
{
if (NppDarkMode::isEnabled())
SetTextColor((HDC)wParam, NppDarkMode::getTextColor());
else
SetTextColor((HDC)wParam, RGB(0, 0, 0));
}
else
SetTextColor((HDC)wParam, NppDarkMode::getDisabledTextColor());
}