-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow checkbox's TextStyle modification #406
Comments
There are many widgets we want to change text styles and text color on. Adding modifiers for them all may be the wrong approach. An alternative is to instead set a new default in ui.style().override_text_style = Some(TextStyle::Monospace);
ui.checkbox(…);
ui.checkbox(…); What is the user story behind this? Why would one want to change the text style of only some checkboxes? PS: I think you linked to the wrong issue |
I don't like how the widgets have larger font than body text. It does not integrate well. Especially since I changed the
Your suggested solution would solve my problem. However, I wonder how complex a PR adding this would be. There are so many places where
Indeed. CSS implemented both solutions and I almost never use the element-specific one. However:
So why don't we add both solutions? We could even (crazy idea incoming) add non-required methods on the |
Feature request
Make it possible to change the
TextStyle
of checkboxes, so that there is a basic font size support before #56.Solution
Alternatives
Change the
TextStyle::Button
font size, but that would break other buttons.The text was updated successfully, but these errors were encountered: