Open MG240 opened 1 year ago
This is a duplicate of #71 and it's currently known issue.
I've looked into those API calls and stuff, but it's no easy feat.
Even the windows implementation says, it's not like windows automatically helps you draw things inverted, but rather, the application needs to be built with dark theme in mind.
My first approach would be to make the menu dark and possibly the title bar, but this is pending and not priority at the moment.
Temporarily, I tried using MicaForEveryone by adding "Process Rule :JPEGView" to add Dark Titlebar & Mica Backdrop and it works. But JPEGView loses the theme after reopening.
Please take a look at this: https://github.com/ysc3839/win32-darkmode
I've tried and made a patch for jpegview: dark.patch.zip
Title bar and right-click menu worked in MainDlg, but FileOpenDialog didn't.
If anyone wanna try: JPEGView.x64.zip
Thanks for the initial work @oTnTh let me look into the patch.
Documentation:
https://learn.microsoft.com/windows/apps/desktop/modernize/apply-windows-themes https://learn.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute