Skip to content

Commit

Permalink
Disable dark mode in disasm window, and the scrollbar hack
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 12, 2023
1 parent 3c0a5e4 commit b4a91db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Windows/Debugger/Debugger_Disasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions Windows/W32Util/DarkMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b4a91db

Please sign in to comment.