Skip to content
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

Avoid hardcoded font properties #14088

Merged
merged 4 commits into from
Jan 4, 2024
Merged

Avoid hardcoded font properties #14088

merged 4 commits into from
Jan 4, 2024

Conversation

maxkatz6
Copy link
Member

@maxkatz6 maxkatz6 commented Jan 3, 2024

What does the pull request do?

  1. Removes FontSize setters from everywhere where it can be inherted.
  2. Removes TemplateBinding to the FontSize, as it is, in fact, inheritable anyway.
  3. Improves Calendar styling a little bit.

After this PR, only Calendar + CalendarDatePicker, TabControl + TabStrip and Tooltip redefine FontSize in their own way. But all of them now have resources that can be overwritten.

What is the current behavior?

Redefining Window.FontSize does pretty much nothing, even though it's an inherited property.

Breaking changes

Possibly styling breaking changes. If anybody relied on previously "broken" behavior.
Should go to 11.1, but not backported.

Fixed issues

Fixes #7540

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0043272-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 requested a review from a team January 3, 2024 03:13
@maxkatz6 maxkatz6 added this pull request to the merge queue Jan 4, 2024
Merged via the queue into master with commit 38e8399 Jan 4, 2024
7 checks passed
@maxkatz6 maxkatz6 deleted the avoid-hardcoded-font-size branch January 4, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement - allow application-wide change to default Fluent fontsize?
3 participants