|
23 | 23 | <sys:Double x:Key="ProcessFontMedium">14</sys:Double> |
24 | 24 | <sys:Double x:Key="ProcessFontMediumSmall">12</sys:Double> |
25 | 25 | <sys:Double x:Key="ProcessFontSmall">11</sys:Double> |
26 | | - <Style x:Key="ProcessContextMenuItemStyle" TargetType="{x:Type MenuItem}" BasedOn="{x:Null}"> |
| 26 | + <Style x:Key="ProcessContextMenuItemStyle" TargetType="{x:Type MenuItem}"> |
27 | 27 | <Setter Property="FontWeight" Value="Normal"/> |
28 | 28 | <Setter Property="FontSize" Value="{DynamicResource BodyFontSize}"/> |
29 | 29 | <Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/> |
30 | | - <Setter Property="Background" Value="Transparent"/> |
31 | | - <Setter Property="BorderBrush" Value="Transparent"/> |
32 | 30 | <Setter Property="Padding" Value="12,7"/> |
33 | 31 | <Setter Property="MinWidth" Value="220"/> |
34 | | - <Setter Property="Template"> |
35 | | - <Setter.Value> |
36 | | - <ControlTemplate TargetType="{x:Type MenuItem}"> |
37 | | - <Border x:Name="MenuItemRoot" |
38 | | - Background="{TemplateBinding Background}" |
39 | | - BorderBrush="{TemplateBinding BorderBrush}" |
40 | | - BorderThickness="0" |
41 | | - SnapsToDevicePixels="True"> |
42 | | - <Grid> |
43 | | - <Grid.ColumnDefinitions> |
44 | | - <ColumnDefinition Width="*"/> |
45 | | - <ColumnDefinition Width="Auto"/> |
46 | | - </Grid.ColumnDefinitions> |
47 | | - |
48 | | - <ContentPresenter x:Name="HeaderPresenter" |
49 | | - Grid.Column="0" |
50 | | - Margin="{TemplateBinding Padding}" |
51 | | - ContentSource="Header" |
52 | | - RecognizesAccessKey="True" |
53 | | - VerticalAlignment="Center" |
54 | | - TextElement.Foreground="{TemplateBinding Foreground}"/> |
55 | | - |
56 | | - <Path x:Name="SubmenuArrow" |
57 | | - Grid.Column="1" |
58 | | - Width="5" |
59 | | - Height="9" |
60 | | - Margin="8,0,12,0" |
61 | | - Data="M 0 0 L 5 4.5 L 0 9 Z" |
62 | | - Fill="{DynamicResource TextSecondaryBrush}" |
63 | | - Stretch="Fill" |
64 | | - VerticalAlignment="Center" |
65 | | - Visibility="Collapsed"/> |
66 | | - |
67 | | - <Popup x:Name="PART_Popup" |
68 | | - AllowsTransparency="True" |
69 | | - Focusable="False" |
70 | | - IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" |
71 | | - Placement="Right" |
72 | | - PopupAnimation="Fade"> |
73 | | - <Border Background="{DynamicResource CardSurfaceBrush}" |
74 | | - BorderBrush="{DynamicResource BorderSubtleBrush}" |
75 | | - BorderThickness="1" |
76 | | - Padding="4" |
77 | | - SnapsToDevicePixels="True"> |
78 | | - <ScrollViewer CanContentScroll="True" |
79 | | - HorizontalScrollBarVisibility="Disabled" |
80 | | - VerticalScrollBarVisibility="Auto"> |
81 | | - <ItemsPresenter KeyboardNavigation.DirectionalNavigation="Cycle" |
82 | | - KeyboardNavigation.TabNavigation="Cycle"/> |
83 | | - </ScrollViewer> |
84 | | - </Border> |
85 | | - </Popup> |
86 | | - </Grid> |
87 | | - </Border> |
88 | | - <ControlTemplate.Triggers> |
89 | | - <Trigger Property="HasItems" Value="True"> |
90 | | - <Setter TargetName="SubmenuArrow" Property="Visibility" Value="Visible"/> |
91 | | - </Trigger> |
92 | | - <Trigger Property="IsHighlighted" Value="True"> |
93 | | - <Setter TargetName="MenuItemRoot" Property="Background" Value="{DynamicResource QuietRowHoverBackgroundBrush}"/> |
94 | | - <Setter TargetName="SubmenuArrow" Property="Fill" Value="{DynamicResource TextPrimaryBrush}"/> |
95 | | - </Trigger> |
96 | | - <Trigger Property="IsSubmenuOpen" Value="True"> |
97 | | - <Setter TargetName="MenuItemRoot" Property="Background" Value="{DynamicResource QuietRowHoverBackgroundBrush}"/> |
98 | | - <Setter TargetName="SubmenuArrow" Property="Fill" Value="{DynamicResource TextPrimaryBrush}"/> |
99 | | - </Trigger> |
100 | | - <Trigger Property="IsEnabled" Value="False"> |
101 | | - <Setter Property="Foreground" Value="{DynamicResource TextDisabledBrush}"/> |
102 | | - <Setter TargetName="SubmenuArrow" Property="Fill" Value="{DynamicResource TextDisabledBrush}"/> |
103 | | - </Trigger> |
104 | | - </ControlTemplate.Triggers> |
105 | | - </ControlTemplate> |
106 | | - </Setter.Value> |
107 | | - </Setter> |
108 | 32 | </Style> |
109 | | - <Style x:Key="ProcessContextMenuSeparatorStyle" TargetType="{x:Type Separator}" BasedOn="{x:Null}"> |
| 33 | + <Style x:Key="ProcessContextMenuSeparatorStyle" TargetType="{x:Type Separator}"> |
110 | 34 | <Setter Property="Background" Value="{DynamicResource BorderSubtleBrush}"/> |
111 | 35 | <Setter Property="Margin" Value="8,4"/> |
112 | | - <Setter Property="Template"> |
113 | | - <Setter.Value> |
114 | | - <ControlTemplate TargetType="{x:Type Separator}"> |
115 | | - <Border Height="1" |
116 | | - Background="{DynamicResource BorderSubtleBrush}" |
117 | | - SnapsToDevicePixels="True"/> |
118 | | - </ControlTemplate> |
119 | | - </Setter.Value> |
120 | | - </Setter> |
121 | 36 | </Style> |
122 | | - <Style x:Key="ProcessContextMenuStyle" TargetType="{x:Type ContextMenu}" BasedOn="{x:Null}"> |
| 37 | + <Style x:Key="ProcessContextMenuStyle" TargetType="{x:Type ContextMenu}"> |
123 | 38 | <Setter Property="FontWeight" Value="Normal"/> |
124 | 39 | <Setter Property="FontSize" Value="{DynamicResource BodyFontSize}"/> |
125 | 40 | <Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/> |
126 | 41 | <Setter Property="Background" Value="{DynamicResource CardSurfaceBrush}"/> |
127 | 42 | <Setter Property="BorderBrush" Value="{DynamicResource BorderSubtleBrush}"/> |
| 43 | + <Setter Property="BorderThickness" Value="1"/> |
| 44 | + <Setter Property="Padding" Value="4"/> |
| 45 | + <Setter Property="SnapsToDevicePixels" Value="True"/> |
128 | 46 | </Style> |
129 | 47 | </UserControl.Resources> |
130 | 48 |
|
|
0 commit comments