From f65f00c63f377cfbcaf8c06f582438438f88285d Mon Sep 17 00:00:00 2001 From: Don Ho Date: Thu, 1 Jul 2021 13:56:47 +0200 Subject: [PATCH] Fix ASCII panel display problem in dark mode + light theme (default styler.xml) --- PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.cpp b/PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.cpp index 656af33cd..75cb1112b 100644 --- a/PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.cpp +++ b/PowerEditor/src/WinControls/AnsiCharPanel/ansiCharPanel.cpp @@ -124,7 +124,7 @@ INT_PTR CALLBACK AnsiCharPanel::run_dlgProc(UINT message, WPARAM wParam, LPARAM static bool becomeDarkMode = false; static bool becomeLightMode = false; HWND hHeader = ListView_GetHeader(_listView.getHSelf()); - if (NppDarkMode::isEnabled()) + if (NppDarkMode::isEnabled() && reinterpret_cast(lParam)->hwndFrom == hHeader) { if (!becomeDarkMode) {