How to get text inside of a Button centered? #2450
Unanswered
rainerschoe
asked this question in
Q&A
Replies: 1 comment
-
Well I am also wondering this. There is no logical reason to NOT have the text centered in a button by default. The current left-justifying behaviour is extremely unexpected from standard UI elements. E: you can horizontally center the text with something like
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Text in Button Widget is always left aligned when button has a
min_size
.I tried to use LayoutJob like this:
but it lead to text being halfway out of the button.
Align::LEFT
andAlign::RIGHT
also are not doing what I expect here.Any help appreciated (I am new to egui :P )
Beta Was this translation helpful? Give feedback.
All reactions