Here’s a new tool for PDE to edit themes.
The idea came about because I had some free time over the past two weekends, and I was really frustrated with having to manually edit the theme.txt file for Processing themes.
So, I thought it would be useful to have an editing tool, with which you can instantly test your changes.
Here is the first beta version of this tool…
I’ve tested it on Windows and Linux from version 4.2 onwards, which is also the minimum requirement. The tool checks and will not run on versions below that.
It would be great if a few more people could test it and report any bugs or suggest improvements.
I’d also be interested to see if it runs smoothly on a Mac, as Mac sometimes yield unexpected results.
The documentation for the tool is currently limited due to time constraints.
So, here are some key points:
- Upon launching the tool via the Tools menu, it backs up the current theme.txt. If no theme.txt exists, it creates one from the current theme settings.
- When the
Testbutton is clicked, it applies the settings from the table to the theme.txt file and reloads the theme.
Revertbutton restores the settings from the backed-up theme.txt file made at the start.
- While I’m not 100% satisfied with the file approach, it was the easiest method given that Processing made the theme settings private in the code.
- Currently, there is no state check on the
Closebutton. If you close, you’re accepting the current theme.txt file.
- If you click on a label column cell for the code coloring (names with .token.) at the top of the table, it displays the affected keywords of the current mode, if any.
The tool is currently available in a beta phase at PThemeTool.
Thanks and Cheers,