<commit_before>﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:properties="clr-namespace:Grabacr07.KanColleViewer.Properties"
					xmlns:controls="clr-namespace:Grabacr07.KanColleViewer.Views.Controls"
					xmlns:models="clr-namespace:Grabacr07.KanColleViewer.Models">

	<Style TargetType="{x:Type controls:Quest}">
		<Setter Property="Background"
				Value="Transparent" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type controls:Quest}">
					<Border Background="{TemplateBinding Background}"
							BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}">
						<Grid HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							  VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
							  Margin="{TemplateBinding Padding}">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="*" />
								<RowDefinition Height="Auto" />
							</Grid.RowDefinitions>

							<Rectangle x:Name="Icon"
									   Grid.RowSpan="2"
									   Margin="0,0,10,0"
									   Width="16"
									   Height="16"
									   Fill="Gray"
									   VerticalAlignment="Center" />

							<TextBlock Grid.Row="0"
									   Grid.Column="1"
									   TextWrapping="{TemplateBinding TextWrapping}"
									   VerticalAlignment="Center">
								<Run x:Name="Title"
									 Text="{TemplateBinding Title}"
									 Style="{DynamicResource PickupTextElementStyleKey}" />
								<Run Text=" " />
								<Run x:Name="State"
									 Text=""
									 FontSize="13"
									 Style="{DynamicResource PickupTextElementStyleKey}"
									 Background="Transparent" />
							</TextBlock>
							<Border x:Name="DetailView"
									Grid.Row="1"
									Grid.Column="1">
								<TextBlock TextWrapping="Wrap">
									<Run x:Name="Detail"
										 Text="{TemplateBinding Detail}"
										 FontSize="10.5" />
								</TextBlock>
							</Border>
						</Grid>
					</Border>

					<ControlTemplate.Triggers>
						<Trigger Property="Progress"
								 Value="Progress50">
							<Setter TargetName="State"
									Property="Text"
									Value="{Binding Resources.Quest_Progress_50, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" />
							<Setter TargetName="State"
									Property="Background"
									Value="#FF208040" />
						</Trigger>
						<Trigger Property="Progress"
								 Value="Progress80">
							<Setter TargetName="State"
									Property="Text"
									Value="{Binding Resources.Quest_Progress_80, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" />
							<Setter TargetName="State"
									Property="Background"<commit_msg>Fix quest's state label<commit_after>﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:properties="clr-namespace:Grabacr07.KanColleViewer.Properties"
					xmlns:controls="clr-namespace:Grabacr07.KanColleViewer.Views.Controls"
					xmlns:models="clr-namespace:Grabacr07.KanColleViewer.Models">

	<Style TargetType="{x:Type controls:Quest}">
		<Setter Property="Background"
				Value="Transparent" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type controls:Quest}">
					<Border Background="{TemplateBinding Background}"
							BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}">
						<Grid HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							  VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
							  Margin="{TemplateBinding Padding}">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="*" />
								<RowDefinition Height="Auto" />
							</Grid.RowDefinitions>

							<Rectangle x:Name="Icon"
									   Grid.RowSpan="2"
									   Margin="0,0,10,0"
									   Width="16"
									   Height="16"
									   Fill="Gray"
									   VerticalAlignment="Center" />

							<TextBlock Grid.Row="0"
									   Grid.Column="1"
									   TextWrapping="{TemplateBinding TextWrapping}"
									   VerticalAlignment="Center">
								<Run x:Name="Title"
									 Text="{TemplateBinding Title}"
									 Style="{DynamicResource PickupTextElementStyleKey}" />
								<Run Text=" " />
                                <TextBlock TextWrapping="NoWrap">
								    <Run x:Name="State"
									     Text=""
									     FontSize="13"
									     Style="{DynamicResource PickupTextElementStyleKey}"
									     Background="Transparent" />
                                </TextBlock>
							</TextBlock>
							<Border x:Name="DetailView"
									Grid.Row="1"
									Grid.Column="1">
								<TextBlock TextWrapping="Wrap">
									<Run x:Name="Detail"
										 Text="{TemplateBinding Detail}"
										 FontSize="10.5" />
								</TextBlock>
							</Border>
						</Grid>
					</Border>

					<ControlTemplate.Triggers>
						<Trigger Property="Progress"
								 Value="Progress50">
							<Setter TargetName="State"
									Property="Text"
									Value="{Binding Resources.Quest_Progress_50, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" />
							<Setter TargetName="State"
									Property="Background"
									Value="#FF208040" />
						</Trigger>
						<Trigger Property="Progress"
								 Value="Progress80">
							<Setter TargetName="State"
									Property="Text"
									Value="{Binding Resources.Quest_Progress_80, Source={x:Static models:ResourceService.Current}, Mode=OneWay}" />
							<Setter TargetName="State"
									Property="Background"
{'fraction_non_alphanumeric': 0.13221909647526064, 'fraction_numerical': 0.015555187820618897, 'mean_word_length': 2.68986568986569, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4933231', 'n_tokens_mistral': 2705, 'n_tokens_neox': 1597, 'n_words': 245}