f995625460
- Added AsyncImageLoader package for improved image loading. - Implemented macOS native VLC library bundling with a script to fetch and copy necessary files. - Enhanced PlayerView UI with updated colors and improved layout for better user experience. - Refactored media playback logic in PlayerView to handle buffering and errors more gracefully. - Updated Playlists and Programs views to use consistent styling and improved text colors. - Introduced a new settings layout with better organization and visual appeal.
45 lines
1.8 KiB
XML
45 lines
1.8 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="TV_Player.AvaloniaApp.Views.ProgramsGroupView">
|
|
<Grid VerticalAlignment="Center">
|
|
<ListBox ItemsSource="{Binding Programs}"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto">
|
|
<ListBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid Columns="4" />
|
|
</ItemsPanelTemplate>
|
|
</ListBox.ItemsPanel>
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Button Width="150"
|
|
Height="70"
|
|
Margin="8,6"
|
|
Classes="card"
|
|
Command="{Binding DataContext.SelectGroupCommand, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
CommandParameter="{Binding}">
|
|
<Grid RowDefinitions="*,Auto" VerticalAlignment="Center" HorizontalAlignment="Stretch">
|
|
<TextBlock Text="{Binding Name}"
|
|
Foreground="#111827"
|
|
FontSize="15"
|
|
TextWrapping="Wrap"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
TextAlignment="Center"
|
|
Margin="4,0" />
|
|
<TextBlock Text="{Binding Count}"
|
|
Grid.Row="1"
|
|
Foreground="#6B7280"
|
|
FontSize="10"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,0,0,2" />
|
|
</Grid>
|
|
</Button>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</Grid>
|
|
</UserControl>
|