Skip to content

Commit db0acbf

Browse files
authored
Left aligned navigation buttons in Nitrox launcher (#948)
1 parent d8ce66a commit db0acbf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NitroxLauncher/App.xaml

+2
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@
105105
</Style.Resources>
106106
</Style>
107107

108+
<!-- Make sure the navigation items align vertically with the "NITROX" header. -->
108109
<Style TargetType="Grid" x:Key="MainNavigationGrid">
109110
<Style.Resources>
110111
<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
111112
<Setter Property="Margin" Value="0 10" />
113+
<Setter Property="HorizontalAlignment" Value="Left"></Setter>
112114
<Style.Triggers>
113115
<Trigger Property="ap:ButtonProperties.Selected" Value="True">
114116
<Setter Property="Foreground" Value="White" />

NitroxLauncher/MainWindow.xaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
<RowDefinition Height="Auto" />
5959
<RowDefinition Height="*" />
6060
</Grid.RowDefinitions>
61-
<StackPanel Grid.Row="0" Margin="0,28,0,0" x:Name="SideBarPanel">
61+
<!-- Make sure the navigation items align vertically with the "NITROX" header. -->
62+
<StackPanel Grid.Row="0" Margin="28,28,0,0" x:Name="SideBarPanel" HorizontalAlignment="Left">
6263
<Button Click="ButtonNavigation_Click" Tag="{StaticResource LaunchGamePage}" ToolTip="Play the game" Content="PLAY GAME" />
6364
<Button Click="ButtonNavigation_Click" Tag="{StaticResource ServerPage}" ToolTip="Configure server options" Content="SERVER" />
6465
<Button Click="ButtonNavigation_Click" Tag="{StaticResource OptionPage}" ToolTip="Launcher settings" Content="OPTIONS" />

0 commit comments

Comments
 (0)