cm_SwitchDarkMode is not permanent for me ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
KozakMak
Senior Member
Senior Member
Posts: 481
Joined: 2021-05-24, 12:39 UTC
Location: UA

cm_SwitchDarkMode is not permanent for me ?

Post by *KozakMak »

OS theme is light (white).

1. I click button cm_SwitchDarkMode - TC theme switched to dark mode
2. restart TC
3. TC theme auto-switched to normal

how to make permanent cm_SwitchDarkMode and keep it after TC restart?
OS: Win10 | TC: latest x64
User avatar
white
Power Member
Power Member
Posts: 5780
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: make permanent cm_SwitchDarkMode

Post by *white »

Not confirmed. Are you using an older version of Total Commander?
KozakMak
Senior Member
Senior Member
Posts: 481
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: make permanent cm_SwitchDarkMode

Post by *KozakMak »

hm... strange. on win11 its working correct, but i remember that on win10 it was like i describe
will need to be tested again
OS: Win10 | TC: latest x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6968
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: make permanent cm_SwitchDarkMode

Post by *Horst.Epp »

Switch to Dark mode under
Configuration / Color
Dark mode "Always enabled"
Apply, Ok
Restart TC.
If this is not working, your Wincmd.ini is not writable or defect.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
KozakMak
Senior Member
Senior Member
Posts: 481
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: make permanent cm_SwitchDarkMode

Post by *KozakMak »

I found the reason:

Code: Select all

[Configuration]
DarkMode=1
OS: Win10 | TC: latest x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6968
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: make permanent cm_SwitchDarkMode

Post by *Horst.Epp »

KozakMak wrote: 2023-11-14, 08:56 UTC I found the reason:

Code: Select all

[Configuration]
DarkMode=1
Should be 2
You have chosen the wrong entry under Dark mode.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.55 RC1 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50471
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: make permanent cm_SwitchDarkMode

Post by *ghisler(Author) »

cm_SwitchDarkMode is temporary when the option "Only when enabled for Windows 10 apps" is set in
Configuration - Options - Color.
This allows to temporarily switch to the other mode without breaking the automatic mode changes with the system.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5780
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: make permanent cm_SwitchDarkMode

Post by *white »

ghisler(Author) wrote: 2023-11-14, 16:39 UTC cm_SwitchDarkMode is temporary when the option "Only when enabled for Windows 10 apps" is set in
Configuration - Options - Color.
This allows to temporarily switch to the other mode without breaking the automatic mode changes with the system.
Perhaps it is helpful to add something to the Help. Would it be an improvement to change:
(Help - Dark<->Normal) wrote: Dark<->Normal

Allows you to quickly switch between dark and normal mode. In dark mode, Total Commander uses dark colors that can be changed under
Configuration - Options - Color - Others - Dark mode.
In normal mode, on the other hand, it uses the colors of the normal Windows theme.

The dark mode is activated in Windows XP and newer. Only Windows 10 1809 and newer supports it directly. It is simulated in older versions of Windows.
To activate the dark mode for Windows 95, 98, ME, NT4, and 2000, you have to enter the following line in wincmd.ini under [Configuration]:
ForceDarkModeOptions=1
to:
Dark<->Normal

The menu option Configuration/Dark<->Normal allows you to quickly switch between dark and normal mode. The change is permanent unless Total Commander is configured to automatically use dark mode whenever Windows color mode is set to dark mode.

In dark mode, Total Commander uses dark colors that can be changed under:
Configuration - Options - Color - Others - Dark mode.
In normal mode, on the other hand, it uses the colors of the normal Windows theme.

The dark mode is only activated on Windows XP and newer. To activate the dark mode for Windows 95, 98, ME, NT4, and 2000, you have to enter the following line in wincmd.ini under [Configuration]:
ForceDarkModeOptions=1

Windows 10, version 1809 and newer support dark mode for various GUI elements. On older Windows versions, Total Commander simulates the dark mode.
:?:
Post Reply