|
1 | 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
2 | 2 |
|
3 |
| - <ResourceDictionary.MergedDictionaries> |
4 |
| - <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/VS/Colors.xaml" /> |
5 |
| - </ResourceDictionary.MergedDictionaries> |
6 |
| - |
7 | 3 | <Style x:Key="{x:Static MenuItem.SeparatorStyleKey}" TargetType="Separator">
|
8 | 4 | <Setter Property="Height" Value="1" />
|
9 | 5 | <Setter Property="Template">
|
10 | 6 | <Setter.Value>
|
11 | 7 | <ControlTemplate TargetType="Separator">
|
12 | 8 | <Border Margin="25 0 0 0"
|
13 |
| - BorderBrush="{StaticResource MenuSeparatorBorderBrush}" |
| 9 | + BorderBrush="{DynamicResource MenuSeparatorBorderBrush}" |
14 | 10 | BorderThickness="1" />
|
15 | 11 | </ControlTemplate>
|
16 | 12 | </Setter.Value>
|
17 | 13 | </Setter>
|
18 | 14 | </Style>
|
19 | 15 |
|
20 | 16 | <Style x:Key="StandardMenu" TargetType="{x:Type Menu}">
|
21 |
| - <Setter Property="Background" Value="{StaticResource LightBackground}" /> |
22 |
| - <Setter Property="Foreground" Value="{StaticResource Foreground}" /> |
| 17 | + <Setter Property="Background" Value="{DynamicResource LightBackground}" /> |
| 18 | + <Setter Property="Foreground" Value="{DynamicResource Foreground}" /> |
23 | 19 | </Style>
|
24 | 20 |
|
25 | 21 | <Style x:Key="StandardMenuItem" TargetType="{x:Type MenuItem}">
|
|
78 | 74 | <Grid Margin="0 0 5 5">
|
79 | 75 | <!-- Border 2 -->
|
80 | 76 | <Border x:Name="SubMenuBorder"
|
81 |
| - Background="{StaticResource SubmenuItemBackground}" |
82 |
| - BorderBrush="{StaticResource MenuSeparatorBorderBrush}" |
| 77 | + Background="{DynamicResource SubmenuItemBackground}" |
| 78 | + BorderBrush="{DynamicResource MenuSeparatorBorderBrush}" |
83 | 79 | BorderThickness="1"
|
84 | 80 | SnapsToDevicePixels="True">
|
85 | 81 | <Grid x:Name="SubMenu"
|
|
98 | 94 | Margin="1 0 0 0"
|
99 | 95 | HorizontalAlignment="Left"
|
100 | 96 | VerticalAlignment="Top"
|
101 |
| - Background="{StaticResource SubmenuItemBackground}" |
102 |
| - BorderBrush="{StaticResource SubmenuItemBackground}" |
| 97 | + Background="{DynamicResource SubmenuItemBackground}" |
| 98 | + BorderBrush="{DynamicResource SubmenuItemBackground}" |
103 | 99 | BorderThickness="1"
|
104 | 100 | SnapsToDevicePixels="False" />
|
105 | 101 | </Grid>
|
|
130 | 126 | <Trigger Property="Role" Value="SubmenuHeader">
|
131 | 127 | <Setter Property="DockPanel.Dock" Value="Top" />
|
132 | 128 | <Setter Property="Padding" Value="10 3 0 3" />
|
133 |
| - <Setter TargetName="Border" Property="Background" Value="{StaticResource SubmenuItemBackground}" /> |
| 129 | + <Setter TargetName="Border" Property="Background" Value="{DynamicResource SubmenuItemBackground}" /> |
134 | 130 | <Setter TargetName="Border" Property="MinHeight" Value="22" />
|
135 | 131 | </Trigger>
|
136 | 132 | <Trigger Property="Role" Value="SubmenuItem">
|
137 | 133 | <Setter Property="DockPanel.Dock" Value="Top" />
|
138 | 134 | <Setter Property="Padding" Value="10 3 0 3" />
|
139 | 135 | <Setter TargetName="ArrowPanel" Property="Visibility" Value="Collapsed" />
|
140 |
| - <Setter TargetName="Border" Property="Background" Value="{StaticResource SubmenuItemBackground}" /> |
| 136 | + <Setter TargetName="Border" Property="Background" Value="{DynamicResource SubmenuItemBackground}" /> |
141 | 137 | <Setter TargetName="Border" Property="MinHeight" Value="22" />
|
142 | 138 | </Trigger>
|
143 | 139 | <MultiTrigger>
|
144 | 140 | <MultiTrigger.Conditions>
|
145 | 141 | <Condition Property="IsHighlighted" Value="true" />
|
146 | 142 | <Condition Property="Role" Value="TopLevelHeader" />
|
147 | 143 | </MultiTrigger.Conditions>
|
148 |
| - <Setter TargetName="Border" Property="Background" Value="{StaticResource MenuItemHighlightedBackground}" /> |
| 144 | + <Setter TargetName="Border" Property="Background" Value="{DynamicResource MenuItemHighlightedBackground}" /> |
149 | 145 | </MultiTrigger>
|
150 | 146 | <MultiTrigger>
|
151 | 147 | <MultiTrigger.Conditions>
|
152 | 148 | <Condition Property="IsHighlighted" Value="true" />
|
153 | 149 | <Condition Property="Role" Value="TopLevelItem" />
|
154 | 150 | </MultiTrigger.Conditions>
|
155 |
| - <Setter TargetName="Border" Property="Background" Value="{StaticResource MenuItemHighlightedBackground}" /> |
| 151 | + <Setter TargetName="Border" Property="Background" Value="{DynamicResource MenuItemHighlightedBackground}" /> |
156 | 152 | </MultiTrigger>
|
157 | 153 | <MultiTrigger>
|
158 | 154 | <MultiTrigger.Conditions>
|
159 | 155 | <Condition Property="IsHighlighted" Value="true" />
|
160 | 156 | <Condition Property="Role" Value="SubmenuHeader" />
|
161 | 157 | </MultiTrigger.Conditions>
|
162 |
| - <Setter TargetName="Border" Property="Background" Value="{StaticResource SubmenuItemBackgroundHighlighted}" /> |
| 158 | + <Setter TargetName="Border" Property="Background" Value="{DynamicResource SubmenuItemBackgroundHighlighted}" /> |
163 | 159 | </MultiTrigger>
|
164 | 160 | <MultiTrigger>
|
165 | 161 | <MultiTrigger.Conditions>
|
166 | 162 | <Condition Property="IsHighlighted" Value="true" />
|
167 | 163 | <Condition Property="Role" Value="SubmenuItem" />
|
168 | 164 | </MultiTrigger.Conditions>
|
169 |
| - <Setter TargetName="Border" Property="Background" Value="{StaticResource SubmenuItemBackgroundHighlighted}" /> |
| 165 | + <Setter TargetName="Border" Property="Background" Value="{DynamicResource SubmenuItemBackgroundHighlighted}" /> |
170 | 166 | </MultiTrigger>
|
171 | 167 | <MultiTrigger>
|
172 | 168 | <MultiTrigger.Conditions>
|
173 | 169 | <Condition Property="IsSubmenuOpen" Value="true" />
|
174 | 170 | <Condition Property="Role" Value="TopLevelHeader" />
|
175 | 171 | </MultiTrigger.Conditions>
|
176 |
| - <Setter TargetName="Border" Property="Background" Value="{StaticResource SubmenuItemBackground}" /> |
177 |
| - <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource MenuSeparatorBorderBrush}" /> |
| 172 | + <Setter TargetName="Border" Property="Background" Value="{DynamicResource SubmenuItemBackground}" /> |
| 173 | + <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource MenuSeparatorBorderBrush}" /> |
178 | 174 | <Setter TargetName="Border" Property="BorderThickness" Value="1 1 1 0" />
|
179 | 175 | </MultiTrigger>
|
180 | 176 | <Trigger Property="IsSubmenuOpen" Value="true">
|
181 |
| - <Setter TargetName="ArrowPanelPath" Property="Fill" Value="{StaticResource BackgroundSelected}" /> |
| 177 | + <Setter TargetName="ArrowPanelPath" Property="Fill" Value="{DynamicResource BackgroundSelected}" /> |
182 | 178 | </Trigger>
|
183 | 179 | <Trigger Property="IsSuspendingPopupAnimation" Value="true">
|
184 | 180 | <Setter TargetName="SubMenuPopup" Property="PopupAnimation" Value="None" />
|
|
187 | 183 | <Setter TargetName="Icon" Property="Visibility" Value="Collapsed" />
|
188 | 184 | </Trigger>
|
189 | 185 | <Trigger Property="IsEnabled" Value="False">
|
190 |
| - <Setter Property="Foreground" Value="{StaticResource MenuDisabledForeground}" /> |
| 186 | + <Setter Property="Foreground" Value="{DynamicResource MenuDisabledForeground}" /> |
191 | 187 | </Trigger>
|
192 | 188 | </ControlTemplate.Triggers>
|
193 | 189 | </ControlTemplate>
|
|
0 commit comments