Skip to content

Commit

Permalink
[ContentDialog] Fix title margin & fontweight and corners (#4809)
Browse files Browse the repository at this point in the history
* Fix corners, title font weight and margin between title and top border

* Fix border stroke

* Change border to 24 again
  • Loading branch information
almedina-ms authored Apr 19, 2021
1 parent fdc7e87 commit d51d7a1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dev/CommonStyles/ContentDialog_themeresources.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<StaticResource x:Key="ContentDialogBackground" ResourceKey="SolidBackgroundFillColorBaseBrush" />
<StaticResource x:Key="ContentDialogSmokeFill" ResourceKey="SmokeFillColorDefaultBrush" />
<StaticResource x:Key="ContentDialogTopOverlay" ResourceKey="LayerFillColorAltBrush" />
<StaticResource x:Key="ContentDialogBorderBrush" ResourceKey="ControlElevationBorderBrush" />
<StaticResource x:Key="ContentDialogBorderBrush" ResourceKey="SurfaceStrokeColorDefault" />
<StaticResource x:Key="ContentDialogSeparatorBorderBrush" ResourceKey="CardStrokeColorDefaultBrush" />
<Thickness x:Key="ContentDialogBorderWidth">1</Thickness>
</ResourceDictionary>
Expand All @@ -30,7 +30,7 @@
<StaticResource x:Key="ContentDialogBackground" ResourceKey="SolidBackgroundFillColorBaseBrush" />
<StaticResource x:Key="ContentDialogSmokeFill" ResourceKey="SmokeFillColorDefaultBrush" />
<StaticResource x:Key="ContentDialogTopOverlay" ResourceKey="LayerFillColorAltBrush" />
<StaticResource x:Key="ContentDialogBorderBrush" ResourceKey="ControlElevationBorderBrush" />
<StaticResource x:Key="ContentDialogBorderBrush" ResourceKey="SurfaceStrokeColorDefault" />
<StaticResource x:Key="ContentDialogSeparatorBorderBrush" ResourceKey="CardStrokeColorDefaultBrush" />
<Thickness x:Key="ContentDialogBorderWidth">1</Thickness>
</ResourceDictionary>
Expand Down Expand Up @@ -205,7 +205,8 @@
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid x:Name="LayoutRoot">
<Grid x:Name="LayoutRoot"
contract7Present:CornerRadius="{ThemeResource OverlayCornerRadius}">
<Rectangle x:Name="SmokeLayerBackground" Fill="{ThemeResource ContentDialogSmokeFill}" />
<Border
x:Name="BackgroundElement"
Expand All @@ -225,7 +226,7 @@
<Border.RenderTransform>
<ScaleTransform x:Name="ScaleTransform" />
</Border.RenderTransform>
<Grid x:Name="DialogSpace">
<Grid x:Name="DialogSpace" contract7Present:CornerRadius="{ThemeResource OverlayCornerRadius}">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
Expand All @@ -252,7 +253,7 @@
ContentTemplate="{TemplateBinding TitleTemplate}"
FontSize="20"
FontFamily="XamlAutoFontFamily"
FontWeight="Normal"
FontWeight="SemiBold"
Foreground="{TemplateBinding Foreground}"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Expand Down

0 comments on commit d51d7a1

Please sign in to comment.