Skip to content

Commit

Permalink
Left aligned navigation buttons in Nitrox launcher (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
Measurity authored Mar 7, 2020
1 parent d8ce66a commit db0acbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NitroxLauncher/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@
</Style.Resources>
</Style>

<!-- Make sure the navigation items align vertically with the "NITROX" header. -->
<Style TargetType="Grid" x:Key="MainNavigationGrid">
<Style.Resources>
<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Margin" Value="0 10" />
<Setter Property="HorizontalAlignment" Value="Left"></Setter>
<Style.Triggers>
<Trigger Property="ap:ButtonProperties.Selected" Value="True">
<Setter Property="Foreground" Value="White" />
Expand Down
3 changes: 2 additions & 1 deletion NitroxLauncher/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Margin="0,28,0,0" x:Name="SideBarPanel">
<!-- Make sure the navigation items align vertically with the "NITROX" header. -->
<StackPanel Grid.Row="0" Margin="28,28,0,0" x:Name="SideBarPanel" HorizontalAlignment="Left">
<Button Click="ButtonNavigation_Click" Tag="{StaticResource LaunchGamePage}" ToolTip="Play the game" Content="PLAY GAME" />
<Button Click="ButtonNavigation_Click" Tag="{StaticResource ServerPage}" ToolTip="Configure server options" Content="SERVER" />
<Button Click="ButtonNavigation_Click" Tag="{StaticResource OptionPage}" ToolTip="Launcher settings" Content="OPTIONS" />
Expand Down

0 comments on commit db0acbf

Please sign in to comment.