Fix incosistent key accelerator cue for groupbox in dark mode
Fix #13597, close #13598pull/13604/head
parent
80b34f0adf
commit
c585a1ab08
|
@ -1313,6 +1313,11 @@ namespace NppDarkMode
|
|||
|
||||
DWORD textFlags = isCenter ? DT_CENTER : DT_LEFT;
|
||||
|
||||
if(::SendMessage(hwnd, WM_QUERYUISTATE, 0, 0) != NULL)
|
||||
{
|
||||
textFlags |= DT_HIDEPREFIX;
|
||||
}
|
||||
|
||||
DrawThemeTextEx(buttonData.hTheme, hdc, BP_GROUPBOX, iStateID, szText, -1, textFlags | DT_SINGLELINE, &rcText, &dtto);
|
||||
}
|
||||
|
||||
|
|
|
@ -294,6 +294,16 @@ intptr_t CALLBACK RunDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
case WM_CHANGEUISTATE:
|
||||
{
|
||||
if (NppDarkMode::isEnabled() && !NppDarkMode::isWindows11())
|
||||
{
|
||||
redrawDlgItem(IDC_MAINTEXT_STATIC);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
case WM_COMMAND:
|
||||
{
|
||||
switch (wParam)
|
||||
|
|
|
@ -103,6 +103,16 @@ intptr_t CALLBACK RunMacroDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM l
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
case WM_CHANGEUISTATE:
|
||||
{
|
||||
if (NppDarkMode::isEnabled() && !NppDarkMode::isWindows11())
|
||||
{
|
||||
redrawDlgItem(IDC_MACRO2RUN_STATIC);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
case WM_COMMAND:
|
||||
{
|
||||
switch (wParam)
|
||||
|
|
Loading…
Reference in New Issue