From 3c06d89b2ae837b74bff39390130251bf7fa54f4 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 22 Apr 2024 05:33:45 +0200 Subject: [PATCH] Fix wrong display of DarkMode on the 2nd monitor --- PowerEditor/src/WinControls/Preference/preferenceDlg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp index 7d22740c1dc4..003ffdfe8ba0 100644 --- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp +++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp @@ -1538,6 +1538,7 @@ intptr_t CALLBACK DarkModeSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARA _pHotEdgeColorPicker->init(_hInst, _hSelf); _pDisabledEdgeColorPicker->init(_hInst, _hSelf); + DPIManagerV2::setDpi(_hSelf); const int cpDynamicalSize = DPIManagerV2::scale(25); move2CtrlLeft(IDD_CUSTOMIZED_COLOR1_STATIC, _pPureBackgroundColorPicker->getHSelf(), cpDynamicalSize, cpDynamicalSize);