Skip to content

Commit

Permalink
feat: Update controls to match UWP default FontSize
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Feb 12, 2021
1 parent 7cd1bae commit cbf15ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public double FontSize
typeof(double),
typeof(ContentPresenter),
new FrameworkPropertyMetadata(
15.0,
14.0,
FrameworkPropertyMetadataOptions.Inherits,
(s, e) => ((ContentPresenter)s)?.OnFontSizeChanged((double)e.OldValue, (double)e.NewValue)
)
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Controls/Control/Control.cs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ public double FontSize
typeof(double),
typeof(Control),
new FrameworkPropertyMetadata(
15.0,
14.0,
FrameworkPropertyMetadataOptions.Inherits,
(s, e) => ((Control)s)?.OnFontSizeChanged((double)e.OldValue, (double)e.NewValue)
)
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Documents/TextElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public double FontSize
typeof(double),
typeof(TextElement),
new FrameworkPropertyMetadata(
defaultValue: 15.0,
defaultValue: 14.0,
options: FrameworkPropertyMetadataOptions.Inherits,
propertyChangedCallback: (s, e) => ((TextElement)s).OnFontSizeChanged()
)
Expand Down

0 comments on commit cbf15ec

Please sign in to comment.