Unofficial Nextion/TJC User Forum

Simple tool for coloring your icons

Hello everyone,

I recently implemented a dark mode in my Nextion project. This required me to recreate all icons in the new color theme. Doing this manually costs a lot of time. And if the result doesn’t look good - well you have to do all the work again.
For this reason I created a little python command line tool that does the job within seconds. Specify a folder with input files, one for the output files, and get your new icon set without any manual work.

The big limitation is that this only works if you have two colors (plus grading between those two colors). This script can’t recolor photos. However, I guess I’m not the only one who has icons that can be processed in this way.

Available here: https://github.com/MMMZZZZ/IconColoringHelper
Edit: In the meantime I added example pictures to the readme so you can see how it actually looks.

Kind regards,
Max

2 Likes

This forum is in no way affiliated with NEXTION®, ITEAD STUDIO®, TJC®, or anyone else really. All product names, logos, and brands are property of their respective owners. All company, product, and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement from the respective rights holder(s).