-
Notifications
You must be signed in to change notification settings - Fork 50
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
[Question] How to make menu items dark #8
Comments
IIRC, C# is not using native menu. It uses it's own menu, so dark menu has no effects on it. Here is a related answer: https://stackoverflow.com/a/10672152/6911112 |
As I said, I am using the Now the only "bright" thing left is the menu bar itself, which can't be made dark (as discussed in #1) |
Sorry I misunderstood you. |
Yeah, owner drawing is probably the best strategy for having a dark menu bar, at least until Microsoft adds one natively in the future. |
As far as I understand, the only semi-solution is to install an unsigned theme on your computer that will force item menu to be dark (what works in my case), which is not directly related to new Windows dark mode, it need to be improved, as jonaskohl said. |
I try to do this to make the menu of Unity Editor be dark,but it doesnt work. using System; public class DarkModeMenu
enum PreferredAppMode
} |
First of all: Sorry, I'm not very proficient with Win32 or C++ in general.
As the code is almost completely uncommented, how are the menu popup items in the top menu bar being set to dark? I found out that it has something to do with
_SetPreferredAppMode
(or_AllowDarkModeForApp
for older versions), but when I try to implement this in my C# app using p/invoke, it does not make menus dark (and yes, I'm usingMainMenu
and notMenuStrip
). Sorry if this is the wrong place to ask.Also, is it possible for you to add detailed comments to the code so it can be understood more easily how to integrate dark mode in one's own app?
The text was updated successfully, but these errors were encountered: