Disable dark mode in disasm window, and the scrollbar hack

This commit is contained in:
Henrik Rydgård
2023-01-12 01:05:06 +01:00
parent 3c0a5e4c4c
commit b4a91dbce5
2 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -11,7 +11,7 @@
#include "Windows/Debugger/Debugger_Disasm.h"
#include "Windows/Debugger/Debugger_VFPUDlg.h"
#include "Windows/Debugger/DebuggerShared.h"
#include "Windows/W32Util/DarkMode.h"
// #include "Windows/W32Util/DarkMode.h"
#include "Windows/main.h"
#include "Windows/Debugger/CtrlRegisterList.h"
@@ -349,7 +349,7 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
switch(message)
{
case WM_INITDIALOG:
DarkModeInitDialog(m_hDlg);
// DarkModeInitDialog(m_hDlg);
return TRUE;
case WM_NOTIFY:
@@ -689,7 +689,7 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
}
break;
}
return DarkModeDlgProc(m_hDlg, message, wParam, lParam);
return 0; // DarkModeDlgProc(m_hDlg, message, wParam, lParam);
}
void CDisasm::updateThreadLabel(bool clear)
+3
View File
@@ -81,6 +81,9 @@ void AllowDarkModeForApp(bool allow)
void FixDarkScrollBar()
{
// Disable this, doesn't look good.
return;
HMODULE hComctl = LoadLibraryExW(L"comctl32.dll", nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32);
if (hComctl)
{