Open plotti opened 3 years ago
You can also theme an individual button if you give it a unique object ID, or a class of buttons with a class ID. See the docs here:
https://pygame-gui.readthedocs.io/en/latest/theme_guide.html
And the ObjectID class here:
Which you can pass into a button something like this:
By convention, object ID strings begin with a # and class ID strings begin with a @ symbol.
These class and object IDs can be used in theme file blocks just like the element IDs and the precedence order goes object ID-> class ID-> element ID. So the theming parameters in any object ID block for an element will be used if they exist, if there are none it will look for any class ID parameters, and then for any element ID parameters - before finally using defaults if none of the other classes are found.
i simply want to change the color of some buttons why leaving others the same. i know i can theme all in the json file, but what about individual ones?