Skip to content

Commit

Permalink
update main window to be compatible with new updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Walmsley committed Dec 11, 2018
1 parent 7a3029d commit 09417ce
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions WalletWasabi.Gui/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
xmlns:beh="clr-namespace:AvalonStudio.Utils.Behaviors;assembly=AvalonStudio.Utils"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Icon="resm:WalletWasabi.Gui.Assets.WasabiLogo.png?assembly=WalletWasabi.Gui"
Title="{Binding Title}" BorderThickness="1" BorderBrush="{DynamicResource AvalonBorderBrush}"
Title="{Binding Title}"
MinWidth="1100" MinHeight="530"
FontFamily="{DynamicResource UiFont}" FontSize="14"
Foreground="{DynamicResource ThemeForegroundBrush}"
Expand All @@ -23,8 +23,22 @@
<behaviors:PredicateCloseBehavior CanClose="{Binding CanClose}" />
</i:Interaction.Behaviors>
<cont:MetroWindow.TitleBarContent>
<menu:MainMenuView DataContext="{Binding Shell.MainMenu}" Margin="4 0 0 0" Foreground="{DynamicResource ThemeForegroundBrush}" VerticalAlignment="Stretch" FontSize="13" />
</cont:MetroWindow.TitleBarContent>
<Grid Margin="0,10,0,0">
<cont:MetroWindow.Styles>
<Style Selector="Menu > MenuItem:selected /template/ Border#root">
<Setter Property="Background" Value="{DynamicResource ThemeControlMidBrush}"/>
</Style>

<Style Selector="Menu > MenuItem">
<Setter Property="Padding" Value="7 0"/>
</Style>

<Style Selector="MenuItem">
<Setter Property="BorderThickness" Value="0"/>
</Style>
</cont:MetroWindow.Styles>
<Grid>
<DockPanel LastChildFill="True">
<wasabi:StatusBar DockPanel.Dock="Bottom" DataContext="{Binding StatusBar}" />
<shell:ShellView DataContext="{Binding Shell}" />
Expand Down

0 comments on commit 09417ce

Please sign in to comment.