diff --git a/PowerEditor/src/MISC/RegExt/regExtDlg.cpp b/PowerEditor/src/MISC/RegExt/regExtDlg.cpp index c7a8fbbdb..090821c16 100644 --- a/PowerEditor/src/MISC/RegExt/regExtDlg.cpp +++ b/PowerEditor/src/MISC/RegExt/regExtDlg.cpp @@ -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()); }