Fix UDL Styler UI not load bg & fg color completely

Fix the info of background or/and forground transparency being ignored while open Styler dialog in UDL dialog.
This commit is contained in:
Don HO 2021-10-31 01:48:22 +02:00
parent 91a7cc6d39
commit 0fd8cecf8b
1 changed files with 2 additions and 0 deletions

View File

@ -1776,8 +1776,10 @@ INT_PTR CALLBACK StylerDlg::dlgProc(HWND hwnd, UINT message, WPARAM wParam, LPAR
dlg->_pFgColour->init(dlg->_hInst, hwnd);
dlg->_pFgColour->setColour(style._fgColor);
dlg->_pFgColour->setEnabled((style._colorStyle & COLORSTYLE_FOREGROUND) != 0);
dlg->_pBgColour->init(dlg->_hInst, hwnd);
dlg->_pBgColour->setColour(style._bgColor);
dlg->_pBgColour->setEnabled((style._colorStyle & COLORSTYLE_BACKGROUND) != 0);
int w = nppParam._dpiManager.scaleX(25);
int h = nppParam._dpiManager.scaleY(25);