<ListBoxItem x:Class="RelhaxModpack.UI.AutomationListBoxItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:ui="clr-namespace:RelhaxModpack.UI"
             xmlns:local="clr-namespace:RelhaxModpack.Windows"
             mc:Ignorable="d">
    <ListBoxItem.Resources>
        <Style TargetType="TextBlock" BasedOn="{x:Null}"/>
        <Style TargetType="ui:AutomationListBoxItem">
            <Style.Triggers>
                <DataTrigger Binding="{Binding DarkTheme, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:RelhaxWindow}}}" Value="True">
                    <Setter Property="Control.Foreground" Value="{StaticResource DarkThemeTextColor}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </ListBoxItem.Resources>
</ListBoxItem>
