Skip to content

Commit

Permalink
Restyle game history window
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Oct 1, 2024
1 parent 5b9c035 commit 9a21c47
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Bloxstrap/Resources/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Bloxstrap/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ Are you sure you want to continue?</value>
<value>Your current game will not show on your Discord presence because an error occurred when loading the game information.</value>
</data>
<data name="ContextMenu.GameHistory.Description" xml:space="preserve">
<value>Game history is only recorded for your current Roblox session. Games will appear here as you leave them or teleport within them.</value>
<value>Game history is only recorded for your current Roblox session. Games will appear here as you leave them or teleport within them. Not all servers will be rejoinable.</value>
</data>
<data name="ActivityWatcher.LocationQueryFailed" xml:space="preserve">
<value>The server location could not be queried. You may be joining games too quickly.</value>
Expand Down
18 changes: 8 additions & 10 deletions Bloxstrap/UI/Elements/ContextMenu/ServerHistory.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,27 @@
<Setter Property="Visibility" Value="Collapsed" />
</Style>
</ListView.Style>
<ListView.ItemContainerStyle>
<Style TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource {x:Type ListViewItem}}">
<Setter Property="Focusable" Value="False" />
</Style>
</ListView.ItemContainerStyle>
<ListView.ItemTemplate>
<DataTemplate>
<ui:Card Padding="12">
<ui:Card Padding="0">
<Grid VerticalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<Border Grid.Column="0" Width="84" Height="84" CornerRadius="4">
<Border Grid.Column="0" Width="107" Height="107" CornerRadius="4">
<Border.Background>
<ImageBrush ImageSource="{Binding UniverseDetails.Thumbnail.ImageUrl, IsAsync=True}" />
</Border.Background>
</Border>

<StackPanel Grid.Column="1" Margin="16,0,0,0" VerticalAlignment="Center">
<StackPanel Grid.Column="1" Margin="16,12,12,12" VerticalAlignment="Center">
<TextBlock Text="{Binding UniverseDetails.Data.Name}" FontSize="18" FontWeight="Medium" />
<TextBlock Text="{Binding GameHistoryDescription}" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<ui:Button Margin="0,8,0,0" Content="{x:Static resources:Strings.ContextMenu_GameHistory_Rejoin}" Command="{Binding RejoinServerCommand}"
Expand All @@ -97,11 +101,5 @@
</DataTemplate>
</ListView.ItemTemplate>
</ListView>

<Border Grid.Row="3" Padding="15" Background="{ui:ThemeResource SolidBackgroundFillColorSecondaryBrush}">
<StackPanel Orientation="Horizontal" FlowDirection="LeftToRight" HorizontalAlignment="Right">
<Button Margin="12,0,0,0" MinWidth="100" Content="{x:Static resources:Strings.Common_Close}" IsCancel="True" />
</StackPanel>
</Border>
</Grid>
</base:WpfUiWindow>

0 comments on commit 9a21c47

Please sign in to comment.