Support to Dark Mode on Windows 10.

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
User avatar
DebugBSD
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Apr 30, 2020 6:15 am
Location: Madrid, Spain

Support to Dark Mode on Windows 10.

Post by DebugBSD » Thu Apr 30, 2020 6:54 am

Hi, good morning.

First of all, I'm so sorry if this is not the correct place to post this message, so feel free to change it wherever it should be or tell me where I should post in. I haven't seen any better place than this so, that's why I posted here.

The point is about how to enable Dark Mode on Windows 10 with wxWidgets. I've seen other posts in this forum about dark mode on Windows 10 and it seems that it's not supported right now, although maybe on the git repository. Just for Mac OS X. Into my windows I have changed to Dark Mode (Right Click with the mouse on the Desktop -> Personalization -> Colors) (you can see an example in the next image) and I've tested wxWidgets but there was not good luck. So, that's my question. Is about the status of Dark Mode on Windows with wxWidgets

I tried the current version which can be downloaded from the web page (which is 3.1.3) and I tried the version from the Git Repository (branch Master).
For the version of GitHub I followed the instructions to build it and I had some problems when I did git clone as requested by:

https://github.com/wxWidgets/wxWidgets/ ... DME-GIT.md

I had some problems about broken submodules. But finally I had to download every external dependency myself (for each breach) and I could built wxWidgets with all of the samples and demos. But there wasn't good luck too.

Maybe some fo you could help me with this problem.

Thank you so much anyway.
Attachments
Captura.png
Captura.png (12.96 KiB) Viewed 544 times

catalin
Moderator
Moderator
Posts: 1594
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Re: Support to Dark Mode on Windows 10.

Post by catalin » Thu Apr 30, 2020 9:09 am

Hi and welcome,

Maybe "Platform Related Issues" would have been a better category, but don't worry about it, any moderator can move it at any time.

I don't know much about dark mode in Windows, but as far as I remember, it does not apply in any way to win32 API, which was used to implement wxW MSW port. Such settings can only have effect on UWP/WinRT/WinUI apps. Currently there is no easy way to use these new features from win32, but MS did advertise that the upcoming WinUI 3.0 will include easy access to new features from win32 apps (and even without using XAML). Until then though, I'm afraid you're out of luck.

p.s. when building from git sources: https://www.wxwidgets.org/develop/code-repository/

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2572
Joined: Sun Jan 03, 2010 5:45 pm

Re: Support to Dark Mode on Windows 10.

Post by PB » Thu Apr 30, 2020 9:24 am

I will just add the link to the "the master thread" for Dark Mode (lack of) support on Windows
viewtopic.php?f=23&t=45869

I have never even heard of WinUI 3 but looking at it, it seems that adding its support to wxWidgets would be a major undertaking (i.e., a whole new toolkit) and maybe locked to using MSVC as the compiler.

And am I missing something or is WinUI 3 really based on Chromium? EDIT: No, fortunately it seems it is not.

User avatar
DebugBSD
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Apr 30, 2020 6:15 am
Location: Madrid, Spain

Re: Support to Dark Mode on Windows 10.

Post by DebugBSD » Thu Apr 30, 2020 9:31 am

Hi catalin!

Thank you so much for your answer.

Regarding to the problem when cloning the repository, I attach an image to show yo the current problem.

Thanks!
Attachments
Captura2.png
Captura2.png (21.69 KiB) Viewed 520 times

User avatar
DebugBSD
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Apr 30, 2020 6:15 am
Location: Madrid, Spain

Re: Support to Dark Mode on Windows 10.

Post by DebugBSD » Thu Apr 30, 2020 9:37 am

PB wrote:
Thu Apr 30, 2020 9:24 am
I will just add "the master link" for Dark Mode support on Win10
viewtopic.php?f=23&t=45869

I have never even heard of WinUI 3 but looking at it, it seems that adding its support to wxWidgets would be a major undertaking (i.e., a whole new toolkit) and maybe locked to using MSVC as the compiler.

And am I missing something or is WinUI 3 really based on Chromium? EDIT: No, fortunately it seems it is not.
Yeah! I had read that post, but, that was one year ago more or less. I had thought that maybe there was an advance.

Thanks anyway

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2572
Joined: Sun Jan 03, 2010 5:45 pm

Re: Support to Dark Mode on Windows 10.

Post by PB » Thu Apr 30, 2020 11:44 am

DebugBSD wrote:
Thu Apr 30, 2020 9:37 am
Yeah! I had read that post, but, that was one year ago more or less. I had thought that maybe there was an advance.
Actually, that thread was updated just a couple weeks ago, stating that nothing has changed since the thread was created.

Additionally, I believe that an ongoing issue is best kept in a single thread; instead of creating new ones which ultimately only decreases signal-to-noise ratio for the topic.

Post Reply