mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-26 23:34:44 +02:00
Fix updown control style not changing when toggling dark mode
Fix https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16548#issuecomment-2884419833, close #16553
This commit is contained in:
parent
5406b82fb4
commit
3548696bd7
@ -8606,14 +8606,16 @@ void Notepad_plus::refreshDarkMode(bool resetStyle)
|
|||||||
NppDarkMode::setDarkTitleBar(_pPublicInterface->getHSelf());
|
NppDarkMode::setDarkTitleBar(_pPublicInterface->getHSelf());
|
||||||
::SetWindowPos(_pPublicInterface->getHSelf(), nullptr, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
|
::SetWindowPos(_pPublicInterface->getHSelf(), nullptr, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
|
||||||
|
|
||||||
for (auto& docCont : _dockingManager.getContainerInfo())
|
for (const auto& docCont : _dockingManager.getContainerInfo())
|
||||||
{
|
{
|
||||||
|
NppDarkMode::autoThemeChildControls(docCont->getTabWnd()); // for updown child
|
||||||
|
|
||||||
auto hwndDocCont = docCont->getCaptionWnd();
|
auto hwndDocCont = docCont->getCaptionWnd();
|
||||||
NppDarkMode::setDarkTitleBar(hwndDocCont);
|
NppDarkMode::setDarkTitleBar(hwndDocCont);
|
||||||
::SetWindowPos(hwndDocCont, nullptr, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
|
::SetWindowPos(hwndDocCont, nullptr, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto& hwndDlg : _hModelessDlgs)
|
for (const auto& hwndDlg : _hModelessDlgs)
|
||||||
{
|
{
|
||||||
NppDarkMode::setDarkTitleBar(hwndDlg);
|
NppDarkMode::setDarkTitleBar(hwndDlg);
|
||||||
::SendMessage(hwndDlg, NPPM_INTERNAL_REFRESHDARKMODE, 0, 0);
|
::SendMessage(hwndDlg, NPPM_INTERNAL_REFRESHDARKMODE, 0, 0);
|
||||||
|
@ -666,6 +666,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara
|
|||||||
|
|
||||||
case NPPM_INTERNAL_REFRESHDARKMODE:
|
case NPPM_INTERNAL_REFRESHDARKMODE:
|
||||||
{
|
{
|
||||||
|
NppDarkMode::autoThemeChildControls(hwnd); // for updown child
|
||||||
NppDarkMode::setDarkTooltips(hwnd, NppDarkMode::ToolTipsType::tabbar);
|
NppDarkMode::setDarkTooltips(hwnd, NppDarkMode::ToolTipsType::tabbar);
|
||||||
setCloseBtnImageList();
|
setCloseBtnImageList();
|
||||||
setPinBtnImageList();
|
setPinBtnImageList();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user