2020-02-13, 17:21
Hello
What i try to achive is a line underneath a Text with the exact length of the Text. As this seems not possible by default, my idea was to use a button with "auto" width, which holds the same Text as the label. to scale the texture to the exact text length. (which works.)
Now the Problem: I can easely center the text, but struggle to center the Button underneath, (which holds the Texture). my idea was to use <centerleft>50%</centerleft> to position the Button (But this seems to work only with a integer width).
Does may someone have a Idea how to solve this? Dont have to be the "Button aproach", just Looking for a solution to have a Text underlined with the exact label length.
reg.
What i try to achive is a line underneath a Text with the exact length of the Text. As this seems not possible by default, my idea was to use a button with "auto" width, which holds the same Text as the label. to scale the texture to the exact text length. (which works.)
Now the Problem: I can easely center the text, but struggle to center the Button underneath, (which holds the Texture). my idea was to use <centerleft>50%</centerleft> to position the Button (But this seems to work only with a integer width).
Does may someone have a Idea how to solve this? Dont have to be the "Button aproach", just Looking for a solution to have a Text underlined with the exact label length.
reg.