Nightlight is an extension for VS Code. It automatically switches between a dark and light theme based on the position of the sun or on your own terms.
When it's getting dark, you might want to protect your eyes and switch automatically to a darker theme. Yet, when the sun comes up, a lighter theme is more easy on the eyes. Nightlight automatically switches when the sun rises or sets.
Don't like the sunrise and sunset times? Leave them empty (null) and provide a manual day and night time.
Use the keyboard shortcut CTRL+ALT+N to switch between day and night theme. And if you prefer a different shortcut, you can of course change it through settings.
Nightlight can be configured by setting the following settings:
nightlight.nightTheme
: The theme to be displayed when it's nightnightlight.nightIconTheme
: The icon theme to be displayed when it's night (default = your current icon theme)nightlight.dayTheme
: The theme to be displayed when it's daynightlight.dayIconTheme
: The icon theme to be displayed when it's day (default = your current icon theme)nightlight.dayTimeStart
: The time (format HH:mm) at which day time starts (if no GPS coordinates are configured)nightlight.dayTimeEnd
: The time (format HH:mm) at which day time ends (if no GPS coordinates are configured)nightlight.gpsLong
: The GPS longitude coordinate. This is used to determine the sunrise and sunset locally on your device.nightlight.gpsLat
: The GPS latitude coordinate. This is used to determine the sunrise and sunset locally on your device.
- Feature #1: Switch file icon themes as well
- Bug fix: improved time calculations
- Bug fix: when the time to switch themes was missed because your computer was in standby mode, it would only switch themes when a new window was opened.
- New feature: toggle between day and night theme using keyboard shortcut ctrl+alt+n (or of course set your own through settings).
- Bug fix: when the user had switched to the day/night theme manually, opening a new window would set it back.
Initial release of Nightlight
- Thanks to the creators of the SunCalc library