News for hackers. Stuff that matters.
Re:Which colour scheme is better? by stephc_int13 on Sunday September 27, 2020 @07:10PM (#24610984)
I do use two different color schemes depending on ambiant light.

Dark background during the night, and light background during the day, in most cases.

As simple as that.

I wish my text editor would switch automatically and I might write a script to do that at some point, but this is a minor annoyance.

Re:Which colour scheme is better? by cmbell715 on Sunday September 27, 2020 @09:25PM (#24611938)
I know VS Code has a way to do it depending on window color scheme. Not sure if it is supported in Linux, but it is in Windows and MacOS. If your overall OS theme auto-changes based on time of day (or if you manually switch between light and dark mode whenever), VS Code will adjust as well.

In the settings turn on `window.autoDetectColorScheme: true` then select a theme for each: `workbench.preferredLightColorTheme` & `workbench.preferredDarkColorTheme`

Re:Which colour scheme is better? by gombosg on Monday September 28, 2020 @04:13AM (#24614220)
No, it's not supported on Linux due to this Chromium bug [1]. For example, GNOME automatically switches themes via an extension [2], and most apps like Firefox honor that setting. But not for Electron apps, at least not yet.

It would be great, since my personal preference is also light theme during the day, dark at night.

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=998903

[2] https://extensions.gnome.org/extension/2236/night-theme-swit...

Re:Which colour scheme is better? by saagarjha on Monday September 28, 2020 @04:40AM (#24614405)
I do this too; I have everything on a script too to ensure that it transitions when the OS does.