mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
style<ContextMenu>: decrease thickness of ContextMenu's DropShadowEffect
This commit is contained in:
parent
65d88909fd
commit
672783390b
2 changed files with 10 additions and 10 deletions
|
@ -12,19 +12,19 @@
|
||||||
<Style TargetType="{x:Type ContextMenu}">
|
<Style TargetType="{x:Type ContextMenu}">
|
||||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||||
<Setter Property="Grid.IsSharedSizeScope" Value="False" />
|
<Setter Property="Grid.IsSharedSizeScope" Value="False" />
|
||||||
<Setter Property="HorizontalOffset" Value="-12"/>
|
<Setter Property="HorizontalOffset" Value="-4"/>
|
||||||
<Setter Property="VerticalOffset" Value="-12"/>
|
<Setter Property="VerticalOffset" Value="-4"/>
|
||||||
|
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="{x:Type ContextMenu}">
|
<ControlTemplate TargetType="{x:Type ContextMenu}">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Border Background="{DynamicResource Brush.Popup}" BorderThickness="0" Margin="12">
|
<Border Background="{DynamicResource Brush.Popup}" BorderThickness="0" Margin="4">
|
||||||
<Border.Effect>
|
<Border.Effect>
|
||||||
<DropShadowEffect BlurRadius="8" ShadowDepth="0" Color="Black" Opacity=".6"/>
|
<DropShadowEffect BlurRadius="4" ShadowDepth="0" Color="Black" Opacity=".6"/>
|
||||||
</Border.Effect>
|
</Border.Effect>
|
||||||
</Border>
|
</Border>
|
||||||
<StackPanel IsItemsHost="True" Margin="14" KeyboardNavigation.DirectionalNavigation="Cycle"/>
|
<StackPanel IsItemsHost="True" Margin="6" KeyboardNavigation.DirectionalNavigation="Cycle"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
|
@ -67,15 +67,15 @@
|
||||||
<ContentPresenter Name="Icon" Grid.Column="0" Margin="6,0" VerticalAlignment="Center" ContentSource="Icon"/>
|
<ContentPresenter Name="Icon" Grid.Column="0" Margin="6,0" VerticalAlignment="Center" ContentSource="Icon"/>
|
||||||
<ContentPresenter Name="HeadHost" Grid.Column="1" Margin="0,0,8,0" ContentSource="Header" VerticalAlignment="Center"/>
|
<ContentPresenter Name="HeadHost" Grid.Column="1" Margin="0,0,8,0" ContentSource="Header" VerticalAlignment="Center"/>
|
||||||
<Path Grid.Column="2" Width="8" Height="8" Style="{DynamicResource Style.Icon}" Data="M 0 0 L 0 7 L 4 3.5 Z"/>
|
<Path Grid.Column="2" Width="8" Height="8" Style="{DynamicResource Style.Icon}" Data="M 0 0 L 0 7 L 4 3.5 Z"/>
|
||||||
<Popup Name="Popup" Placement="Right" HorizontalOffset="-14" VerticalOffset="-12" IsOpen="{TemplateBinding IsSubmenuOpen}" AllowsTransparency="True" Focusable="False" PopupAnimation="Fade">
|
<Popup Name="Popup" Placement="Right" HorizontalOffset="-4" VerticalOffset="-4" IsOpen="{TemplateBinding IsSubmenuOpen}" AllowsTransparency="True" Focusable="False" PopupAnimation="Fade">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Border Background="{DynamicResource Brush.Popup}" BorderThickness="0" Margin="12">
|
<Border Background="{DynamicResource Brush.Popup}" BorderThickness="0" Margin="4">
|
||||||
<Border.Effect>
|
<Border.Effect>
|
||||||
<DropShadowEffect BlurRadius="8" ShadowDepth="0" Color="Black" Opacity=".6"/>
|
<DropShadowEffect BlurRadius="4" ShadowDepth="0" Color="Black" Opacity=".6"/>
|
||||||
</Border.Effect>
|
</Border.Effect>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<ScrollViewer Margin="14" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" CanContentScroll="True">
|
<ScrollViewer Margin="6" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" CanContentScroll="True">
|
||||||
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Cycle"/>
|
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Cycle"/>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
@ -852,7 +852,7 @@ namespace SourceGit.UI {
|
||||||
anchor.ContextMenu = new ContextMenu();
|
anchor.ContextMenu = new ContextMenu();
|
||||||
anchor.ContextMenu.PlacementTarget = anchor;
|
anchor.ContextMenu.PlacementTarget = anchor;
|
||||||
anchor.ContextMenu.Placement = PlacementMode.Top;
|
anchor.ContextMenu.Placement = PlacementMode.Top;
|
||||||
anchor.ContextMenu.VerticalOffset = 8;
|
anchor.ContextMenu.VerticalOffset = 0;
|
||||||
anchor.ContextMenu.StaysOpen = false;
|
anchor.ContextMenu.StaysOpen = false;
|
||||||
anchor.ContextMenu.Focusable = true;
|
anchor.ContextMenu.Focusable = true;
|
||||||
anchor.ContextMenu.MaxWidth = 500;
|
anchor.ContextMenu.MaxWidth = 500;
|
||||||
|
|
Loading…
Reference in a new issue