Ah, I see.
- material:
- and box mode:
You may need to tweak some 9-slice values.
I do realise this is not a direct answer to your question, but rather the means to achieving a more nuanced effect. It that may fit the bill, especially if you want to retain more control. You mentioned a UI-heavy scenario - the earlier you embrace materials, the better, imho.