|
7 | 7 |
|
8 | 8 | <!-- Popup Color -->
|
9 | 9 | <Style x:Key="PageBackgroundColor" TargetType="{x:Type Window}">
|
10 |
| - <Setter Property="Background" Value="{StaticResource Color05B}" /> |
11 |
| - <Setter Property="Foreground" Value="{StaticResource Color05B}" /> |
| 10 | + <Setter Property="Background" Value="{DynamicResource Color05B}" /> |
| 11 | + <Setter Property="Foreground" Value="{DynamicResource Color05B}" /> |
12 | 12 | </Style>
|
13 | 13 |
|
14 | 14 | <!-- Setting Window -->
|
15 | 15 | <Style x:Key="PageTitle" TargetType="{x:Type TextBlock}">
|
16 |
| - <Setter Property="Foreground" Value="{StaticResource Color05B}" /> |
| 16 | + <Setter Property="Foreground" Value="{DynamicResource Color05B}" /> |
17 | 17 | </Style>
|
18 | 18 | <Style x:Key="Glyph" TargetType="{x:Type TextBlock}">
|
19 | 19 | <Setter Property="Grid.Column" Value="0" />
|
20 | 20 | <Setter Property="Margin" Value="24,0,16,0" />
|
21 | 21 | <Setter Property="VerticalAlignment" Value="Center" />
|
22 | 22 | <Setter Property="FontSize" Value="20" />
|
23 | 23 | <Setter Property="FontFamily" Value="/Resources/#Segoe Fluent Icons" />
|
24 |
| - <Setter Property="Foreground" Value="{StaticResource Color05B}" /> |
| 24 | + <Setter Property="Foreground" Value="{DynamicResource Color05B}" /> |
25 | 25 | </Style>
|
26 | 26 | <Style x:Key="TabMenu" TargetType="{x:Type TextBlock}">
|
27 | 27 | <Setter Property="FontSize" Value="14" />
|
28 | 28 | <Setter Property="FontFamily" Value="Segoe UI" />
|
29 | 29 | <Setter Property="VerticalAlignment" Value="Center" />
|
30 |
| - <Setter Property="Foreground" Value="{StaticResource Color05B}" /> |
| 30 | + <Setter Property="Foreground" Value="{DynamicResource Color05B}" /> |
31 | 31 | </Style>
|
32 | 32 | <Style x:Key="TabMenuIcon" TargetType="{x:Type TextBlock}">
|
33 | 33 | <Setter Property="Margin" Value="0,0,12,0" />
|
34 | 34 | <Setter Property="FontSize" Value="16" />
|
35 | 35 | <Setter Property="VerticalAlignment" Value="Center" />
|
36 | 36 | <Setter Property="FontFamily" Value="/Resources/#Segoe Fluent Icons" />
|
37 |
| - <Setter Property="Foreground" Value="{StaticResource Color05B}" /> |
| 37 | + <Setter Property="Foreground" Value="{DynamicResource Color05B}" /> |
38 | 38 | </Style>
|
39 | 39 | <Style x:Key="SettingSeparatorStyle" TargetType="{x:Type Separator}">
|
40 |
| - <Setter Property="BorderBrush" Value="{StaticResource Color03B}" /> |
| 40 | + <Setter Property="BorderBrush" Value="{DynamicResource Color03B}" /> |
41 | 41 | </Style>
|
42 | 42 |
|
43 | 43 | <!-- Title Bar -->
|
|
53 | 53 | </Style>
|
54 | 54 |
|
55 | 55 | <Style x:Key="TitleBarButtonStyle" TargetType="Button">
|
56 |
| - <Setter Property="Foreground" Value="{StaticResource Color05B}" /> |
| 56 | + <Setter Property="Foreground" Value="{DynamicResource Color05B}" /> |
57 | 57 | <Setter Property="Padding" Value="0" />
|
58 | 58 | <Setter Property="WindowChrome.IsHitTestVisibleInChrome" Value="True" />
|
59 | 59 | <Setter Property="IsTabStop" Value="False" />
|
|
62 | 62 | <ControlTemplate TargetType="{x:Type Button}">
|
63 | 63 | <Border
|
64 | 64 | x:Name="border"
|
65 |
| - Background="{StaticResource Color01B}" |
| 65 | + Background="{DynamicResource Color01B}" |
66 | 66 | BorderThickness="0"
|
67 | 67 | SnapsToDevicePixels="true">
|
68 | 68 | <ContentPresenter
|
|
75 | 75 | </Border>
|
76 | 76 | <ControlTemplate.Triggers>
|
77 | 77 | <Trigger Property="IsMouseOver" Value="true">
|
78 |
| - <Setter TargetName="border" Property="Background" Value="{StaticResource Color06B}" /> |
| 78 | + <Setter TargetName="border" Property="Background" Value="{DynamicResource Color06B}" /> |
79 | 79 | </Trigger>
|
80 | 80 | <Trigger Property="IsPressed" Value="true">
|
81 |
| - <Setter TargetName="border" Property="Background" Value="{StaticResource Color09B}" /> |
| 81 | + <Setter TargetName="border" Property="Background" Value="{DynamicResource Color09B}" /> |
82 | 82 | </Trigger>
|
83 | 83 | </ControlTemplate.Triggers>
|
84 | 84 | </ControlTemplate>
|
|
87 | 87 | </Style>
|
88 | 88 |
|
89 | 89 | <Style x:Key="TitleBarCloseButtonStyle" TargetType="Button">
|
90 |
| - <Setter Property="Foreground" Value="{StaticResource Color05B}" /> |
| 90 | + <Setter Property="Foreground" Value="{DynamicResource Color05B}" /> |
91 | 91 | <Setter Property="Padding" Value="0" />
|
92 | 92 | <Setter Property="WindowChrome.IsHitTestVisibleInChrome" Value="True" />
|
93 | 93 | <Setter Property="IsTabStop" Value="False" />
|
|
109 | 109 | </Border>
|
110 | 110 | <ControlTemplate.Triggers>
|
111 | 111 | <Trigger Property="IsMouseOver" Value="true">
|
112 |
| - <Setter TargetName="border" Property="Background" Value="{StaticResource Color10B}" /> |
| 112 | + <Setter TargetName="border" Property="Background" Value="{DynamicResource Color10B}" /> |
113 | 113 | <Setter Property="Foreground" Value="{DynamicResource MouseOverWindowCloseButtonForegroundBrush}" />
|
114 | 114 | </Trigger>
|
115 | 115 | <Trigger Property="IsPressed" Value="true">
|
116 |
| - <Setter TargetName="border" Property="Background" Value="{StaticResource Color11B}" /> |
| 116 | + <Setter TargetName="border" Property="Background" Value="{DynamicResource Color11B}" /> |
117 | 117 | <Setter Property="Foreground" Value="{DynamicResource MouseOverWindowCloseButtonForegroundBrush}" />
|
118 | 118 | </Trigger>
|
119 | 119 | </ControlTemplate.Triggers>
|
|
1394 | 1394 | <ControlTemplate TargetType="Button">
|
1395 | 1395 | <Border
|
1396 | 1396 | x:Name="Background"
|
1397 |
| - Background="{StaticResource ButtonBackgroundColor}" |
1398 |
| - BorderBrush="{StaticResource ButtonOutBorder}" |
1399 |
| - BorderThickness="{StaticResource CustomButtonOutBorderThickness}" |
| 1397 | + Background="{DynamicResource ButtonBackgroundColor}" |
| 1398 | + BorderBrush="{DynamicResource ButtonOutBorder}" |
| 1399 | + BorderThickness="{DynamicResource CustomButtonOutBorderThickness}" |
1400 | 1400 | CornerRadius="4"
|
1401 | 1401 | SnapsToDevicePixels="True">
|
1402 | 1402 | <Border
|
1403 | 1403 | x:Name="Border"
|
1404 | 1404 | Padding="{TemplateBinding Padding}"
|
1405 |
| - BorderBrush="{StaticResource ButtonInsideBorder}" |
1406 |
| - BorderThickness="{StaticResource CustomButtonInsideBorderThickness}" |
| 1405 | + BorderBrush="{DynamicResource ButtonInsideBorder}" |
| 1406 | + BorderThickness="{DynamicResource CustomButtonInsideBorderThickness}" |
1407 | 1407 | CornerRadius="4">
|
1408 | 1408 | <ContentPresenter
|
1409 | 1409 | x:Name="ContentPresenter"
|
|
1416 | 1416 | </Border>
|
1417 | 1417 | <ControlTemplate.Triggers>
|
1418 | 1418 | <Trigger Property="IsMouseOver" Value="True">
|
1419 |
| - <Setter TargetName="Background" Property="Background" Value="{StaticResource ButtonMouseOver}" /> |
1420 |
| - <Setter TargetName="Background" Property="BorderThickness" Value="{StaticResource CustomButtonOutBorderThickness}" /> |
1421 |
| - <Setter TargetName="Background" Property="BorderBrush" Value="{StaticResource ButtonOutBorder}" /> |
1422 |
| - <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ButtonInsideBorder}" /> |
1423 |
| - <Setter TargetName="Border" Property="BorderThickness" Value="{StaticResource CustomButtonInsideBorderThickness}" /> |
| 1419 | + <Setter TargetName="Background" Property="Background" Value="{DynamicResource ButtonMouseOver}" /> |
| 1420 | + <Setter TargetName="Background" Property="BorderThickness" Value="{DynamicResource CustomButtonOutBorderThickness}" /> |
| 1421 | + <Setter TargetName="Background" Property="BorderBrush" Value="{DynamicResource ButtonOutBorder}" /> |
| 1422 | + <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource ButtonInsideBorder}" /> |
| 1423 | + <Setter TargetName="Border" Property="BorderThickness" Value="{DynamicResource CustomButtonInsideBorderThickness}" /> |
1424 | 1424 | </Trigger>
|
1425 | 1425 | <Trigger Property="IsPressed" Value="True">
|
1426 |
| - <Setter TargetName="Background" Property="Background" Value="{StaticResource ButtonMousePressed}" /> |
1427 |
| - <Setter TargetName="Background" Property="BorderThickness" Value="{StaticResource PressedCustomButtonOutBorderThickness}" /> |
1428 |
| - <Setter TargetName="Background" Property="BorderBrush" Value="{StaticResource ButtonMousePressedInsideBorder}" /> |
1429 |
| - <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ButtonInsideMouseOverBorder}" /> |
1430 |
| - <Setter TargetName="Border" Property="BorderThickness" Value="{StaticResource PressedCustomButtonInsideBorderThickness}" /> |
1431 |
| - <Setter TargetName="ContentPresenter" Property="TextElement.Foreground" Value="{StaticResource ButtonMousePressedText}" /> |
| 1426 | + <Setter TargetName="Background" Property="Background" Value="{DynamicResource ButtonMousePressed}" /> |
| 1427 | + <Setter TargetName="Background" Property="BorderThickness" Value="{DynamicResource PressedCustomButtonOutBorderThickness}" /> |
| 1428 | + <Setter TargetName="Background" Property="BorderBrush" Value="{DynamicResource ButtonMousePressedInsideBorder}" /> |
| 1429 | + <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource ButtonInsideMouseOverBorder}" /> |
| 1430 | + <Setter TargetName="Border" Property="BorderThickness" Value="{DynamicResource PressedCustomButtonInsideBorderThickness}" /> |
| 1431 | + <Setter TargetName="ContentPresenter" Property="TextElement.Foreground" Value="{DynamicResource ButtonMousePressedText}" /> |
1432 | 1432 | </Trigger>
|
1433 | 1433 | <Trigger Property="IsEnabled" Value="False">
|
1434 |
| - <Setter TargetName="Background" Property="Background" Value="{StaticResource ButtonBackgroundDisabledColor}" /> |
1435 |
| - <Setter TargetName="Background" Property="BorderThickness" Value="{StaticResource DisabledCustomButtonOutBorderThickness}" /> |
1436 |
| - <Setter TargetName="Background" Property="BorderBrush" Value="{StaticResource ButtonOutBorder}" /> |
1437 |
| - <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ButtonInsideBorderDisabled}" /> |
1438 |
| - <Setter TargetName="Border" Property="BorderThickness" Value="{StaticResource DisabledCustomButtonInsideBorderThickness}" /> |
1439 |
| - <Setter TargetName="ContentPresenter" Property="TextElement.Foreground" Value="{StaticResource ButtonDisabledText}" /> |
| 1434 | + <Setter TargetName="Background" Property="Background" Value="{DynamicResource ButtonBackgroundDisabledColor}" /> |
| 1435 | + <Setter TargetName="Background" Property="BorderThickness" Value="{DynamicResource DisabledCustomButtonOutBorderThickness}" /> |
| 1436 | + <Setter TargetName="Background" Property="BorderBrush" Value="{DynamicResource ButtonOutBorder}" /> |
| 1437 | + <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource ButtonInsideBorderDisabled}" /> |
| 1438 | + <Setter TargetName="Border" Property="BorderThickness" Value="{DynamicResource DisabledCustomButtonInsideBorderThickness}" /> |
| 1439 | + <Setter TargetName="ContentPresenter" Property="TextElement.Foreground" Value="{DynamicResource ButtonDisabledText}" /> |
1440 | 1440 | </Trigger>
|
1441 | 1441 | </ControlTemplate.Triggers>
|
1442 | 1442 | </ControlTemplate>
|
|
2606 | 2606 | ui:ControlHelper.CornerRadius="4"
|
2607 | 2607 | Content="{StaticResource ChevronUp}"
|
2608 | 2608 | FontSize="{TemplateBinding FontSize}"
|
2609 |
| - Style="{StaticResource NumberBoxSpinButtonStyle}" |
| 2609 | + Style="{DynamicResource NumberBoxSpinButtonStyle}" |
2610 | 2610 | Visibility="Collapsed" />
|
2611 | 2611 |
|
2612 | 2612 | <RepeatButton
|
|
2616 | 2616 | ui:ControlHelper.CornerRadius="4"
|
2617 | 2617 | Content="{StaticResource ChevronDown}"
|
2618 | 2618 | FontSize="{TemplateBinding FontSize}"
|
2619 |
| - Style="{StaticResource NumberBoxSpinButtonStyle}" |
| 2619 | + Style="{DynamicResource NumberBoxSpinButtonStyle}" |
2620 | 2620 | Visibility="Collapsed" />
|
2621 | 2621 |
|
2622 | 2622 | <ContentPresenter
|
|
2679 | 2679 | </Trigger>
|
2680 | 2680 | <!-- SpinButtonsPopup -->
|
2681 | 2681 | <Trigger Property="SpinButtonPlacementMode" Value="Compact">
|
2682 |
| - <Setter TargetName="InputBox" Property="Style" Value="{StaticResource NumberBoxTextBoxStyle}" /> |
| 2682 | + <Setter TargetName="InputBox" Property="Style" Value="{DynamicResource NumberBoxTextBoxStyle}" /> |
2683 | 2683 | </Trigger>
|
2684 | 2684 | </ControlTemplate.Triggers>
|
2685 | 2685 | </ControlTemplate>
|
|
0 commit comments