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.
52 lines
2.9 KiB
XML
52 lines
2.9 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
x:Class="TV_Player.AvaloniaApp.MainWindow"
|
|
mc:Ignorable="d"
|
|
Width="800"
|
|
Height="450"
|
|
MinWidth="800"
|
|
MinHeight="450"
|
|
Title="TV"
|
|
WindowState="{Binding CurrentWindowState}"
|
|
Background="#EEF1F5">
|
|
<Grid RowDefinitions="Auto,*">
|
|
<Border IsVisible="{Binding IsTopPanelVisible}" Height="80" Background="#F8F9FB" BorderBrush="#E5E7EB" BorderThickness="0,0,0,1">
|
|
<Grid ColumnDefinitions="80,80,*,80,80">
|
|
<Button Width="36" Height="36" Margin="16,0,0,0" Classes="icon-neutral" Foreground="#6B7280" Command="{Binding SettingsCommand}">
|
|
<Viewbox Width="18" Height="18">
|
|
<Path Fill="#6B7280" Data="M12 8.9A3.1 3.1 0 1 0 12 15.1A3.1 3.1 0 1 0 12 8.9M19.4 13A7.5 7.5 0 0 0 19.5 12A7.5 7.5 0 0 0 19.4 11L21.5 9.4L19.5 5.9L17 6.9A7.2 7.2 0 0 0 15.3 6L14.9 3.3H9.1L8.7 6A7.2 7.2 0 0 0 7 6.9L4.5 5.9L2.5 9.4L4.6 11A7.5 7.5 0 0 0 4.5 12A7.5 7.5 0 0 0 4.6 13L2.5 14.6L4.5 18.1L7 17.1A7.2 7.2 0 0 0 8.7 18L9.1 20.7H14.9L15.3 18A7.2 7.2 0 0 0 17 17.1L19.5 18.1L21.5 14.6L19.4 13Z" />
|
|
</Viewbox>
|
|
</Button>
|
|
<Button Grid.Column="1" Width="36" Height="36" Margin="16,0,0,0" Classes="icon-neutral" Foreground="#6B7280" Command="{Binding BackCommand}">
|
|
<Viewbox Width="16" Height="16">
|
|
<Path Fill="#6B7280" Data="M14.7 5.3L8 12L14.7 18.7L16.1 17.3L10.8 12L16.1 6.7Z" />
|
|
</Viewbox>
|
|
</Button>
|
|
<TextBlock Grid.Column="2"
|
|
Text="{Binding TopPanelTitle}"
|
|
FontSize="22"
|
|
FontWeight="SemiBold"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
Foreground="#111827" />
|
|
<Button Grid.Column="3" Width="36" Height="36" Margin="16,0,0,0" Classes="icon-neutral" Foreground="#6B7280" Command="{Binding FullscreenCommand}">
|
|
<Viewbox Width="16" Height="16">
|
|
<Path Fill="#6B7280" Data="M4 9V4H9V6H6V9H4M15 4H20V9H18V6H15V4M20 15V20H15V18H18V15H20M9 20H4V15H6V18H9V20Z" />
|
|
</Viewbox>
|
|
</Button>
|
|
<Button Grid.Column="4" Width="36" Height="36" Margin="16,0,0,0" Classes="icon-red" Foreground="White" Command="{Binding CloseAppCommand}">
|
|
<Viewbox Width="16" Height="16">
|
|
<Path Stroke="White" StrokeThickness="2.5" Data="M5,5 L19,19 M19,5 L5,19" />
|
|
</Viewbox>
|
|
</Button>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Border Grid.Row="1" Margin="12" CornerRadius="16" Background="#FFFFFF" BorderBrush="#E5E7EB" BorderThickness="1">
|
|
<ContentControl Content="{Binding CurrentViewModel}" Margin="12" />
|
|
</Border>
|
|
</Grid>
|
|
</Window>
|