BlueMystical / Dark-Mode-Forms

Apply Dark Mode to all Controls in a Form [WinForms]
GNU General Public License v3.0
111 stars 15 forks source link

Is Messenger dialogue always dark? #31

Closed kachnitata closed 4 months ago

kachnitata commented 4 months ago

hi, I recently replaced MessageBoxes in my app with Messenger but then I found that they are always dark-themed, even when Windows is currently switched to the light theme. Is there a way to make Messenger theme-aware?

BlueMystical commented 4 months ago

hi, Not at all, Messenger should take the Windows Color Mode. This is on Clear Mode:

image

Show me how are you implementing it and i may help you to find the problem.

kachnitata commented 4 months ago

I will have to investigate. It was reported by a colleague who never used any dark theme and all looked normal except for the Messenger windows. I saw his screenshots.

kachnitata commented 4 months ago

ok, part of the mystery solved.

-In all the app's forms I am using if(GlobalAppState.isThemeEnabled) _ = new DarkModeCS(this, false);

where GlobalAppState.isThemeEnabledis a bool property that is set in user's profile and because his profile has it set to false, all the forms look "normal" i.e. light. but I did not modify Messenger so it does not use the same setting to enable/disable themes..

-the user does not have the app installed locally, instead he is using it via Citrix remote desktop. So it is possible that Citrix is set to Dark theme even when the user is not aware of it... I myself have no access to that server so we will have to collaborate with him and explore.

so I guess we can close this ticket. Even if any problems remain, the title here would be misleading and I would report them separately.