Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

system dialogs missing dark mode, not always centered, sometimes offscreen

Open King-of-Kings-980 opened this issue 1 year ago • 4 comments

System: WIN11 22H2 X64 Notepad3: 6.23.203.2 X64

The issue only applies to the default system dialogs (Save unsaved changes, "(?)"-dialogs in search and replace) and not the ones that have the "Don't display this message again." checkbox.

  1. Basically, the dark mode does not apply to some of the system dialogs and it would be nice if it did.
  2. If you have two monitors and one is larger than the other, those dialogs do not appear at the center on the window on the secondary monitor and sometimes they even appear on the wrong monitor.
  3. If you move the window partially off screen, those dialogs will also appear off screen unlike the custom dialogs (with checkboxes).

King-of-Kings-980 avatar Jan 02 '24 05:01 King-of-Kings-980

Supporting Win10 Dark-Mode for this good old Win32 UI application (Notepad2/3) uses an undocumented hack (https://github.com/ysc3839/win32-darkmode). We did not found a solution yet to show Win32 system dialogs using Dark-Mode theme. You can switch to a Dark-Mode dialog for "Save unsaved changes" by switching to Menu -> Settings -> Mute Message Beeps, which has some minor disadvantages compared to corresponding system dialog.

RaiKoHoff avatar Jan 10 '24 21:01 RaiKoHoff

Thank you, that fixes all problems with that dialog although that setting doesn't affect the "(?)"-dialogs in search and replace. You could replace those with your own ones too if that's not too much work.

And one more minor detail: That space above the buttons is a bit too big: 07-22-50_208359 Something like this would look better: 07-22-50_208359_

King-of-Kings-980 avatar Jan 11 '24 06:01 King-of-Kings-980

Yes, this is one of the mentioned disadvantages (beside avoiding the message beep): System dialog can adapt dynamically to long file paths, custom dialog not, so the space is a compromise for displaying longer paths ...

RaiKoHoff avatar Jan 11 '24 17:01 RaiKoHoff

I see, thanks.

King-of-Kings-980 avatar Jan 11 '24 18:01 King-of-Kings-980