How about a dark GUI for TC?
Moderators: white, Hacker, petermad, Stefan2
Re: How about a dark GUI for TC?
I honestly can't remember how Delphi (still using it, right?) does this, as it's been at least 15 years for me. I'm sure it's moved on to, well, something.
But in C# and WinForms it's pretty easy to change the colours of a control. In webtech-based desktop applications, it's not only easy, it's amazing. And there's probably loads of other toolkits that can do custom colouring.
If your toolkit can't do this, maybe it's beginning to be time to be looking at something else after all these years. Not just for darkmode, but for any kind of drawing that makes the program a little bit easier on the eyes. Because let's be honest, TC is not exactly a super appealing 2019-era-looking program anymore.
And as further encouragement: the Android version is totally darkmode. Brilliant
Totally different thing, I know, but just saying because it's still also TC.
But in C# and WinForms it's pretty easy to change the colours of a control. In webtech-based desktop applications, it's not only easy, it's amazing. And there's probably loads of other toolkits that can do custom colouring.
If your toolkit can't do this, maybe it's beginning to be time to be looking at something else after all these years. Not just for darkmode, but for any kind of drawing that makes the program a little bit easier on the eyes. Because let's be honest, TC is not exactly a super appealing 2019-era-looking program anymore.
And as further encouragement: the Android version is totally darkmode. Brilliant
Totally different thing, I know, but just saying because it's still also TC.
Total Commander 11 on Windows 10
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: How about a dark GUI for TC?
TC uses standard Windows controls with theme support enabled via MANIFEST resource. To my knowledge, there is no function to change the color of themed elements of desktop programs.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: How about a dark GUI for TC?
There are many examples of apps using dark UI when dark theme is enabled. Like Chrome for instance.
I think TC is very mature feature-wise and maybe should focus on UI overhaul in the next releases.
I think TC is very mature feature-wise and maybe should focus on UI overhaul in the next releases.
Re: How about a dark GUI for TC?
Support focus on UI overhaul in future releases consistent with priority decisions.
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Re: How about a dark GUI for TC?
This is how my Total Commander looks with dark panels.
Image: https://tweakers.net/ext/f/xFICMnl5fotFkfxZm8U2gwZ3/full.png
Image: https://tweakers.net/ext/f/xFICMnl5fotFkfxZm8U2gwZ3/full.png
Re: How about a dark GUI for TC?
2CAP-Team
It's nothing new. This topic is about consistent colour change of other GUI elements.
It's nothing new. This topic is about consistent colour change of other GUI elements.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: How about a dark GUI for TC?
Microsoft has not yet added dark mode support for desktop program themes, only for the Windows 8/10 apps.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: How about a dark GUI for TC?
We have explorer in dark theme.. as of version 1809
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: How about a dark GUI for TC?
Only the title bar and toolbar are dark - the file panel is still black on white, at least here...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: How about a dark GUI for TC?
I'm currently working on dark mode. With Windows 10 1903, it's now possible to make the title bar and scrollbar dark, the only thinks I couldn't make dark in the main window and dialog boxes on older Windows versions.
The only remaining thing I can't make dark is the right click context menus (except when making them owner drawn). I can do this for my own context menus like the directory hotlists, but not for the Windows context menu, which can contain owner drawn items from 3rd party Explorer extensions.
The Explorer on Windows 10 1903 does support a dark context menu! Any idea how it does it? My internet searches didn't lead to any clues.
The only remaining thing I can't make dark is the right click context menus (except when making them owner drawn). I can do this for my own context menus like the directory hotlists, but not for the Windows context menu, which can contain owner drawn items from 3rd party Explorer extensions.
The Explorer on Windows 10 1903 does support a dark context menu! Any idea how it does it? My internet searches didn't lead to any clues.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: How about a dark GUI for TC?
There is a darkmode sample on github which has a few check conditions depending on which build is installed:
https://github.com/ysc3839/win32-darkmode/tree/master/win32-darkmode
DarkMode.h contains the mentioned checks. Maybe there is something you forgot to set?
HTH
CoolWater
https://github.com/ysc3839/win32-darkmode/tree/master/win32-darkmode
DarkMode.h contains the mentioned checks. Maybe there is something you forgot to set?
HTH
CoolWater
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: How about a dark GUI for TC?
Thanks, I figured it out - I have to call AllowDarkModeForApp BEFORE creating a window. Otherwise that window gets a black title, but all the context menus are still light gray.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: How about a dark GUI for TC?
That's nice to hear Although it's interessting, since DarkMode.h says that AllowDarkModeForApp was removed before build no. 18334. The new function is SetPreferredAppMode.
Regards,
CoolWater
Regards,
CoolWater
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: How about a dark GUI for TC?
They use the same numeric function value, just that the older takes a boolean (on/off) value, the latter takes a numeric value.
Unfortunately there is still a problem: If I change the mode between light and dark, everything can be changed except for the context menus - they only change color when I close and re-open TC. However, it works correctly when I change the mode in Windows itself and AllowDarkModeForApp is set to use the Windows setting. This means that there will be no toggle button for this option for the TC buttonbar.
Unfortunately there is still a problem: If I change the mode between light and dark, everything can be changed except for the context menus - they only change color when I close and re-open TC. However, it works correctly when I change the mode in Windows itself and AllowDarkModeForApp is set to use the Windows setting. This means that there will be no toggle button for this option for the TC buttonbar.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: How about a dark GUI for TC?
I'm very happy to hear about the progress you are making Re: restarting TC for the context menu - for me personally it doesn't matter, TC would always be in dark mode I don't even use the button bar (I know, sacrilege!). Wishing you all the best!