-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable label font #774
Comments
I agree this makes sense, and a PR would be welcome; font should work the same as color and size. cc @futurepaul who has been thinking about this lately. |
I haven't tried anything out yet but ideally you can follow the example of the builder / setter pair we have for size and color. That way Label::new sets the font as |
edit: Looking into it, I think making KeyOrValue work is the best option. |
It would be great if labels could have configurable fonts. One of my projects needs labels with monospaced text, but I don't want all the text in the UI to be monospaced. From what I can tell this isn't possible right now since at the moment Label's
get_layout
gets the font name from the theme. Probably the most elegant solution would be anOption<String>
with the theme being used as the default if the font isNone
.The text was updated successfully, but these errors were encountered: