Open repraze opened 1 year ago
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
Does MenuItem.SetTemplateIcon
help for you here?
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