|
31 | 31 | </ResourceDictionary>
|
32 | 32 | </ResourceDictionary.ThemeDictionaries>
|
33 | 33 |
|
| 34 | + <x:Double x:Key="SystemControlMSEdgeNotificationDismissButtonSize">40</x:Double> |
| 35 | + <Thickness x:Key="SystemControlMSEdgeNotificationDismissButtonMargin">24,0,0,0</Thickness> |
| 36 | + <x:Double x:Key="SystemControlMSEdgeNotificationDismissButtonTranslate">18</x:Double> |
| 37 | + <VerticalAlignment x:Key="SystemControlMSEdgeNotificationDismissButtonVerticalAlignment">Center</VerticalAlignment> |
| 38 | + <Thickness x:Key="SystemControlMSEdgeNotificationButtonBorderThickness">2</Thickness> |
| 39 | + |
34 | 40 | <Style x:Key="DismissTextBlockButtonStyle"
|
35 | 41 | TargetType="ButtonBase">
|
36 | 42 | <Setter Property="Background" Value="{ThemeResource HyperlinkButtonBackground}" />
|
37 | 43 | <Setter Property="Foreground" Value="{ThemeResource ApplicationForegroundThemeBrush}" />
|
38 |
| - <Setter Property="Width" Value="40" /> |
39 |
| - <Setter Property="Height" Value="40" /> |
| 44 | + <Setter Property="Width" Value="{StaticResource SystemControlMSEdgeNotificationDismissButtonSize}" /> |
| 45 | + <Setter Property="Height" Value="{StaticResource SystemControlMSEdgeNotificationDismissButtonSize}" /> |
40 | 46 | <Setter Property="UseSystemFocusVisuals" Value="True" />
|
41 | 47 | <Setter Property="HighContrastAdjustment" Value="None" />
|
42 | 48 | <Setter Property="Template">
|
|
46 | 52 | Margin="{TemplateBinding Padding}"
|
47 | 53 | Background="{TemplateBinding Background}">
|
48 | 54 | <Border x:Name="TextBorder"
|
49 |
| - BorderBrush="{ThemeResource SystemControlMSEdgeNotificationButtonBorderBrush}" |
50 |
| - BorderThickness="2"> |
| 55 | + BorderThickness="{StaticResource SystemControlMSEdgeNotificationButtonBorderThickness}" |
| 56 | + BorderBrush="{ThemeResource SystemControlMSEdgeNotificationButtonBorderBrush}"> |
51 | 57 | <ContentPresenter x:Name="Text"
|
52 | 58 | HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
53 | 59 | VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
143 | 149 |
|
144 | 150 | <Button x:Name="PART_DismissButton"
|
145 | 151 | Grid.Column="1"
|
146 |
| - Margin="24,0,0,0" |
| 152 | + Margin="{StaticResource SystemControlMSEdgeNotificationDismissButtonMargin}" |
147 | 153 | AutomationProperties.Name="Dismiss"
|
148 | 154 | Content=""
|
149 | 155 | FontFamily="Segoe MDL2 Assets"
|
150 | 156 | FontSize="16"
|
| 157 | + VerticalAlignment="{StaticResource SystemControlMSEdgeNotificationDismissButtonVerticalAlignment}" |
151 | 158 | Style="{StaticResource DismissTextBlockButtonStyle}">
|
152 | 159 | <Button.RenderTransform>
|
153 | 160 | <TranslateTransform x:Name="DismissButtonTransform" X="18" />
|
|
0 commit comments