Skip to content

Quickly toggle dark/light mode from the Windows taskbar notification area.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE.txt
Unknown
LICENSE.rtf
Notifications You must be signed in to change notification settings

danielgjackson/toggle-dark-light

Repository files navigation

Toggle Dark/Light Mode

Important: VS Code 1.89 has included some changes that have broken tracking the system theme and being able to temporarily override a single window with another theme -- see: issue #17.

Single click toggle between dark mode and light mode using an icon in the Windows taskbar notification area (system tray). This may be useful for anyone working under significantly changing background or reflected light levels.

Screenshot showing the application icon in the notification area

This is an open source (MIT License) application, and the project repository is at:

Installation

  1. Download the installer toggle.msi from:

  2. Double-click to run the downloaded installer. As Windows will not recognize the program, you may need to select More info / Run anyway. Follow the prompts to install the application.

  3. The application will run after installation (by default), and an icon for Toggle Dark/Light Mode will appear in the taskbar notification area (system tray). It might be in the Taskbar overflow menu behind the symbol (this can be changed in the Taskbar Settings).

Use

  1. Left-click the icon to immediately toggle dark/light mode.

  2. Use the shortcut key combination Win+Shift+D to toggle between dark and light mode.

  3. Right-click the icon for a menu:

    • Toggle Dark/Light Mode - Toggles between dark and light modes (same as left-clicking the icon).
    • Auto-Start - Toggles whether the executable will be automatically run when you log in.
    • Save Debug Info - This will prompt to save a text (.txt) file with debugging information.
    • About - Information about the program.
    • Exit - Stops the program and removes the icon. (If Auto-Start is enabled, it will start when you log-in again)

Advanced Use

You do not need to install the application, but instead just download and run the toggle.exe executable directly (i.e. as a portable app).

The executable takes command-line options and can be used to directly set the mode and optionally exit without remaining as an icon in the taskbar notification area, for example:

  • toggle /TOGGLE /EXIT
  • toggle /LIGHT /EXIT
  • toggle /DARK /EXIT