|
8 | 8 | xmlns:wd="clr-namespace:WPFDevelopers.Net40"> |
9 | 9 | <converts:ObjectNullToVisibilityConverter x:Key="ObjectNullToVisibilityConverter" /> |
10 | 10 | <Style BasedOn="{x:Null}" TargetType="{x:Type wd:Window}"> |
11 | | - <Setter Property="Foreground" Value="{DynamicResource WD.RegularTextSolidColorBrush}" /> |
12 | | - <Setter Property="Background" Value="{DynamicResource WD.BackgroundSolidColorBrush}" /> |
13 | | - <Setter Property="BorderBrush" Value="{DynamicResource WD.WindowBorderBrushSolidColorBrush}" /> |
14 | | - <Setter Property="TitleBackground" Value="{DynamicResource WD.WindowBorderBrushSolidColorBrush}" /> |
| 11 | + <Setter Property="Foreground" Value="{DynamicResource WD.RegularTextBrush}" /> |
| 12 | + <Setter Property="Background" Value="{DynamicResource WD.BackgroundBrush}" /> |
| 13 | + <Setter Property="BorderBrush" Value="{DynamicResource WD.WindowBorderBrush}" /> |
| 14 | + <Setter Property="TitleBackground" Value="{DynamicResource WD.WindowBorderBrush}" /> |
15 | 15 | <Setter Property="IsTabStop" Value="False" /> |
16 | 16 | <Setter Property="BorderThickness" Value="1" /> |
17 | 17 | <Setter Property="SnapsToDevicePixels" Value="True" /> |
18 | 18 | <Setter Property="UseLayoutRounding" Value="True" /> |
19 | 19 | <Setter Property="TextOptions.TextFormattingMode" Value="Ideal" /> |
20 | 20 | <Setter Property="WindowStyle" Value="None" /> |
21 | | - <Setter Property="MaxHeight" Value="{x:Static SystemParameters.MaximizedPrimaryScreenHeight}" /> |
22 | | - <Setter Property="FontFamily" Value="{DynamicResource WD.NormalFontFamily}" /> |
| 21 | + <Setter Property="FontFamily" Value="{DynamicResource WD.FontFamily}" /> |
23 | 22 | <Setter Property="shell:WindowChrome.WindowChrome"> |
24 | 23 | <Setter.Value> |
25 | 24 | <shell:WindowChrome CaptionHeight="{Binding TitleHeight, RelativeSource={RelativeSource AncestorType=wd:Window}}" GlassFrameThickness="0,0,0,.1" /> |
|
70 | 69 | VerticalAlignment="Center" |
71 | 70 | Content="{TemplateBinding Title}" |
72 | 71 | FontSize="{DynamicResource {x:Static SystemFonts.CaptionFontSizeKey}}" |
73 | | - Foreground="{DynamicResource WD.WindowForegroundColorBrush}" |
| 72 | + Foreground="{DynamicResource WD.WindowTextBrush}" |
74 | 73 | IsTabStop="False" /> |
75 | 74 | </StackPanel> |
76 | 75 | <StackPanel |
|
93 | 92 | Height="1" |
94 | 93 | Margin="0,7,0,0" |
95 | 94 | VerticalAlignment="Bottom" |
96 | | - Fill="{DynamicResource WD.WindowForegroundColorBrush}" /> |
| 95 | + Fill="{DynamicResource WD.WindowTextBrush}" /> |
97 | 96 | </Grid> |
98 | 97 | </Button> |
99 | 98 | <Button |
|
110 | 109 | HorizontalAlignment="Center" |
111 | 110 | VerticalAlignment="Center" |
112 | 111 | Data="{DynamicResource WD.WindowMaximizeGeometry}" |
113 | | - Fill="{DynamicResource WD.WindowForegroundColorBrush}" |
| 112 | + Fill="{DynamicResource WD.WindowTextBrush}" |
114 | 113 | Stretch="Uniform" |
115 | 114 | UseLayoutRounding="False" /> |
116 | 115 | </Grid> |
|
130 | 129 | HorizontalAlignment="Center" |
131 | 130 | VerticalAlignment="Center" |
132 | 131 | Data="{DynamicResource WD.WindowRestoreGeometry}" |
133 | | - Fill="{DynamicResource WD.WindowForegroundColorBrush}" |
| 132 | + Fill="{DynamicResource WD.WindowTextBrush}" |
134 | 133 | Stretch="Uniform" |
135 | 134 | UseLayoutRounding="False" /> |
136 | 135 | </Grid> |
|
149 | 148 | HorizontalAlignment="Center" |
150 | 149 | VerticalAlignment="Center" |
151 | 150 | Data="{DynamicResource WD.WindowCloseGeometry}" |
152 | | - Fill="{DynamicResource WD.WindowForegroundColorBrush}" |
| 151 | + Fill="{DynamicResource WD.WindowTextBrush}" |
153 | 152 | Stretch="Uniform" /> |
154 | 153 | </Button> |
155 | 154 | </StackPanel> |
|
183 | 182 | Margin="6,0" |
184 | 183 | VerticalAlignment="Center" |
185 | 184 | FontSize="{DynamicResource WD.TitleFontSize}" |
186 | | - Foreground="{DynamicResource WD.WindowForegroundColorBrush}" |
| 185 | + Foreground="{DynamicResource WD.WindowTextBrush}" |
187 | 186 | Text="{TemplateBinding Title}" /> |
188 | 187 | <StackPanel |
189 | 188 | Grid.Column="2" |
|
205 | 204 | Height="1" |
206 | 205 | Margin="0,7,0,0" |
207 | 206 | VerticalAlignment="Bottom" |
208 | | - Fill="{DynamicResource WD.WindowForegroundColorBrush}" /> |
| 207 | + Fill="{DynamicResource WD.WindowTextBrush}" /> |
209 | 208 | </Grid> |
210 | 209 | </Button> |
211 | 210 | <Button |
|
222 | 221 | HorizontalAlignment="Center" |
223 | 222 | VerticalAlignment="Center" |
224 | 223 | Data="{DynamicResource WD.WindowMaximizeGeometry}" |
225 | | - Fill="{DynamicResource WD.WindowForegroundColorBrush}" |
| 224 | + Fill="{DynamicResource WD.WindowTextBrush}" |
226 | 225 | Stretch="Uniform" |
227 | 226 | UseLayoutRounding="False" /> |
228 | 227 | </Grid> |
|
242 | 241 | HorizontalAlignment="Center" |
243 | 242 | VerticalAlignment="Center" |
244 | 243 | Data="{DynamicResource WD.WindowRestoreGeometry}" |
245 | | - Fill="{DynamicResource WD.WindowForegroundColorBrush}" |
| 244 | + Fill="{DynamicResource WD.WindowTextBrush}" |
246 | 245 | Stretch="Uniform" |
247 | 246 | UseLayoutRounding="False" /> |
248 | 247 | </Grid> |
|
261 | 260 | HorizontalAlignment="Center" |
262 | 261 | VerticalAlignment="Center" |
263 | 262 | Data="{DynamicResource WD.WindowCloseGeometry}" |
264 | | - Fill="{DynamicResource WD.WindowForegroundColorBrush}" |
| 263 | + Fill="{DynamicResource WD.WindowTextBrush}" |
265 | 264 | Stretch="Uniform" /> |
266 | 265 | </Button> |
267 | 266 | </StackPanel> |
|
305 | 304 | <Setter TargetName="PART_GridChrome" Property="Visibility" Value="Collapsed" /> |
306 | 305 | <Setter TargetName="PART_TitleToolBar" Property="Visibility" Value="Visible" /> |
307 | 306 | </Trigger> |
308 | | - |
309 | 307 | <MultiTrigger> |
310 | 308 | <MultiTrigger.Conditions> |
311 | 309 | <Condition Property="ResizeMode" Value="CanResizeWithGrip" /> |
|
0 commit comments