Widget toolkit theming
I wanted to ask what would be the best way to implement themes for my C++/Xlib toolkit?
I definitely want to use vector graphics, probably SVG or Cairo.
About SVG, i wonder if the reading of image files from disk every time you redraw a widget would make it slow? And is it possible to have a few parts of an SVG image not scale up with image size? And how do you render an SVG onto an X Window?
And Cairo is implemented in the program itself, so the drawing code would somehow need to be pluggable. I wonder if a scripting language like Python not be too slow for this part?
What do you think is best, and how would you do it?
|