Files
IPTVplayer/TV Player Avalonia/App.axaml
T

75 lines
2.9 KiB
XML

<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="clr-namespace:TV_Player.AvaloniaApp.ViewModels"
xmlns:views="clr-namespace:TV_Player.AvaloniaApp.Views"
x:Class="TV_Player.AvaloniaApp.App"
RequestedThemeVariant="Dark">
<Application.Styles>
<FluentTheme />
<Style Selector="Button.card">
<Setter Property="BorderThickness" Value="2" />
<Setter Property="BorderBrush" Value="Yellow" />
<Setter Property="Background" Value="#B0000000" />
</Style>
<Style Selector="Button.card:pointerover">
<Setter Property="Background" Value="#C0000000" />
<Setter Property="BorderBrush" Value="#FFF176" />
</Style>
<Style Selector="Button.card:pressed">
<Setter Property="Background" Value="#D0000000" />
</Style>
<Style Selector="Button.icon-yellow">
<Setter Property="Background" Value="Yellow" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="300" />
<Setter Property="Width" Value="50" />
<Setter Property="Height" Value="50" />
</Style>
<Style Selector="Button.icon-yellow:pointerover">
<Setter Property="Background" Value="#FFF176" />
</Style>
<Style Selector="Button.icon-red">
<Setter Property="Background" Value="Red" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="300" />
<Setter Property="Width" Value="50" />
<Setter Property="Height" Value="50" />
</Style>
<Style Selector="Button.icon-red:pointerover">
<Setter Property="Background" Value="#EF5350" />
</Style>
<Style Selector="Button.icon-green">
<Setter Property="Background" Value="Green" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="300" />
<Setter Property="Width" Value="50" />
<Setter Property="Height" Value="50" />
</Style>
<Style Selector="Button.icon-lightgreen">
<Setter Property="Background" Value="LightGreen" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="300" />
<Setter Property="Width" Value="50" />
<Setter Property="Height" Value="50" />
</Style>
</Application.Styles>
<Application.DataTemplates>
<DataTemplate DataType="vm:PlaylistsGroupViewModel">
<views:PlaylistsGroupView />
</DataTemplate>
<DataTemplate DataType="vm:ProgramsGroupViewModel">
<views:ProgramsGroupView />
</DataTemplate>
<DataTemplate DataType="vm:ProgramsListViewModel">
<views:ProgramsListView />
</DataTemplate>
<DataTemplate DataType="vm:PlayerViewModel">
<views:PlayerView />
</DataTemplate>
<DataTemplate DataType="vm:SettingsViewModel">
<views:SettingsView />
</DataTemplate>
</Application.DataTemplates>
</Application>