Skip to content

Commit

Permalink
MahApps.Sizes.Font -> MahApps.Font.Size
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Dec 27, 2019
1 parent 089d4ae commit 0e111cf
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/MahApps.Metro/Styles/Fonts.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
<FontFamily x:Key="MahApps.Fonts.Family.Default.Mui">Segoe UI</FontFamily>
<FontFamily x:Key="MahApps.Fonts.Family.Fixed.Mui">Consolas</FontFamily>

<System:Double x:Key="MahApps.Sizes.Font.Default.Mui">13</System:Double>
<System:Double x:Key="MahApps.Sizes.Font.Fixed.Mui">13.333</System:Double>
<System:Double x:Key="MahApps.Sizes.Font.Small.Mui">11</System:Double>
<System:Double x:Key="MahApps.Font.Size.Default.Mui">13</System:Double>
<System:Double x:Key="MahApps.Font.Size.Fixed.Mui">13.333</System:Double>
<System:Double x:Key="MahApps.Font.Size.Small.Mui">11</System:Double>

</ResourceDictionary>
6 changes: 3 additions & 3 deletions src/MahApps.Metro/Styles/MUI/Calendar.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<ControlTemplate.Resources>
<DataTemplate x:Key="{x:Static CalendarItem.DayTitleTemplateResourceKey}">
<TextBlock x:Name="Text" FontWeight="Bold"
FontSize="{DynamicResource MahApps.Sizes.Font.Default.Mui}"
FontSize="{DynamicResource MahApps.Font.Size.Default.Mui}"
Foreground="{DynamicResource MahApps.Brushes.ItemText.Mui}"
HorizontalAlignment="Center"
Text="{Binding}"
Expand Down Expand Up @@ -154,7 +154,7 @@
<Style x:Key="MahApps.Styles.CalendarDayButton.Mui" TargetType="CalendarDayButton" >
<Setter Property="MinWidth" Value="5"/>
<Setter Property="MinHeight" Value="5"/>
<Setter Property="FontSize" Value="{DynamicResource MahApps.Sizes.Font.Default.Mui}"/>
<Setter Property="FontSize" Value="{DynamicResource MahApps.Font.Size.Default.Mui}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
Expand Down Expand Up @@ -218,7 +218,7 @@
<Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.ButtonText.Mui}" />
<Setter Property="MinWidth" Value="40"/>
<Setter Property="MinHeight" Value="42"/>
<Setter Property="FontSize" Value="{DynamicResource MahApps.Sizes.Font.Default.Mui}"/>
<Setter Property="FontSize" Value="{DynamicResource MahApps.Font.Size.Default.Mui}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
Expand Down
2 changes: 1 addition & 1 deletion src/MahApps.Metro/Styles/MUI/ContextMenu.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Style x:Key="MahApps.Styles.ContextMenu.Mui" TargetType="{x:Type ContextMenu}">
<Setter Property="FontFamily" Value="{DynamicResource MahApps.Fonts.Family.Default.Mui}"/>
<Setter Property="FontSize" Value="{DynamicResource MahApps.Sizes.Font.Default.Mui}" />
<Setter Property="FontSize" Value="{DynamicResource MahApps.Font.Size.Default.Mui}" />
<Setter Property="TextOptions.TextFormattingMode" Value="Display" />
<Setter Property="Background" Value="{DynamicResource MahApps.Brushes.WindowBackground.Mui}" />
<Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.ItemText.Mui}"/>
Expand Down
2 changes: 1 addition & 1 deletion src/MahApps.Metro/Styles/MUI/DataGrid.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
<Setter Property="BorderThickness" Value="0" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="FontFamily" Value="{DynamicResource MahApps.Fonts.Family.Default.Mui}" />
<Setter Property="FontSize" Value="{DynamicResource MahApps.Sizes.Font.Default.Mui}" />
<Setter Property="FontSize" Value="{DynamicResource MahApps.Font.Size.Default.Mui}" />
<Setter Property="Padding" Value="4,3,4,3"/>
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
Expand Down
6 changes: 3 additions & 3 deletions src/MahApps.Metro/Styles/MUI/TextBlock.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@

<Style x:Key="MahApps.Styles.TextBlock.Small.Mui" TargetType="TextBlock">
<Setter Property="FontFamily" Value="Segoe UI" />
<Setter Property="FontSize" Value="{DynamicResource MahApps.Sizes.Font.Small.Mui}"/>
<Setter Property="FontSize" Value="{DynamicResource MahApps.Font.Size.Small.Mui}"/>
<Setter Property="TextOptions.TextFormattingMode" Value="Display" />
</Style>

<Style x:Key="MahApps.Styles.TextBlock.Emphasis.Mui" TargetType="TextBlock">
<Setter Property="FontFamily" Value="Segoe UI" />
<Setter Property="FontSize" Value="{DynamicResource MahApps.Sizes.Font.Small.Mui}"/>
<Setter Property="FontSize" Value="{DynamicResource MahApps.Font.Size.Small.Mui}"/>
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="TextOptions.TextFormattingMode" Value="Display" />
</Style>

<Style x:Key="MahApps.Styles.TextBlock.Fixed.Mui" TargetType="TextBlock">
<Setter Property="FontFamily" Value="{DynamicResource MahApps.Fonts.Family.Fixed.Mui}" />
<Setter Property="FontSize" Value="{DynamicResource MahApps.Sizes.Font.Fixed.Mui}"/>
<Setter Property="FontSize" Value="{DynamicResource MahApps.Font.Size.Fixed.Mui}"/>
<Setter Property="TextOptions.TextFormattingMode" Value="Display" />
</Style>

Expand Down
2 changes: 1 addition & 1 deletion src/MahApps.Metro/Styles/MUI/Tooltip.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Setter Property="Background" Value="{DynamicResource MahApps.Brushes.WindowBackground.Mui}"/>
<Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.WindowText.Mui}"/>
<Setter Property="FontFamily" Value="{DynamicResource MahApps.Fonts.Family.Default.Mui}"/>
<Setter Property="FontSize" Value="{DynamicResource MahApps.Sizes.Font.Default.Mui}"/>
<Setter Property="FontSize" Value="{DynamicResource MahApps.Font.Size.Default.Mui}"/>
<Setter Property="FontStyle" Value="Normal"/>
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="Padding" Value="5,1,5,4"/>
Expand Down

0 comments on commit 0e111cf

Please sign in to comment.