-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dark Mode: Weird Icon Highlighting on Windows 11 #10510
Comments
I use both Windows 10 and Linux on a dual-boot machine - when I switched to Linux and ran Notepad++ on Wine (emulating Windows 10), the same issue occurs |
On windows 10 it's working fine, but on windows 11 the same problem occurs. |
Additionally blue/red floppy disc icons before filenames are not shown. |
That is a separate issue |
@WildByDesign |
@donho Absolutely.
|
@thomassmith311 @AlsDev-Sbin |
Sorry, didn't see the message. Debug info when running on Wine: Notepad++ v8.1.4 (32-bit) |
Notepad++ v8.1.4 (64-bit) Ps. in the |
still happening in Notepad++ v8.1.5 (64-bit) |
@ozone10 @adzm If I recall correctly, both of you are the most familiar with the dark mode code. This is happening on Windows 11 and only with dark mode enabled. Light mode displays the icon highlighting correctly. Do either of you know what part of the dark mode code could be causing this? Clearly, Microsoft has made some changes with Windows 11 that are causing this conflict with Npp dark mode. |
Just got Windows 11, and saw these unpleasant stuffs: I'll see what can I do about it. |
Notepad++ dark mode works fine under Microsft Windows 7, 8, 8.1 & 10. Under Windows 11 while Notepad++ being switched into dark mode, the hightlighting (background) of toolbar's hot-track icons remains in light mode. Hence this workaround to remedy Notepad++ dark mode visual glitchy due to the bug of Windows 11. Fix notepad-plus-plus#10510
* Workaround Microsoft dark mode API bug of Windows 11 Notepad++ dark mode works fine under Microsft Windows 7, 8, 8.1 & 10. Under Windows 11 while Notepad++ being switched into dark mode, the hightlighting (background) of toolbar's hot-track icons remains in light mode. Hence this workaround to remedy Notepad++ dark mode visual glitchy due to the bug of Windows 11. Fix notepad-plus-plus#10510 * Make Notepad++ remains the current behaviour under Windows 10 and older OS
Check the code, it's the bug from Microsoft Windows 11 with no doubt. |
@lilalien |
I have recently done some more research into this issue. It seems to affect programs that utilize win32-darkmode such as Notepad++, Explorer++ and also LibreOffice. Possibly more programs that I am not aware of. I dug into the aero.msstyles file from Windows 10 and Windows 11 and see that Microsoft made the change to the Toolbar (class) BUTTON (part) image that is used to highlight the toolbar buttons. Microsoft made that image a much lighter/brighter blue which is why it looks so terrible. I have fixed this by simply editing my aero.msstyles file and replacing a single image and it fixed Notepad++, Explorer++ and LibreOffice for me an it's beautiful now. However, getting users to patch their msstyles and uxtheme is not a logical fix. I am not a programmer. But what I am wondering is:
The only one that matches the same size and specifications is DarkMode::Toolbar (class) BUTTON (part) image. But I am not a programmer and have no idea if that is a possibility or not. |
Details:
The current version of Notepad++ (in Dark Mode) shows a weird highlighting for the selected icons and also icons when the mouse hovers over. The icon highlighting in Light Mode looks proper on Windows 11. Therefore, this icon highlighting issue only seems to affect Dark Mode.
Screenshot:
The text was updated successfully, but these errors were encountered: