Fix display of empty library view
Some checks failed
LANCommander Release / prep (push) Failing after 1m10s
LANCommander Release / build_server_win_x64 (push) Has been skipped
LANCommander Release / build_launcher_linux_arm64 (push) Has been skipped
LANCommander Release / build_launcher_linux_x64 (push) Has been skipped
LANCommander Release / build_launcher_osx_arm64 (push) Has been skipped
LANCommander Release / build_launcher_osx_x64 (push) Has been skipped
LANCommander Release / build_launcher_win_arm64 (push) Has been skipped
LANCommander Release / build_launcher_win_x64 (push) Has been skipped
LANCommander Release / build_packager (push) Has been skipped
LANCommander Release / build_release (push) Has been skipped
LANCommander Release / build_server_linux_arm64 (push) Has been skipped
LANCommander Release / build_server_linux_x64 (push) Has been skipped
LANCommander Release / build_server_osx_arm64 (push) Has been skipped
LANCommander Release / build_server_osx_x64 (push) Has been skipped
LANCommander Release / build_server_win_arm64 (push) Has been skipped

This commit is contained in:
Pat Hartl 2026-06-08 19:53:18 -05:00
parent 7e35dac126
commit 76d5375e35

View file

@ -229,25 +229,6 @@
<TextBlock Text="{Binding StatusMessage}" TextWrapping="Wrap" Foreground="IndianRed" />
</Border>
<!-- ── Empty state ─────────────────────────────────────────────────── -->
<StackPanel DockPanel.Dock="Top"
Spacing="12"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Margin="0,80,0,0">
<StackPanel.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Path="!IsLoading" />
<Binding Path="!HasGames" />
<Binding Path="!HasError" />
</MultiBinding>
</StackPanel.IsVisible>
<Icon Type="Regular" Value="GameController" Width="32" Height="32" HorizontalAlignment="Center" Opacity="0.4" />
<TextBlock Text="No Games Found" FontSize="16" Opacity="0.5" HorizontalAlignment="Center" />
<TextBlock Text="Try adjusting your filters or search terms."
FontSize="13" Opacity="0.4" HorizontalAlignment="Center" />
</StackPanel>
<!-- ── Sub-views ──────────────────────────────────────────────────── -->
<Grid>
<local:GamesGridView IsVisible="{Binding IsGridViewFlat}" />
@ -255,6 +236,23 @@
<local:LibraryRowView IsVisible="{Binding IsLibraryListViewFlat}" />
<local:GamesShelfView IsVisible="{Binding IsHorizontalViewFlat}" />
<local:GamesGroupedView IsVisible="{Binding IsGrouped}" />
<!-- ── Empty state ─────────────────────────────────────────── -->
<StackPanel Spacing="12"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<StackPanel.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Path="!IsLoading" />
<Binding Path="!HasGames" />
<Binding Path="!HasError" />
</MultiBinding>
</StackPanel.IsVisible>
<Icon Type="Regular" Value="GameController" Width="32" Height="32" HorizontalAlignment="Center" Opacity="0.4" />
<TextBlock Text="No Games Found" FontSize="16" Opacity="0.5" HorizontalAlignment="Center" />
<TextBlock Text="Try adjusting your filters or search terms."
FontSize="13" Opacity="0.4" HorizontalAlignment="Center" />
</StackPanel>
</Grid>
</DockPanel>