104 lines
4.7 KiB
XML
104 lines
4.7 KiB
XML
<Window x:Class="ytLive.GoLiveWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Start Stream" Height="430" Width="520"
|
|
Icon="/Assets/llama-logo-icon.png"
|
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
|
ShowInTaskbar="False" Background="#1a1a2e">
|
|
|
|
<Window.Resources>
|
|
<BooleanToVisibilityConverter x:Key="BoolToVis"/>
|
|
|
|
<Style x:Key="GoLiveButton" TargetType="Button">
|
|
<Setter Property="Background" Value="#e94560"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="Padding" Value="16,8"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{TemplateBinding Background}"
|
|
CornerRadius="4"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="GoLiveButtonSecondary" TargetType="Button" BasedOn="{StaticResource GoLiveButton}">
|
|
<Setter Property="Background" Value="#16213e"/>
|
|
</Style>
|
|
|
|
<Style x:Key="GoLiveLabel" TargetType="TextBlock">
|
|
<Setter Property="Foreground" Value="#a0a0b0"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="Margin" Value="0,0,0,4"/>
|
|
</Style>
|
|
|
|
<Style x:Key="GoLiveTextBox" TargetType="TextBox">
|
|
<Setter Property="Background" Value="#0f3460"/>
|
|
<Setter Property="Foreground" Value="#e0e0e0"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Padding" Value="8,6"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
<Setter Property="CaretBrush" Value="White"/>
|
|
<Setter Property="Margin" Value="0,0,0,12"/>
|
|
</Style>
|
|
|
|
<Style x:Key="GoLiveCombo" TargetType="ComboBox">
|
|
<Setter Property="Background" Value="#0f3460"/>
|
|
<Setter Property="Foreground" Value="#e0e0e0"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Padding" Value="8,6"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
<Setter Property="Margin" Value="0,0,0,12"/>
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<Grid Margin="24">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="0" Text="Start Stream" FontSize="18" FontWeight="Bold"
|
|
Foreground="#e0e0e0" Margin="0,0,0,16"/>
|
|
|
|
<!-- STREAM METADATA -->
|
|
<StackPanel Grid.Row="1">
|
|
<TextBlock Text="STREAM DETAILS" FontSize="12" FontWeight="SemiBold"
|
|
Foreground="#a0a0b0" Margin="0,0,0,8"/>
|
|
|
|
<TextBlock Text="Title" Style="{StaticResource GoLiveLabel}"/>
|
|
<TextBox Style="{StaticResource GoLiveTextBox}"
|
|
Text="{Binding StreamTitle, UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
<TextBlock Text="Description" Style="{StaticResource GoLiveLabel}"/>
|
|
<TextBox Style="{StaticResource GoLiveTextBox}" Height="60" AcceptsReturn="True"
|
|
Text="{Binding StreamDescription, UpdateSourceTrigger=PropertyChanged}"
|
|
VerticalScrollBarVisibility="Auto"/>
|
|
|
|
<TextBlock Text="Visibility" Style="{StaticResource GoLiveLabel}"/>
|
|
<ComboBox Style="{StaticResource GoLiveCombo}"
|
|
ItemsSource="{Binding Visibilities}"
|
|
SelectedItem="{Binding Visibility}"/>
|
|
</StackPanel>
|
|
|
|
<!-- ACTIONS -->
|
|
<StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<Button Content="Cancel" Command="{Binding CancelCommand}"
|
|
Style="{StaticResource GoLiveButtonSecondary}" Margin="0,0,8,0"/>
|
|
<Button Content="Start Stream" Command="{Binding StartCommand}"
|
|
Style="{StaticResource GoLiveButton}" MinWidth="110"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|