<UserControl x:Class="NexusShell.Controls.NexusTitleBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:controls="clr-namespace:NexusShell.Views.Controls"
             x:Name="Root">
    <Border Padding="{StaticResource Nexus.Padding.TitleBar}"
            MouseLeftButtonDown="TitleBar_OnMouseLeftButtonDown">
        <Grid>
            <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                <Border Width="46" Height="46" CornerRadius="14" Margin="0,0,14,0"
                        Background="{StaticResource Nexus.IconBadgeBrush}">
                    <Path x:Name="IconPath"
                          Fill="{StaticResource Nexus.Accent.CyanBrush}"
                          Stretch="Uniform" Width="20" Height="20"
                          HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0.95"/>
                </Border>
                <StackPanel VerticalAlignment="Center">
                    <TextBlock Text="{Binding AppTitle, ElementName=Root}"
                               Style="{StaticResource Nexus.Text.TitleStyle}"/>
                    <TextBlock Text="{Binding AppSubtitle, ElementName=Root}"
                               Style="{StaticResource Nexus.Text.SubtitleStyle}"/>
                </StackPanel>
            </StackPanel>
            <controls:NexusWindowChromeButtons x:Name="ChromeButtons"
                                               HorizontalAlignment="Right"
                                               VerticalAlignment="Center"/>
        </Grid>
    </Border>
</UserControl>
