Something I build quite some time ago to create dark mode icons for the pyrevit UI, from the README:
Script and exe to recolor icons for usage on pyRevit toolbars. pyRevit requires icon.dark.png to leverage the Revit dark theme.
- Command line app built in python
- Tested on python 3.12
- Required
pip install pillow
- The powershell (ps1) allows you to build the installer