2025-01-20 14:05:21 -06:00

136 lines
7.0 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<Style TargetType="{x:Type Button}" x:Key="CharacterBust">
<Setter Property="Margin" Value="5, 3, 5, 3"/>
<Setter Property="Background" Value="#BB000000"/>
<Setter Property="Foreground" Value="LightGray"/>
<Setter Property="BorderBrush" Value="#FF404040"/>
<Setter Property="Height" Value="125"/>
<Setter Property="Width" Value="125"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Border Background="{TemplateBinding Background}" CornerRadius="3" Height="115" Width="115" HorizontalAlignment="Left" VerticalAlignment="Top">
<Border Background="Transparent" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="2" Margin="2">
<Image Margin="5">
<Image.Source>
<BitmapImage UriSource="{Binding BustPic}"/>
</Image.Source>
</Image>
</Border>
</Border>
<Border Background="Black" CornerRadius="3" Height="35" Width="58" HorizontalAlignment="Right" VerticalAlignment="Bottom">
<Border Background="Transparent" BorderBrush="#FF404040" BorderThickness="2" Margin="2">
<Image HorizontalAlignment="Left">
<Image.Source>
<BitmapImage UriSource="/Images/ArmorSync.png"/>
</Image.Source>
<Image.Style>
<Style TargetType="{x:Type Image}">
<Setter Property="Visibility" Value="Hidden"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsArmorSync}" Value="True">
<Setter Property="Visibility" Value="Visible"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</Border>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="#FF808080"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="BorderBrush" Value="#FFFFFFFF"/>
</Trigger>
<DataTrigger Binding="{Binding Selected}" Value="true">
<Setter Property="Background" Value="#FF0093FF"/>
<Setter Property="BorderBrush" Value="#FFFFFFFF"/>
</DataTrigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type Label}" x:Key="CharacterName">
<Setter Property="VerticalAlignment" Value="Bottom"/>
<Setter Property="Background" Value="#99000000"/>
<Setter Property="Foreground" Value="LightGray"/>
<Setter Property="BorderBrush" Value="#FF404040"/>
<Setter Property="Margin" Value="0,0,0,30"/>
<Setter Property="Height" Value="115"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Label}">
<Border Background="{TemplateBinding Background}" CornerRadius="3, 0, 0, 3">
<Border.OpacityMask>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="Black" Offset="0.70" />
<GradientStop Color="Transparent" Offset="1.05" />
</LinearGradientBrush>
</Border.OpacityMask>
<Border Background="Transparent" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="2, 2, 0, 2" Margin="2">
<StackPanel Orientation="Vertical">
<Label Content="{Binding SelectedModel.Name}"
Foreground="White"
FontFamily="Roboto"
FontStyle="Italic"
FontWeight="Bold"
FontSize="24"/>
<Rectangle Height="1" Fill="#CC8C8C8C" Margin="5,0,0,0"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.7*"/>
<ColumnDefinition Width="0.3*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding SelectedModel.Description}"
Foreground="White"
FontFamily="Roboto"
FontStyle="Italic"
FontSize="16"
TextWrapping="WrapWithOverflow"
Margin="5"/>
</Grid>
</StackPanel>
</Border>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type Button}" x:Key="SearchResult">
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Label Content="{Binding Name}"
FontFamily="Roboto"
FontStyle="Italic"
FontSize="24"
Foreground="White"
HorizontalAlignment="Left"
FontWeight="{TemplateBinding FontWeight}"/>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding Selected}" Value="true">
<Setter Property="FontWeight" Value="UltraBold"/>
</DataTrigger>
</Style.Triggers>
</Style>
</ResourceDictionary>