Skip to content
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 support for windows 11 #257

Open
repraze opened this issue Jul 31, 2023 · 2 comments
Open

Dark mode support for windows 11 #257

repraze opened this issue Jul 31, 2023 · 2 comments

Comments

@repraze
Copy link

repraze commented Jul 31, 2023

Windows has dark and light mode. Most menus follow system default. It would be great to support this. Potentially as a opt-in to not break other menus with incompatible icons?

Example with task manager

image

image

@repraze
Copy link
Author

repraze commented Aug 2, 2023

Implementation should be just an attribute to set True if the preference is there - found a reference to it in https://github.com/neutralinojs/neutralinojs/blob/843fd75e1f4d2766069ff461e25824a125800628/lib/webview/windows/darkmode.h#L62

Relevant API at https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/nf-dwmapi-dwmsetwindowattribute and value at https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute

@anacrolix
Copy link
Contributor

Does MenuItem.SetTemplateIcon help for you here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants