Theme textures
Last updated
Last updated
Themes are used to define how a tooltip looks. They're an essential building component and as such are required for everything else to work. It all starts with the themes texture, which looks like this:
Tooltips consist of three parts; left, center and right. You can see all of them in the texture example above. The width of the texture is 6 pixels, which when divided by 3 (for all three parts) equates to 2 pixels per part. So the main rule when making custom themes, is to make their size divisible by three.
For example, it is possible to make a wider and more detailed tooltip by setting the width to 12, so we have 4 pixels to work with:
With that much space, we can create more complex shapes for the borders. Here's an example: