How to center the text of a TabContainer's button with Tab Sizing set to Expand mode?

Godot Version

Godot v4.8-dev5

Question

I’m using the Tab Sizing → Expand mode for my TabContainer’s tab buttons so that they resize to fill the panel’s width. However, as shown in the image below, the tabs’ labels are aligned to the left.

I’d like to have the tabs’ labels centered within the panel, but I can’t seem to find an option or setting that allows me to do this.

image

I don’t think that’s natively possible to do in godot.
But you can make it look a bit better if you add “content margin - left” to your tab themes.