-
Notifications
You must be signed in to change notification settings - Fork 89
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
Proper FontFamily setting #407
Comments
The default font is defined as a FontFamily resource name I tried creating resources with the same name in
Finally, I ended up defining several styles applied to TextBlock/TextBox/AccessText, like this:
|
How about Button font? it can't setting font like your example. |
I tried this, but did't work.
|
Yes, you need to target AccessText inside of a Button with a selector somewhat like this: |
Remove explicit FontFamily setters in styles, allowing to inherit font properly. Fix #407
Discussed in #406
Originally posted by PRNDA October 7, 2024
Hey everyone,
I want to replace the default font in Material Avalonia globally. I have googled around for a while, but nothing useful has been found.
The text was updated successfully, but these errors were encountered: