Skip to content

Commit

Permalink
Fix some styles looking odd with the upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
CorruptComputer committed Feb 3, 2024
1 parent 60762cd commit 320bd9f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
4 changes: 2 additions & 2 deletions UnitystationLauncher/Views/PreferencesPanelView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<Border Background="#1d3b50" Grid.Column="0" BorderBrush="#ffffff" BorderThickness="0.4" Margin="0 0 5 0">
<TextBlock FontSize="16" TextAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" Text="{Binding InstallationPath}"/>
</Border>
<Button Grid.Column="1" Click="ChangeInstallationFolder_OnClick">
<TextBlock FontSize="20" TextAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" Text="Change" />
<Button Grid.Column="1" Click="ChangeInstallationFolder_OnClick" HorizontalAlignment="Stretch">
<TextBlock FontSize="18" TextAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" Text="Change" />
</Button>
</Grid>
<!--Grid Grid.Row="2" Margin="0 5 0 5">
Expand Down
30 changes: 21 additions & 9 deletions UnitystationLauncher/Views/ServerView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,27 @@
</DockPanel.Styles>
<Image DockPanel.Dock="Left" Source="/Assets/unityico.png" Margin="5" Width="65" Height="65" Stretch="Uniform" />
<Panel DockPanel.Dock="Right" Margin="5" MinWidth="180" >
<Panel.Styles>
<Style Selector="Button">
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Height" Value="40" />
<Setter Property="BorderThickness" Value="0" />
</Style>
</Panel.Styles>
<!-- Download Button -->
<Button Command="{Binding Path=$parent[UserControl;1].DataContext.DownloadCommand}"
CommandParameter="{Binding}"
Content="Download"
Height="40" IsVisible="{Binding ShowDownloadButton}"
Background="{StaticResource PrimaryTransparent4}"
BorderThickness="0" />
IsVisible="{Binding ShowDownloadButton}"
Background="{StaticResource PrimaryTransparent4}" />

<!-- Start Button -->
<Button Command="{Binding LaunchGame}" Content="Start" Background="{StaticResource PrimaryTransparent4}"
BorderThickness="0" Height="40" IsVisible="{Binding ShowStartButton}" />
<Button Command="{Binding LaunchGame}"
Content="Start"
IsVisible="{Binding ShowStartButton}"
Background="{StaticResource PrimaryTransparent4}" />

<!-- Download Progress -->
<StackPanel IsVisible="{Binding ShowDownloadProgress}" VerticalAlignment="Center">
Expand All @@ -40,12 +50,14 @@
</StackPanel>

<!-- Scanning -->
<Button Content="Scanning..." Background="{StaticResource PrimaryTransparent4}"
BorderThickness="0" Height="40" IsVisible="{Binding ShowScanningProgress}" />
<Button Content="Scanning..."
IsVisible="{Binding ShowScanningProgress}"
Background="{StaticResource PrimaryTransparent4}" />

<!-- Download/Scan Failed -->
<Button Content="Failed" Background="#AA4444"
BorderThickness="0" Height="40" IsVisible="{Binding ShowDownloadFailed}" />
<Button Content="Failed"
IsVisible="{Binding ShowDownloadFailed}"
Background="#AA4444"/>
</Panel>
<Grid ColumnDefinitions="*, auto, auto" RowDefinitions="*, *" VerticalAlignment="Center">
<TextBlock Grid.Column="0" Grid.Row="0" Text="{Binding Server.ServerName}" />
Expand Down

0 comments on commit 320bd9f

Please sign in to comment.