Toggle mode (themes) for multiple applications at the same time, quickly switching between light and dark mode.
Create a new AppTheme object for each application you want to register a theme for and add it to the THEMES list in settings.py.
Currently the theme paths are hardcoded so you'll have to at least change the paths for the present apps (VS Code and Windows Terminal).
Install the application with Pip. Make sure you are inside the project directory.
python3 -m pip install -e .
You should see something similar to
Installing collected packages: ThemeToggler
Running setup.py develop for ThemeToggler
Successfully installed ThemeToggler
python3 -m pip list
Package Version Location
------------ ------- -------------------------------------
pip 20.2.4
setuptools 47.1.0
ThemeToggler 1.1.0 /Users/magicandcode/Dev/theme-toggler
Once installed, you can run ThemeToggler from the terminal as a command
theme_toggler
Alternatively the application can be run as a Python module.
Navigate into the project directory and run the theme_toggler.py file as a module.
cd theme-toggler
python -m theme_toggler
Python installed via Microsoft Store doesn't have access to edit the Windows Registry. You need to download Python from python.org (and add it to
PATH) if you want to also toggle system mode.
cd theme-toggler
python3 -m theme_toggler
Currently you cannot toggle system mode for other platforms than Windows.
Createsetup.pyto run without specifyingpython/python3.- Add command line arguments.
- Implement configs with
.envfile.
- Python 3 (tested on 3.8, requires at least 3.6)
