White text on layers

Hi can you put white text on colored layers that have an high darkness?

Text colour is determined by the theme, and there is no reliable way to automatically set colours based on layer colour such that they still look good with the rest of the theme.

It would be cool if themes could provide some (Lua?) code to determine text colour based on arbitrary background colours, such as for layer colours like this, or could have an “auto” option that would let Aseprite pick the colour (which would be black or white based on background colour value) instead of specifying a specific one.