dark mode based by hours

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
giulia
Senior Member
Senior Member
Posts: 303
Joined: 2013-09-14, 05:33 UTC
Location: Europe

dark mode based by hours

Post by *giulia »

Hi
could be added to enable dark mode in specific hours , for example from 9pm to 8am ?
could be a nice new feature

thanks
love Total Commander , best file manager ever made
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: dark mode based by hours

Post by *Gral »

Could be even better to adjust to Sunrise/Sunset and astronomical/nautical/civil twilight.
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: dark mode based by hours

Post by *Usher »

2Gral
Could be even more better to observe solar eclipses and meteorological info about cloudy weather and storms ;-P
But they all are LOCAL data, based on geographic coordinates, which aren't normally available in PC.

On the contrary, date, time and time zone are set by PC user and provided GLOBALLY for all apps by the operation system.
Andrzej P. Wozniak
Polish subforum moderator
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: dark mode based by hours

Post by *hi5 »

A simple script/task to restart TC at specific times with a command line parameter (/M=) would already suffice - either automatically or ask user to confirm.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: dark mode based by hours

Post by *Gral »

2Usher
Although there was some humor in my earlier post, I am not entirely against such a solution. However, take into account that the setting of the time zone and the country is in most cases completely sufficient for a relatively precise setting of twilight, but not sufficient for providing weather forecasts. (yeah i can see there's some irony here too)
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: dark mode based by hours

Post by *Gral »

hi5 wrote: 2021-06-10, 18:10 UTC A simple script/task to restart TC at specific times with a command line parameter (/M=) would already suffice - either automatically or ask user to confirm.
No need for restart - it's enough to send "cm_SwitchDarkmode" to TC at specific time e.g. by AHK script.
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: dark mode based by hours

Post by *Usher »

Gral wrote: 2021-06-10, 18:16 UTC 2Usher
However, take into account that the setting of the time zone and the country is in most cases completely sufficient for a relatively precise setting of twilight
No, it isn't. Neither in Poland nor in Chile, for example. It depends on latitude: https://en.wikipedia.org/wiki/Twilight#Duration

Example in details:
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: dark mode based by hours

Post by *ghisler(Author) »

Could someone try the following tool:
https://github.com/Armin2208/Windows-Auto-Night-Mode

It allows to switch the Windows 10 dark mode at sunrise and sunset.
If it works well, it should be sufficient to set the dark mode option in Total Commander to
"Only when enabled for Windows 10 apps".
Author of Total Commander
https://www.ghisler.com
giulia
Senior Member
Senior Member
Posts: 303
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: dark mode based by hours

Post by *giulia »

ghisler(Author) wrote: 2021-06-10, 20:34 UTC Could someone try the following tool:
https://github.com/Armin2208/Windows-Auto-Night-Mode

It allows to switch the Windows 10 dark mode at sunrise and sunset.
If it works well, it should be sufficient to set the dark mode option in Total Commander to
"Only when enabled for Windows 10 apps".
hi
yes ,but some users still run tc under windows 7 or windows 8
thanks
love Total Commander , best file manager ever made
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: dark mode based by hours

Post by *hi5 »

Gral wrote: 2021-06-10, 18:17 UTCNo need for restart - it's enough to send "cm_SwitchDarkmode" to TC at specific time e.g. by AHK script.
:D Indeed
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Thany
Senior Member
Senior Member
Posts: 292
Joined: 2003-09-30, 09:20 UTC
Location: Netherlands

Re: dark mode based by hours

Post by *Thany »

There should be a setting that has three options:
* Dark mode
* Light mode
* Listen to OS setting, if OS has such setting

Option 3 is the default for most programs.

Also light mode should not be called Normal, because dark mode is nothing abnormal.
Total Commander 11 on Windows 10
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: dark mode based by hours

Post by *petermad »

2Thany
* Listen to OS setting, if OS has such setting
I think that it is what the option at "Configuration" -> "Options..." -> "Color" -> "Dark mode" -> "Only when enabled for Windows 10 apps" does?

See: https://madsenworld.dk/tcmd/darkmodewin10.png
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: dark mode based by hours

Post by *ghisler(Author) »

Yes, that's exactly the idea of that third option.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: dark mode based by hours

Post by *Usher »

Thany wrote: 2021-06-15, 13:35 UTCAlso light mode should not be called Normal, because dark mode is nothing abnormal.
Wrong. There is no special light mode in TC. You can call default mode "standard", if you don't like "normal". You can also call it "classic" as some people still use color palettes similar to Norton Commander or DOS Navigator - and they definitely are NOT light.
What is more, by default some colors in TC dark mode are calculated basing on standard mode colors, which is NOT normal. Dark mode is a slave, standard mode is a master in this solution.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: dark mode based by hours

Post by *ghisler(Author) »

It's not called "Light" because it uses the default theme, which may also be a custom dark theme installed by the user.
Author of Total Commander
https://www.ghisler.com
Post Reply