AFK Macro

Idle Mafia Macro/Source/src/ui/Theme.xaml

Theme.xaml

The window's colours and icons · 993 lines · 62 KB

<!-- Idle Mafia Bot: the game's own colours. Near-black, cream text, one strong colour: gold.
Red for danger and losses, green for money and wins; orange, blue and red are the game's
energy, stamina and health bars, purple its XP bar. -->
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- colours -->
<SolidColorBrush x:Key="Bg" Color="#101011"/>
<SolidColorBrush x:Key="Rail" Color="#0A0A0B"/>
<SolidColorBrush x:Key="Panel" Color="#1A1A1C"/>
<SolidColorBrush x:Key="Panel2" Color="#212123"/>
<SolidColorBrush x:Key="Raised" Color="#262628"/>
<SolidColorBrush x:Key="Raised2" Color="#2F2F32"/>
<SolidColorBrush x:Key="Field" Color="#0D0D0E"/>
<SolidColorBrush x:Key="Line" Color="#2C2C2F"/>
<SolidColorBrush x:Key="LineSoft" Color="#222225"/>
<SolidColorBrush x:Key="Text" Color="#E8E2D0"/>
<SolidColorBrush x:Key="Text2" Color="#A8A292"/>
<SolidColorBrush x:Key="Text3" Color="#6F6B61"/>
<SolidColorBrush x:Key="Gold" Color="#D4AF37"/>
<SolidColorBrush x:Key="GoldDark" Color="#947A26"/>
<SolidColorBrush x:Key="GoldSoft" Color="#26D4AF37"/>
<SolidColorBrush x:Key="OnGold" Color="#141414"/>
<SolidColorBrush x:Key="Red" Color="#C84B3F"/>
<SolidColorBrush x:Key="Green" Color="#7EBE5A"/>
<SolidColorBrush x:Key="Energy" Color="#E08C32"/>
<SolidColorBrush x:Key="Stamina" Color="#5B8FB9"/>
<SolidColorBrush x:Key="Health" Color="#BA4A3E"/>
<SolidColorBrush x:Key="Xp" Color="#8B6ABB"/>
<SolidColorBrush x:Key="Track" Color="#0D0D0E"/>
<SolidColorBrush x:Key="SkylineFarFill" Color="#17171B"/>
<SolidColorBrush x:Key="SkylineNearFill" Color="#111113"/>
<SolidColorBrush x:Key="SkylineWinFill" Color="#D4AF37"/>
<SolidColorBrush x:Key="BloodRed" Color="#C84B3F"/>
<SolidColorBrush x:Key="HeroEdge" Color="#3A3119"/>
<Color x:Key="HeroG1">#2A2213</Color>
<Color x:Key="HeroG2">#17161A</Color>
<Color x:Key="HeroG3">#0F0F12</Color>
<Color x:Key="MoonA">#F6E9C0</Color>
<Color x:Key="MoonB">#D9C48A</Color>
<Color x:Key="MoonC">#B9A46C</Color>
<Color x:Key="MoonGlow">#F3DFA2</Color>
<Color x:Key="LvlA">#3A3014</Color>
<Color x:Key="LvlB">#1C180D</Color>
<Color x:Key="LvlGlow">#D4AF37</Color>
<SolidColorBrush x:Key="LvlSub" Color="#A88B2E"/>
<Color x:Key="HeroHalo0">#33F3DFA2</Color>
<Color x:Key="HeroHalo1">#10F3DFA2</Color>
<Color x:Key="HeroHalo2">#00F3DFA2</Color>
<!-- type: a classic serif for titles like the game, Segoe UI for the rest -->
<FontFamily x:Key="Serif">Palatino Linotype, Georgia</FontFamily>
<FontFamily x:Key="Sans">Segoe UI Variable Text, Segoe UI</FontFamily>
<FontFamily x:Key="Display">Segoe UI Variable Display, Segoe UI</FontFamily>
<!-- the titles, names and big numbers (15-10): Abril Fatface, set by UiWindow.UseDecoFont from the exe; this serif until then -->
<FontFamily x:Key="Deco">Palatino Linotype, Georgia</FontFamily>
<Style TargetType="TextBlock">
<Setter Property="FontFamily" Value="{StaticResource Sans}"/>
<Setter Property="Foreground" Value="{StaticResource Text}"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="TextTrimming" Value="CharacterEllipsis"/>
</Style>
<Style x:Key="PageTitle" TargetType="TextBlock">
<Setter Property="FontFamily" Value="{StaticResource Serif}"/>
<Setter Property="Foreground" Value="{StaticResource Gold}"/>
<Setter Property="FontSize" Value="30"/>
</Style>
<Style x:Key="CardTitle" TargetType="TextBlock">
<Setter Property="FontFamily" Value="{StaticResource Display}"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="Foreground" Value="{StaticResource Text}"/>
</Style>
<Style x:Key="Label" TargetType="TextBlock">
<Setter Property="FontFamily" Value="{StaticResource Sans}"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="Foreground" Value="{StaticResource Text3}"/>
</Style>
<Style x:Key="Hint" TargetType="TextBlock">
<Setter Property="FontSize" Value="13"/>
<Setter Property="Foreground" Value="{StaticResource Text2}"/>
<Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="TextTrimming" Value="None"/>
</Style>
<Style x:Key="Big" TargetType="TextBlock">
<Setter Property="FontFamily" Value="{StaticResource Display}"/>
<Setter Property="FontWeight" Value="Black"/>
<Setter Property="FontSize" Value="24"/>
<Setter Property="Foreground" Value="{StaticResource Text}"/>
</Style>
<!-- cards -->
<Style x:Key="Card" TargetType="Border">
<Setter Property="Background" Value="{StaticResource Panel}"/>
<Setter Property="CornerRadius" Value="10"/>
<Setter Property="BorderBrush" Value="{StaticResource LineSoft}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="20,18"/>
<Setter Property="Margin" Value="0,0,0,14"/>
</Style>
<!-- buttons: flat, a little dip when pressed -->
<Style x:Key="Btn" TargetType="Button">
<Setter Property="Foreground" Value="{StaticResource Text}"/>
<Setter Property="Background" Value="{StaticResource Raised}"/>
<Setter Property="FontFamily" Value="{StaticResource Sans}"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="Padding" Value="16,10"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="{TemplateBinding Background}" CornerRadius="10" Padding="{TemplateBinding Padding}"
BorderBrush="{StaticResource Line}" BorderThickness="1" RenderTransformOrigin="0.5,0.5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Bd" Property="Background" Value="{StaticResource Raised2}"/></Trigger>
<Trigger Property="IsPressed" Value="True"><Setter TargetName="Bd" Property="RenderTransform"><Setter.Value><TranslateTransform Y="1"/></Setter.Value></Setter></Trigger>
<Trigger Property="IsEnabled" Value="False"><Setter TargetName="Bd" Property="Opacity" Value="0.45"/></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="PrimaryBtn" TargetType="Button" BasedOn="{StaticResource Btn}">
<Setter Property="Foreground" Value="{StaticResource OnGold}"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="{TemplateBinding Background}" CornerRadius="10" Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Bd" Property="Opacity" Value="0.88"/></Trigger>
<Trigger Property="IsPressed" Value="True"><Setter TargetName="Bd" Property="RenderTransform"><Setter.Value><TranslateTransform Y="1"/></Setter.Value></Setter></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Background" Value="{StaticResource Gold}"/>
</Style>
<Style x:Key="GhostBtn" TargetType="Button" BasedOn="{StaticResource Btn}">
<Setter Property="Foreground" Value="{StaticResource Text2}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="Transparent" CornerRadius="10" Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Bd" Property="Background" Value="{StaticResource Raised}"/></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- the window's own minimise / maximise / close buttons -->
<Style x:Key="WinBtn" TargetType="Button">
<Setter Property="Width" Value="46"/>
<Setter Property="Height" Value="34"/>
<Setter Property="Foreground" Value="{StaticResource Text2}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="Transparent" CornerRadius="8">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Bd" Property="Background" Value="{StaticResource Raised}"/></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="CloseBtn" TargetType="Button" BasedOn="{StaticResource WinBtn}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="Transparent" CornerRadius="8">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Bd" Property="Background" Value="{StaticResource Red}"/></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- switch: a dark track, a gold knob when on (15-10: only the review page still has switches; the rest are tiles) -->
<Style x:Key="Switch" TargetType="CheckBox">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Foreground" Value="{StaticResource Text}"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid Background="Transparent">
<Grid.ColumnDefinitions><ColumnDefinition Width="*"/><ColumnDefinition Width="Auto"/></Grid.ColumnDefinitions>
<ContentPresenter VerticalAlignment="Center" Margin="0,0,18,0"/>
<!-- off: an outlined dark track and a light knob, so it doesn't vanish on the card (11-10) -->
<Border x:Name="Track" Grid.Column="1" Width="40" Height="22" CornerRadius="11" Background="{StaticResource Raised}"
BorderBrush="{StaticResource Raised2}" BorderThickness="1" VerticalAlignment="Center">
<Ellipse x:Name="Knob" Width="14" Height="14" Fill="{StaticResource Text3}" HorizontalAlignment="Left" Margin="3,0,0,0"/>
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="Track" Property="Background" Value="#4D4220"/>
<Setter TargetName="Track" Property="BorderBrush" Value="#7A6526"/>
<Setter TargetName="Knob" Property="Fill" Value="{StaticResource Gold}"/>
<Setter TargetName="Knob" Property="HorizontalAlignment" Value="Right"/>
<Setter TargetName="Knob" Property="Margin" Value="0,0,3,0"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Track" Property="Opacity" Value="0.88"/></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- a rarity the shop buys: a pill in the rarity's colour (Tag = its brush), a tick when on; dim and hollow when off -->
<Style x:Key="RarityChip" TargetType="CheckBox">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Foreground" Value="{StaticResource Text}"/>
<Setter Property="FontSize" Value="13.5"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Margin" Value="0,0,8,8"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Border x:Name="Bd" CornerRadius="16" Padding="10,6,14,6" Background="{StaticResource Field}" BorderThickness="1.5"
BorderBrush="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}">
<StackPanel Orientation="Horizontal">
<Grid Width="16" Height="16" VerticalAlignment="Center">
<Ellipse x:Name="Dot" StrokeThickness="1.5"
Fill="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
Stroke="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"/>
<Path x:Name="Tick" Data="M4.2,8.3 L7,11 L12,5.4" Stroke="{StaticResource OnGold}" StrokeThickness="2"
StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeLineJoin="Round"/>
</Grid>
<ContentPresenter Margin="8,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="False">
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource Line}"/>
<Setter TargetName="Bd" Property="Opacity" Value="0.55"/>
<Setter TargetName="Dot" Property="Fill" Value="Transparent"/>
<Setter TargetName="Tick" Property="Visibility" Value="Collapsed"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Bd" Property="Background" Value="{StaticResource Raised}"/></Trigger>
<!-- greyed out: what it depends on is off (the bank's chips without "Take cash out", or the rarity not bought) -->
<Trigger Property="IsEnabled" Value="False"><Setter TargetName="Bd" Property="Opacity" Value="0.3"/></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- segmented choice (radio buttons inside a SegmentBar): the one picked raised, its text gold -->
<Style x:Key="SegmentBar" TargetType="Border">
<Setter Property="Background" Value="{StaticResource Field}"/>
<Setter Property="CornerRadius" Value="9"/>
<Setter Property="Padding" Value="2"/>
<Setter Property="BorderBrush" Value="{StaticResource Line}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
</Style>
<Style x:Key="Segment" TargetType="RadioButton">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Foreground" Value="{StaticResource Text2}"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="FontSize" Value="13.5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border x:Name="Bd" CornerRadius="7" Padding="12,5" Background="Transparent" BorderThickness="1" BorderBrush="Transparent">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="{StaticResource Text}"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Raised2}"/>
<Setter TargetName="Bd" Property="BorderBrush" Value="#3A3A3E"/>
<Setter Property="Foreground" Value="{StaticResource Gold}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- rail (15-10): a small icon and the page's name, a thin gold bar beside the page you're on -->
<Style x:Key="RailItem" TargetType="RadioButton">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Foreground" Value="{StaticResource Text2}"/>
<Setter Property="GroupName" Value="rail"/>
<Setter Property="Margin" Value="0,0,0,2"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Grid Width="176" Height="40" Background="Transparent">
<Border x:Name="Box" Margin="10,0" CornerRadius="8" Background="Transparent"/>
<Border x:Name="Pill" Width="3" Height="18" CornerRadius="0,3,3,0" Background="{StaticResource Gold}"
HorizontalAlignment="Left" VerticalAlignment="Center" Visibility="Hidden"/>
<StackPanel Orientation="Horizontal" Margin="24,0,0,0" VerticalAlignment="Center">
<ContentPresenter VerticalAlignment="Center"/>
<TextBlock x:Name="Name" Text="{TemplateBinding Tag}" FontSize="14" Margin="13,0,0,1"
Foreground="{StaticResource Text2}" VerticalAlignment="Center"/>
</StackPanel>
<Border x:Name="Badge" MinWidth="20" Height="18" CornerRadius="9" Background="{StaticResource Red}"
HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,22,0" Padding="6,0">
<TextBlock Text="{TemplateBinding Uid}" FontSize="10.5" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Uid" Value="">
<Setter TargetName="Badge" Property="Visibility" Value="Collapsed"/>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions><Condition Property="IsMouseOver" Value="True"/><Condition Property="IsChecked" Value="False"/></MultiTrigger.Conditions>
<Setter TargetName="Box" Property="Background" Value="{StaticResource Panel}"/>
<Setter Property="Foreground" Value="{StaticResource Text}"/>
<Setter TargetName="Name" Property="Foreground" Value="{StaticResource Text}"/>
</MultiTrigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="Box" Property="Background" Value="{StaticResource Panel2}"/>
<Setter Property="Foreground" Value="{StaticResource Gold}"/>
<Setter TargetName="Name" Property="Foreground" Value="{StaticResource Text}"/>
<Setter TargetName="Name" Property="FontWeight" Value="SemiBold"/>
<Setter TargetName="Pill" Property="Visibility" Value="Visible"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- a page's tab in the top bar (15-10, in place of the left bar): its name (Tag) in the titles' font, a gold line under
the page you're on; Uid is the red number (Settings: the problems) -->
<Style x:Key="TopTab" TargetType="RadioButton">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="GroupName" Value="rail"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="Margin" Value="0,0,26,0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Grid Background="Transparent">
<StackPanel Margin="0,6,0,0">
<StackPanel Orientation="Horizontal">
<TextBlock x:Name="Name" Text="{TemplateBinding Tag}" FontFamily="{StaticResource Deco}" FontSize="19" Foreground="{StaticResource Text3}"/>
<Border x:Name="Badge" MinWidth="18" Height="18" CornerRadius="9" Background="{StaticResource Red}" Margin="7,2,0,0" Padding="5,0" VerticalAlignment="Top">
<TextBlock Text="{TemplateBinding Uid}" FontSize="10.5" FontWeight="Bold" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</StackPanel>
<Border x:Name="Line" Height="2" CornerRadius="1" Margin="0,5,0,0" HorizontalAlignment="Left" Width="0" Background="{StaticResource Gold}"/>
</StackPanel>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Uid" Value=""><Setter TargetName="Badge" Property="Visibility" Value="Collapsed"/></Trigger>
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Name" Property="Foreground" Value="{StaticResource Text2}"/></Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="Name" Property="Foreground" Value="{StaticResource Text}"/>
<Trigger.EnterActions>
<BeginStoryboard><Storyboard><DoubleAnimation Storyboard.TargetName="Line" Storyboard.TargetProperty="Width" To="28" Duration="0:0:0.2"/></Storyboard></BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard><Storyboard><DoubleAnimation Storyboard.TargetName="Line" Storyboard.TargetProperty="Width" To="0" Duration="0:0:0.15"/></Storyboard></BeginStoryboard>
</Trigger.ExitActions>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- icons are drawn with the text colour of whatever holds them -->
<Style x:Key="Icon" TargetType="Path">
<Setter Property="Width" Value="22"/>
<Setter Property="Height" Value="22"/>
<Setter Property="Stretch" Value="Uniform"/>
<Setter Property="StrokeThickness" Value="1.9"/>
<Setter Property="StrokeLineJoin" Value="Round"/>
<Setter Property="StrokeStartLineCap" Value="Round"/>
<Setter Property="StrokeEndLineCap" Value="Round"/>
<Setter Property="Stroke" Value="{Binding Foreground, RelativeSource={RelativeSource AncestorType=Control}}"/>
</Style>
<!-- dropdown -->
<Style x:Key="ComboItem" TargetType="ComboBoxItem">
<Setter Property="Foreground" Value="{StaticResource Text}"/>
<Setter Property="FontSize" Value="13.5"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBoxItem">
<Border x:Name="Bd" Padding="12,8" CornerRadius="7" Background="Transparent" Margin="2,1">
<ContentPresenter/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsHighlighted" Value="True"><Setter TargetName="Bd" Property="Background" Value="{StaticResource Raised2}"/></Trigger>
<Trigger Property="IsSelected" Value="True"><Setter Property="Foreground" Value="{StaticResource Gold}"/></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="ComboBox">
<Setter Property="Foreground" Value="{StaticResource Text}"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="Height" Value="40"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="ItemContainerStyle" Value="{StaticResource ComboItem}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBox">
<Grid>
<ToggleButton Focusable="False" ClickMode="Press"
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
<ToggleButton.Template>
<ControlTemplate TargetType="ToggleButton">
<Border x:Name="Bd" Background="{StaticResource Field}" CornerRadius="10" BorderBrush="{StaticResource Line}" BorderThickness="1.5">
<Path HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,14,0" Data="M0,0 L5,5 L10,0"
Stroke="{StaticResource Text2}" StrokeThickness="1.8" StrokeStartLineCap="Round" StrokeEndLineCap="Round"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource GoldDark}"/></Trigger>
<Trigger Property="IsChecked" Value="True"><Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource Gold}"/></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</ToggleButton.Template>
</ToggleButton>
<ContentPresenter IsHitTestVisible="False" Margin="14,0,36,0" VerticalAlignment="Center"
Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"/>
<Popup x:Name="PART_Popup" Placement="Bottom" IsOpen="{TemplateBinding IsDropDownOpen}" AllowsTransparency="True"
Focusable="False" PopupAnimation="Fade">
<Border Background="{StaticResource Raised}" CornerRadius="10" BorderBrush="{StaticResource Line}" BorderThickness="1"
MinWidth="{Binding ActualWidth, RelativeSource={RelativeSource TemplatedParent}}" MaxHeight="340" Margin="0,6,0,0" Padding="2,4">
<ScrollViewer VerticalScrollBarVisibility="Auto" CanContentScroll="False"><ItemsPresenter/></ScrollViewer>
</Border>
</Popup>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- stepper buttons (the - and + of number fields) -->
<Style x:Key="StepBtn" TargetType="RepeatButton">
<Setter Property="Width" Value="34"/>
<Setter Property="Foreground" Value="{StaticResource Text2}"/>
<Setter Property="FontSize" Value="17"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Delay" Value="350"/>
<Setter Property="Interval" Value="60"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RepeatButton">
<Border x:Name="Bd" Background="Transparent" CornerRadius="8">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,-2,0,0"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Raised2}"/>
<Setter Property="Foreground" Value="{StaticResource Gold}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- thin scrollbars -->
<ControlTemplate x:Key="ThumbTemplate" TargetType="Thumb">
<Border CornerRadius="4" Background="{StaticResource Raised2}" Margin="2"/>
</ControlTemplate>
<Style TargetType="ScrollBar">
<Setter Property="Width" Value="10"/>
<Setter Property="MinWidth" Value="10"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ScrollBar">
<Track x:Name="PART_Track" IsDirectionReversed="True">
<Track.Thumb><Thumb Template="{StaticResource ThumbTemplate}"/></Track.Thumb>
</Track>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="Orientation" Value="Horizontal">
<Setter Property="Width" Value="Auto"/>
<Setter Property="MinWidth" Value="0"/>
<Setter Property="Height" Value="10"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ScrollBar">
<Track x:Name="PART_Track">
<Track.Thumb><Thumb Template="{StaticResource ThumbTemplate}"/></Track.Thumb>
</Track>
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
<!-- icons (24x24 line drawings; the fedora, play and stop are filled) -->
<Geometry x:Key="IcoHome">M3,11 L12,3.5 L21,11 M5.5,9.5 L5.5,20.5 L18.5,20.5 L18.5,9.5 M10,20.5 L10,14.5 L14,14.5 L14,20.5</Geometry>
<Geometry x:Key="IcoJobs">M3.5,8 L20.5,8 L20.5,19.5 L3.5,19.5 Z M9,8 L9,5.5 L15,5.5 L15,8 M3.5,13 L20.5,13</Geometry>
<Geometry x:Key="IcoHeist">M4,4 L20,4 L20,20 L4,20 Z M8.5,12 A3.5,3.5 0 1 1 15.5,12 A3.5,3.5 0 1 1 8.5,12 M12,12 L14,10 M7,20 L7,21.5 M17,20 L17,21.5</Geometry>
<Geometry x:Key="IcoSwords">M5,5 L15,15 M13,17 L17,13 M15,15 L19,19 M19,5 L9,15 M7,13 L11,17 M9,15 L5,19</Geometry>
<Geometry x:Key="IcoCrown">M3.5,17.5 L5,7.5 L9.5,11.5 L12,5.5 L14.5,11.5 L19,7.5 L20.5,17.5 Z M5,20.5 L19,20.5</Geometry>
<Geometry x:Key="IcoBank">M3,9.5 L12,4 L21,9.5 Z M6,11.5 L6,17 M10,11.5 L10,17 M14,11.5 L14,17 M18,11.5 L18,17 M3.5,20 L20.5,20</Geometry>
<Geometry x:Key="IcoHourglass">M6.5,3.5 L17.5,3.5 M6.5,20.5 L17.5,20.5 M7.5,3.5 C7.5,9 16.5,9.5 16.5,12 C16.5,14.5 7.5,15 7.5,20.5 M16.5,3.5 C16.5,9 7.5,9.5 7.5,12 C7.5,14.5 16.5,15 16.5,20.5</Geometry>
<Geometry x:Key="IcoGift">M4,10.5 L20,10.5 L20,20.5 L4,20.5 Z M3,7 L21,7 L21,10.5 L3,10.5 Z M12,7 L12,20.5 M12,7 C10.5,4 7,3.5 7,5.5 C7,7 10,7 12,7 C14,7 17,7 17,5.5 C17,3.5 13.5,4 12,7</Geometry>
<Geometry x:Key="IcoSliders">M4,7 L7,7 M11,7 L20,7 M4,12 L13,12 M17,12 L20,12 M4,17 L5,17 M9,17 L20,17 M11,7 A2,2 0 1 1 7,7 A2,2 0 1 1 11,7 M17,12 A2,2 0 1 1 13,12 A2,2 0 1 1 17,12 M9,17 A2,2 0 1 1 5,17 A2,2 0 1 1 9,17</Geometry>
<Geometry x:Key="IcoFedora">M2.5,15.5 C2.5,13.6 21.5,13.6 21.5,15.5 C21.5,17.2 2.5,17.2 2.5,15.5 Z M6.5,14.4 C6.5,10 7.5,6.5 9.5,6.5 C10.6,6.5 11,7.6 12,7.6 C13,7.6 13.4,6.5 14.5,6.5 C16.5,6.5 17.5,10 17.5,14.4 Z</Geometry>
<Geometry x:Key="IcoPlay">M8,5 L19,12 L8,19 Z</Geometry>
<Geometry x:Key="IcoStop">M6.5,6.5 L17.5,6.5 L17.5,17.5 L6.5,17.5 Z</Geometry>
<Geometry x:Key="IcoScan">M4.5,10.5 A6,6 0 1 1 16.5,10.5 A6,6 0 1 1 4.5,10.5 M15,15 L20,20</Geometry>
<Geometry x:Key="IcoWarn">M12,4 L21,20 L3,20 Z M12,10 L12,14 M12,17 L12,17.3</Geometry>
<Geometry x:Key="IcoFolder">M3,6.5 L9,6.5 L11,8.5 L21,8.5 L21,19 L3,19 Z</Geometry>
<Geometry x:Key="IcoLog">M8,6 L20,6 M8,12 L20,12 M8,18 L20,18 M4,6 L4.2,6 M4,12 L4.2,12 M4,18 L4.2,18</Geometry>
<Geometry x:Key="IcoShield">M12,3 L19.5,5.8 L19.5,11.5 C19.5,16.2 16.4,19.6 12,21 C7.6,19.6 4.5,16.2 4.5,11.5 L4.5,5.8 Z M8.8,12 L11.1,14.3 L15.4,9.8</Geometry>
<Geometry x:Key="IcoFlag">M5.5,21 L5.5,3.5 M5.5,4.5 L18.5,4.5 L15.5,9 L18.5,13.5 L5.5,13.5</Geometry>
<Geometry x:Key="IcoFamily">M9,11.5 A3.5,3.5 0 1 1 9,4.5 A3.5,3.5 0 1 1 9,11.5 M2.5,20.5 C2.5,16.4 5.4,14 9,14 C12.6,14 15.5,16.4 15.5,20.5 M16,4.7 A3.3,3.3 0 0 1 16,11.3 M17.8,14.4 C20,15.2 21.5,17.4 21.5,20.5</Geometry>
<!-- a henchman: head and shoulders under a fedora -->
<Geometry x:Key="IcoCrew">M8.8,8.2 A3.6,3.6 0 1 0 15.2,8.2 M4.5,21 C4.5,17 7.8,14.8 12,14.8 C16.2,14.8 19.5,17 19.5,21 M5.5,8 L18.5,8 M8.5,8 L9.2,3.5 L14.8,3.5 L15.5,8</Geometry>
<Geometry x:Key="IcoStar">M12,3.5 L14.6,8.9 L20.5,9.6 L16.1,13.6 L17.3,19.5 L12,16.6 L6.7,19.5 L7.9,13.6 L3.5,9.6 L9.4,8.9 Z</Geometry>
<Geometry x:Key="IcoHeart">M12,21 C5,15.6 2,12.2 2,8.4 C2,5.4 4.4,3 7.3,3 C9.1,3 10.9,3.9 12,5.4 C13.1,3.9 14.9,3 16.7,3 C19.6,3 22,5.4 22,8.4 C22,12.2 19,15.6 12,21 Z</Geometry>
<Geometry x:Key="IcoMonitor">M3.5,4.5 L20.5,4.5 L20.5,16 L3.5,16 Z M8.5,20.5 L15.5,20.5 M12,16 L12,20.5</Geometry>
<Geometry x:Key="IcoPlug">M9,3 L9,7.5 M15,3 L15,7.5 M6.5,7.5 L17.5,7.5 L17.5,10.5 C17.5,13.8 15,16.2 12,16.2 C9,16.2 6.5,13.8 6.5,10.5 Z M12,16.2 L12,21</Geometry>
<Geometry x:Key="IcoBolt">M13.5,2.5 L5.5,13.5 L11.5,13.5 L10.5,21.5 L18.5,10.2 L12.5,10.2 Z</Geometry>
<!-- the Gear page (08-10): a shirt for the gear on, a bag for the shop -->
<Geometry x:Key="IcoGear">M8.5,3.5 L3.5,6.5 L5.5,11 L7.5,10 L7.5,20.5 L16.5,20.5 L16.5,10 L18.5,11 L20.5,6.5 L15.5,3.5 C14.8,5.2 13.6,6 12,6 C10.4,6 9.2,5.2 8.5,3.5 Z</Geometry>
<Geometry x:Key="IcoBag">M5,8.5 L19,8.5 L18,20.5 L6,20.5 Z M9,8.5 L9,7 A3,3 0 0 1 15,7 L15,8.5</Geometry>
<Geometry x:Key="IcoDownload">M12,3.5 L12,14.5 M7.5,10.5 L12,15 L16.5,10.5 M4.5,19.5 L19.5,19.5</Geometry>
<Geometry x:Key="IcoLock">M6.5,11 L17.5,11 L17.5,20.5 L6.5,20.5 Z M8.5,11 L8.5,8 A3.5,3.5 0 0 1 15.5,8 L15.5,11 M12,14.5 L12,17</Geometry>
<!-- 11-10: each card its own icon (the Takedown, the events and the stats shared one before) -->
<Geometry x:Key="IcoTarget">M3.5,12 A8.5,8.5 0 1 1 20.5,12 A8.5,8.5 0 1 1 3.5,12 M8.5,12 A3.5,3.5 0 1 1 15.5,12 A3.5,3.5 0 1 1 8.5,12 M12,1.5 L12,5.5 M12,18.5 L12,22.5 M1.5,12 L5.5,12 M18.5,12 L22.5,12</Geometry>
<Geometry x:Key="IcoCalendar">M3.5,6 L20.5,6 L20.5,20.5 L3.5,20.5 Z M3.5,10.5 L20.5,10.5 M8,3.5 L8,8 M16,3.5 L16,8 M7.5,14.5 L8,14.5 M11.75,14.5 L12.25,14.5 M16,14.5 L16.5,14.5</Geometry>
<Geometry x:Key="IcoChart">M3.5,20.5 L20.5,20.5 M7,20.5 L7,13 M12,20.5 L12,8 M17,20.5 L17,4</Geometry>
<!-- Discord's mascot, filled (Fill, not the Icon style's stroke): the eyes are holes -->
<Geometry x:Key="IcoDiscord">F0 M19.6,5.4 C18.1,4.7 16.6,4.2 15,4 L14.5,5.1 C12.8,4.85 11.2,4.85 9.5,5.1 L9,4 C7.4,4.2 5.9,4.7 4.4,5.4 C1.6,9.6 0.9,13.7 1.2,17.7 C3.1,19.1 4.9,19.9 6.7,20.5 L7.9,18.6 C7.2,18.3 6.6,18 6,17.6 L6.4,17.3 C10.1,19 13.9,19 17.6,17.3 L18,17.6 C17.4,18 16.8,18.3 16.1,18.6 L17.3,20.5 C19.1,19.9 20.9,19.1 22.8,17.7 C23.2,13.1 22.1,9.1 19.6,5.4 Z M8.4,11.5 A1.9,2.1 0 1 0 8.4,15.7 A1.9,2.1 0 1 0 8.4,11.5 Z M15.6,11.5 A1.9,2.1 0 1 0 15.6,15.7 A1.9,2.1 0 1 0 15.6,11.5 Z</Geometry>
<!-- the game's rarity colours (HIRE ODDS, sampled 29-09) -->
<SolidColorBrush x:Key="RarityCommon" Color="#B4B4B4"/>
<SolidColorBrush x:Key="RarityUncommon" Color="#7CBC7C"/>
<SolidColorBrush x:Key="RarityRare" Color="#6C9CDC"/>
<SolidColorBrush x:Key="RarityEpic" Color="#AC7CDC"/>
<SolidColorBrush x:Key="RarityLegendary" Color="#D4AC34"/>
<SolidColorBrush x:Key="RarityMythic" Color="#EC547C"/>
<SolidColorBrush x:Key="RaritySecret" Color="#5CDCD4"/>
<SolidColorBrush x:Key="RarityForbidden" Color="#DC2424"/>
<!-- a group of settings: its title above, the settings in a box (15-10: no icon any more; Tag left unused) -->
<Style x:Key="Section" TargetType="HeaderedContentControl">
<Setter Property="Focusable" Value="False"/>
<Setter Property="Margin" Value="0,0,0,14"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="HeaderedContentControl">
<DockPanel>
<TextBlock DockPanel.Dock="Top" Text="{Binding Header, RelativeSource={RelativeSource TemplatedParent}}" FontFamily="{StaticResource Display}"
FontWeight="SemiBold" FontSize="13" Foreground="{StaticResource Text2}" Margin="4,0,0,8"/>
<Border Background="{StaticResource Panel}" CornerRadius="10" BorderBrush="{StaticResource LineSoft}" BorderThickness="1" Padding="18,14,18,14">
<ContentPresenter/>
</Border>
</DockPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- a long part of a card folded closed until opened (14-10, instead of tabs inside the pages): a ToggleButton named Fold_Name
in the card's title row shows the element Name (UiWindow.WireLayout); "Show" with a chevron, "Hide" when open -->
<Style x:Key="Fold" TargetType="ToggleButton">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="Foreground" Value="{StaticResource Text2}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToggleButton">
<Border x:Name="Bd" Background="{StaticResource Raised}" BorderBrush="{StaticResource Line}" BorderThickness="1" CornerRadius="8" Padding="11,4,10,5">
<StackPanel Orientation="Horizontal">
<TextBlock x:Name="T" Text="Show" FontSize="12.5" FontWeight="SemiBold" Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center"/>
<Path x:Name="Chev" Data="M0,0 L4.5,4.5 L9,0" Stroke="{StaticResource Gold}" StrokeThickness="1.7" StrokeStartLineCap="Round"
StrokeEndLineCap="Round" StrokeLineJoin="Round" Margin="8,2,0,0" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5"/>
</StackPanel>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Raised2}"/>
<Setter Property="Foreground" Value="{StaticResource Text}"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="T" Property="Text" Value="Hide"/>
<Setter TargetName="Chev" Property="RenderTransform"><Setter.Value><RotateTransform Angle="180"/></Setter.Value></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- a task as a tile (15-10, in place of switches): lit gold when on,
dark when off; a click turns it on or off. Tag is the icon. Uid "1": it has options, a ••• button in its corner opens them
(UiWindow.WireTiles; the button takes its own click, so the tile doesn't flip) -->
<Geometry x:Key="IcoClock">M3.5,12 A8.5,8.5 0 1 1 20.5,12 A8.5,8.5 0 1 1 3.5,12 M12,7 L12,12 L15.5,14</Geometry>
<Geometry x:Key="IcoReroll">M19.5,8.5 A8,8 0 0 0 5,7.5 M4.5,3.5 L5,7.5 L9,7 M4.5,15.5 A8,8 0 0 0 19,16.5 M19.5,20.5 L19,16.5 L15,17</Geometry>
<!-- a noir city at night (15-10): far and near buildings and their lit windows, drawn in a 1600x240 box -->
<Geometry x:Key="SkylineFar">M-10,149 h56 v91 h-56 Z M52,130 h32 v110 h-32 Z M89,109 h30 v131 h-30 Z M122,126 h26 v114 h-26 Z M150,82 h58 v158 h-58 Z M210,61 h53 v179 h-53 Z M267,87 h63 v153 h-63 Z M334,61 h69 v179 h-69 Z M409,52 h34 v188 h-34 Z M425,35 h2 v34 h-2 Z M444,62 h64 v178 h-64 Z M512,107 h66 v133 h-66 Z M544,78 h2 v34 h-2 Z M583,116 h50 v124 h-50 Z M595,102 h25 v24 h-25 Z M636,62 h70 v178 h-70 Z M706,103 h34 v137 h-34 Z M745,51 h49 v189 h-49 Z M798,109 h49 v131 h-49 Z M810,88 h24 v24 h-24 Z M852,76 h66 v164 h-66 Z M919,90 h55 v150 h-55 Z M945,73 h2 v34 h-2 Z M980,107 h53 v133 h-53 Z M993,82 h26 v16 h-26 Z M1039,126 h63 v114 h-63 Z M1105,76 h55 v164 h-55 Z M1162,72 h31 v168 h-31 Z M1176,58 h2 v34 h-2 Z M1193,149 h35 v91 h-35 Z M1230,148 h32 v92 h-32 Z M1265,42 h60 v198 h-60 Z M1329,147 h59 v93 h-59 Z M1388,40 h46 v200 h-46 Z M1399,18 h23 v14 h-23 Z M1438,122 h33 v118 h-33 Z M1453,92 h2 v34 h-2 Z M1475,117 h47 v123 h-47 Z M1487,96 h23 v26 h-23 Z M1528,64 h55 v176 h-55 Z M1588,127 h30 v113 h-30 Z</Geometry>
<Geometry x:Key="SkylineNear">M-10,158 h54 v82 h-54 Z M58,143 h63 v97 h-63 Z M128,102 h103 v138 h-103 Z M178,80 h2 v34 h-2 Z M232,185 h98 v55 h-98 Z M256,167 h49 v23 h-49 Z M344,187 h64 v53 h-64 Z M375,172 h2 v34 h-2 Z M408,127 h58 v113 h-58 Z M436,104 h2 v34 h-2 Z M472,116 h69 v124 h-69 Z M549,160 h51 v80 h-51 Z M601,148 h102 v92 h-102 Z M706,101 h89 v139 h-89 Z M749,70 h2 v34 h-2 Z M809,94 h89 v146 h-89 Z M901,111 h60 v129 h-60 Z M962,126 h54 v114 h-54 Z M1020,171 h88 v69 h-88 Z M1115,140 h64 v100 h-64 Z M1188,147 h101 v93 h-101 Z M1289,125 h57 v115 h-57 Z M1303,110 h28 v11 h-28 Z M1349,107 h98 v133 h-98 Z M1373,81 h49 v25 h-49 Z M1461,128 h101 v112 h-101 Z M1486,112 h50 v15 h-50 Z M1562,165 h53 v75 h-53 Z M1587,137 h2 v34 h-2 Z</Geometry>
<Geometry x:Key="SkylineWindows">M9,168 h5 v7 h-5 Z M65,185 h5 v7 h-5 Z M77,153 h5 v7 h-5 Z M77,201 h5 v7 h-5 Z M147,128 h5 v7 h-5 Z M147,144 h5 v7 h-5 Z M183,208 h5 v7 h-5 Z M207,144 h5 v7 h-5 Z M239,211 h5 v7 h-5 Z M275,211 h5 v7 h-5 Z M287,211 h5 v7 h-5 Z M299,211 h5 v7 h-5 Z M375,213 h5 v7 h-5 Z M439,137 h5 v7 h-5 Z M479,158 h5 v7 h-5 Z M491,174 h5 v7 h-5 Z M556,202 h5 v7 h-5 Z M580,218 h5 v7 h-5 Z M608,174 h5 v7 h-5 Z M608,206 h5 v7 h-5 Z M620,158 h5 v7 h-5 Z M656,158 h5 v7 h-5 Z M656,174 h5 v7 h-5 Z M656,206 h5 v7 h-5 Z M668,190 h5 v7 h-5 Z M668,206 h5 v7 h-5 Z M737,207 h5 v7 h-5 Z M749,191 h5 v7 h-5 Z M761,127 h5 v7 h-5 Z M761,143 h5 v7 h-5 Z M816,216 h5 v7 h-5 Z M852,200 h5 v7 h-5 Z M876,152 h5 v7 h-5 Z M876,184 h5 v7 h-5 Z M932,169 h5 v7 h-5 Z M944,217 h5 v7 h-5 Z M969,200 h5 v7 h-5 Z M981,152 h5 v7 h-5 Z M993,136 h5 v7 h-5 Z M993,200 h5 v7 h-5 Z M1075,213 h5 v7 h-5 Z M1134,182 h5 v7 h-5 Z M1158,166 h5 v7 h-5 Z M1195,157 h5 v7 h-5 Z M1296,135 h5 v7 h-5 Z M1308,151 h5 v7 h-5 Z M1320,167 h5 v7 h-5 Z M1320,199 h5 v7 h-5 Z M1368,133 h5 v7 h-5 Z M1392,197 h5 v7 h-5 Z M1404,133 h5 v7 h-5 Z M1416,165 h5 v7 h-5 Z M1416,181 h5 v7 h-5 Z M1416,197 h5 v7 h-5 Z M1468,186 h5 v7 h-5 Z M1480,138 h5 v7 h-5 Z M1492,218 h5 v7 h-5 Z M1504,170 h5 v7 h-5 Z M1516,170 h5 v7 h-5 Z M1516,202 h5 v7 h-5 Z</Geometry>
<!-- a tile's colour when on: each group on the Tasks page sets its own TileAccent (16-10: "more colour/life"),
elsewhere it's gold -->
<SolidColorBrush x:Key="TileAccent" Color="#E2BD45"/>
<Style x:Key="TaskTile" TargetType="CheckBox">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="Margin" Value="0,0,10,10"/>
<Setter Property="Height" Value="100"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid x:Name="Root" RenderTransformOrigin="0.5,0.5">
<Grid.RenderTransform><ScaleTransform x:Name="Scale" ScaleX="1" ScaleY="1"/></Grid.RenderTransform>
<!-- the gold glow of the task the bot is doing right now (UiWindow.GlowTiles pulses it) -->
<Border x:Name="Glow" CornerRadius="11.5" Margin="-1.5" Background="#D4AF37" Opacity="0" Visibility="Collapsed">
<Border.Effect><DropShadowEffect Color="#E8C04A" BlurRadius="24" ShadowDepth="0" Opacity="1"/></Border.Effect>
</Border>
<!-- off: dark and grey -->
<Border x:Name="Bd" CornerRadius="10" BorderThickness="1" BorderBrush="#242427">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#1C1C1F" Offset="0"/>
<GradientStop Color="#151517" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
</Border>
<!-- on: the accent fades in over it - a tint from the top left, the edge, a line along the top, the icon and dot -->
<Grid x:Name="On" Opacity="0" IsHitTestVisible="False">
<Border CornerRadius="10" Background="#141416"/>
<Border CornerRadius="10" Background="{DynamicResource TileAccent}" Opacity="0.2">
<Border.OpacityMask>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#FF000000" Offset="0"/>
<GradientStop Color="#22000000" Offset="1"/>
</LinearGradientBrush>
</Border.OpacityMask>
</Border>
<Border CornerRadius="10" BorderThickness="1" BorderBrush="{DynamicResource TileAccent}" Opacity="0.55"/>
<Border Height="2" VerticalAlignment="Top" Margin="12,0.5,12,0" CornerRadius="1" Background="{DynamicResource TileAccent}">
<Border.OpacityMask>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="#00000000" Offset="0"/>
<GradientStop Color="#FF000000" Offset="0.3"/>
<GradientStop Color="#00000000" Offset="1"/>
</LinearGradientBrush>
</Border.OpacityMask>
</Border>
<Grid Margin="14,12,9,10">
<Path Data="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" Width="20" Height="20" Stroke="{DynamicResource TileAccent}"
Stretch="Uniform" StrokeThickness="1.8" StrokeLineJoin="Round" StrokeStartLineCap="Round" StrokeEndLineCap="Round"
HorizontalAlignment="Left" VerticalAlignment="Top"/>
<Ellipse x:Name="OnDot" Width="7" Height="7" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,2,4,0" Fill="{DynamicResource TileAccent}">
<Ellipse.Effect><DropShadowEffect Color="White" BlurRadius="8" ShadowDepth="0" Opacity="0.35"/></Ellipse.Effect>
</Ellipse>
</Grid>
</Grid>
<Grid Margin="14,12,9,10">
<Path x:Name="Ico" Data="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" Width="20" Height="20" Stroke="#6F6B61"
Stretch="Uniform" StrokeThickness="1.8" StrokeLineJoin="Round" StrokeStartLineCap="Round" StrokeEndLineCap="Round"
HorizontalAlignment="Left" VerticalAlignment="Top"/>
<Ellipse x:Name="Dot" Width="7" Height="7" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,2,4,0" Fill="#2F2F32"/>
<StackPanel x:Name="Texts" VerticalAlignment="Bottom" Margin="0,0,4,0">
<TextBlock x:Name="Name" Text="{TemplateBinding Content}" FontSize="{TemplateBinding FontSize}" TextWrapping="Wrap" TextTrimming="None" LineHeight="16">
<TextBlock.Foreground><SolidColorBrush x:Name="NameBrush" Color="#A8A292"/></TextBlock.Foreground>
</TextBlock>
<!-- a live line (UiWindow.UpdateTileStatus): the next boss, the favors, an operation's time... -->
<TextBlock x:Name="Status" Text="" FontSize="11.5" Foreground="{StaticResource Text3}" Margin="0,2,0,0" TextTrimming="CharacterEllipsis"/>
</StackPanel>
<Button x:Name="MoreBtn" Visibility="Collapsed" Focusable="False" Cursor="Hand" ToolTip="Options" Width="28" Height="22"
HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,-4,-3,0">
<Button.Template>
<ControlTemplate TargetType="Button">
<Border x:Name="B" Background="Transparent" CornerRadius="6">
<TextBlock x:Name="T" Text="&#x2022;&#x2022;&#x2022;" FontSize="10" Foreground="{StaticResource Text3}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="B" Property="Background" Value="{StaticResource Raised2}"/>
<Setter TargetName="T" Property="Foreground" Value="{StaticResource Text}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
</Grid>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Uid" Value="1">
<Setter TargetName="MoreBtn" Property="Visibility" Value="Visible"/>
<Setter TargetName="Dot" Property="Opacity" Value="0"/>
<Setter TargetName="OnDot" Property="Opacity" Value="0"/>
</Trigger>
<!-- on: its colour fades in; off: it dims again -->
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="Status" Property="Foreground" Value="{DynamicResource TileAccent}"/>
<Setter TargetName="Ico" Property="Visibility" Value="Hidden"/>
<Setter TargetName="Dot" Property="Visibility" Value="Hidden"/>
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="On" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.22"/>
<ColorAnimation Storyboard.TargetName="NameBrush" Storyboard.TargetProperty="Color" To="#F0EAD8" Duration="0:0:0.22"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="On" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.22"/>
<ColorAnimation Storyboard.TargetName="NameBrush" Storyboard.TargetProperty="Color" To="#A8A292" Duration="0:0:0.22"/>
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
</Trigger>
<!-- under the mouse it comes a little closer -->
<Trigger Property="IsMouseOver" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="Scale" Storyboard.TargetProperty="ScaleX" To="1.035" Duration="0:0:0.12"/>
<DoubleAnimation Storyboard.TargetName="Scale" Storyboard.TargetProperty="ScaleY" To="1.035" Duration="0:0:0.12"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="Scale" Storyboard.TargetProperty="ScaleX" To="1" Duration="0:0:0.15"/>
<DoubleAnimation Storyboard.TargetName="Scale" Storyboard.TargetProperty="ScaleY" To="1" Duration="0:0:0.15"/>
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
</Trigger>
<Trigger SourceName="Status" Property="Text" Value=""><Setter TargetName="Status" Property="Visibility" Value="Collapsed"/></Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="Root" Property="Margin" Value="0,1,0,-1"/>
</Trigger>
<!-- greyed out: what it depends on is off -->
<Trigger Property="IsEnabled" Value="False"><Setter TargetName="Root" Property="Opacity" Value="0.35"/></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- a group of tiles on the Tasks page (16-10): a card in the group's colour (its own TileAccent), its name and "N of M on"
(UiWindow.UpdateTileStatus fills Count); the content is a UniformGrid of tiles -->
<Style x:Key="TaskGroup" TargetType="HeaderedContentControl">
<Setter Property="Focusable" Value="False"/>
<Setter Property="Margin" Value="0,0,12,12"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="HeaderedContentControl">
<Border CornerRadius="12" Background="#131315" BorderBrush="#1F1F22" BorderThickness="1" ClipToBounds="True">
<Grid>
<Border Height="70" VerticalAlignment="Top" Background="{DynamicResource TileAccent}" Opacity="0.08" CornerRadius="12,12,0,0">
<Border.OpacityMask>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#FF000000" Offset="0"/>
<GradientStop Color="#00000000" Offset="1"/>
</LinearGradientBrush>
</Border.OpacityMask>
</Border>
<DockPanel Margin="14,11,4,4">
<Grid DockPanel.Dock="Top" Margin="2,0,12,9">
<StackPanel Orientation="Horizontal">
<Border Width="4" Height="15" CornerRadius="2" Background="{DynamicResource TileAccent}" VerticalAlignment="Center"/>
<TextBlock Text="{Binding Header, RelativeSource={RelativeSource TemplatedParent}}" FontFamily="{StaticResource Deco}" FontSize="16" Foreground="{StaticResource Text}"
Margin="9,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
<TextBlock x:Name="Count" Text="" FontSize="12" Foreground="{StaticResource Text3}" HorizontalAlignment="Right" VerticalAlignment="Center"/>
</Grid>
<ContentPresenter/>
</DockPanel>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<LinearGradientBrush x:Key="BloodGrad" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#8A0F0F" Offset="0"/>
<GradientStop Color="#D63A2C" Offset="0.5"/>
<GradientStop Color="#5E0909" Offset="1"/>
</LinearGradientBrush>
<PathGeometry x:Key="BloodV1" Figures="M4,0 L10,0 C9,8 9.2,10 8.6,14 C8,20 8.6,24 7,27 C5.4,24 6,20 5.4,14 C4.8,10 5,8 4,0 Z"/>
<PathGeometry x:Key="BloodV2" Figures="M2,0 L12,0 C12,8 13,12 13,16 C13,23 10,28 7,28 C4,28 1,23 1,16 C1,12 2,8 2,0 Z"/>
<PathGeometry x:Key="BloodV3" Figures="M3,0 L11,0 L10,11 L12.5,21 L9.5,19 L7,26 L4.5,19 L1.5,21 L4,11 Z"/>
<PathGeometry x:Key="BloodV4" Figures="M0,0 L14,0 L14,4 L11,4 L11,14 C11,18 10.4,20 9.6,20 C8.8,20 8.4,18 8.4,14 L8.4,4 L5.6,4 L5.6,10 C5.6,13 5.2,14.5 4.6,14.5 C4,14.5 3.6,13 3.6,10 L3.6,4 L0,4 Z"/>
<PathGeometry x:Key="BloodV5" Figures="M5,0 L9,0 L8.2,18 L7,28 L5.8,18 Z"/>
<PathGeometry x:Key="BloodV6" Figures="M6.4,0 L7.6,0 L7.6,24 L6.4,24 Z M4,4 a3,3 0 1,0 6,0 a3,3 0 1,0 -6,0 M4.5,11.5 a2.5,2.5 0 1,0 5,0 a2.5,2.5 0 1,0 -5,0 M5,18.5 a2,2 0 1,0 4,0 a2,2 0 1,0 -4,0"/>
<PathGeometry x:Key="Blood1" Figures="M4,0 L10,0 C9,8 9.2,10 8.6,14 C8,20 8.6,24 7,27 C5.4,24 6,20 5.4,14 C4.8,10 5,8 4,0 Z"/>
<PathGeometry x:Key="Blood2" Figures="M2,0 L12,0 C12,8 13,12 13,16 C13,23 10,28 7,28 C4,28 1,23 1,16 C1,12 2,8 2,0 Z"/>
<PathGeometry x:Key="Blood3" Figures="M3,0 L11,0 L10,11 L12.5,21 L9.5,19 L7,26 L4.5,19 L1.5,21 L4,11 Z"/>
<!-- one of Home's numbers (16-10): a small card in its own colour (its TileAccent), the icon in a tinted circle on the right -->
<Style x:Key="StatTile" TargetType="ContentControl">
<Setter Property="Focusable" Value="False"/>
<Setter Property="Margin" Value="0,0,10,0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ContentControl">
<Grid>
<Border x:Name="Bd" CornerRadius="10" Background="#17171A" BorderBrush="#242427" BorderThickness="1"/>
<Border CornerRadius="10" Background="{DynamicResource TileAccent}" Opacity="0.1">
<Border.OpacityMask>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#FF000000" Offset="0"/>
<GradientStop Color="#00000000" Offset="1"/>
</LinearGradientBrush>
</Border.OpacityMask>
</Border>
<Border Height="2" VerticalAlignment="Top" Margin="12,0.5,12,0" CornerRadius="1" Background="{DynamicResource TileAccent}">
<Border.OpacityMask>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="#00000000" Offset="0"/>
<GradientStop Color="#FF000000" Offset="0.3"/>
<GradientStop Color="#00000000" Offset="1"/>
</LinearGradientBrush>
</Border.OpacityMask>
</Border>
<Grid Margin="15,10,12,10">
<ContentPresenter VerticalAlignment="Center"/>
<Grid Width="34" Height="34" HorizontalAlignment="Right" VerticalAlignment="Center">
<Ellipse Fill="{DynamicResource TileAccent}" Opacity="0.15"/>
<Path Data="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" Width="16" Height="16" Stroke="{DynamicResource TileAccent}"
Stretch="Uniform" StrokeThickness="1.8" StrokeLineJoin="Round" StrokeStartLineCap="Round" StrokeEndLineCap="Round"/>
</Grid>
</Grid>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Raised}"/>
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource Line}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- a tool as a tile (16-10, Settings): a button that looks like a task's tile, its icon (Tag) in the group's colour, its name
a TextBlock as content; Uid "1" is the main one (always lit), the others light up under the mouse -->
<Style x:Key="ActionTile" TargetType="Button">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="Margin" Value="0,0,10,10"/>
<Setter Property="Height" Value="100"/>
<Setter Property="Foreground" Value="#E0DACA"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid x:Name="Root" RenderTransformOrigin="0.5,0.5">
<Grid.RenderTransform><ScaleTransform x:Name="Scale" ScaleX="1" ScaleY="1"/></Grid.RenderTransform>
<Border CornerRadius="10" BorderThickness="1" BorderBrush="#242427">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#1C1C1F" Offset="0"/>
<GradientStop Color="#151517" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
</Border>
<Grid x:Name="Prime" Visibility="Collapsed" IsHitTestVisible="False">
<Border CornerRadius="10" Background="{DynamicResource TileAccent}" Opacity="0.2">
<Border.OpacityMask>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#FF000000" Offset="0"/>
<GradientStop Color="#22000000" Offset="1"/>
</LinearGradientBrush>
</Border.OpacityMask>
</Border>
<Border CornerRadius="10" BorderThickness="1" BorderBrush="{DynamicResource TileAccent}" Opacity="0.55"/>
</Grid>
<Grid x:Name="Hi" Opacity="0" IsHitTestVisible="False">
<Border CornerRadius="10" Background="{DynamicResource TileAccent}" Opacity="0.12"/>
<Border CornerRadius="10" BorderThickness="1" BorderBrush="{DynamicResource TileAccent}" Opacity="0.45"/>
</Grid>
<Grid Margin="14,12,9,10">
<Path Data="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" Width="20" Height="20" Stroke="{DynamicResource TileAccent}"
Stretch="Uniform" StrokeThickness="1.8" StrokeLineJoin="Round" StrokeStartLineCap="Round" StrokeEndLineCap="Round"
HorizontalAlignment="Left" VerticalAlignment="Top"/>
<ContentPresenter VerticalAlignment="Bottom" Margin="0,0,4,0"/>
</Grid>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Uid" Value="1"><Setter TargetName="Prime" Property="Visibility" Value="Visible"/></Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="Hi" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.12"/>
<DoubleAnimation Storyboard.TargetName="Scale" Storyboard.TargetProperty="ScaleX" To="1.035" Duration="0:0:0.12"/>
<DoubleAnimation Storyboard.TargetName="Scale" Storyboard.TargetProperty="ScaleY" To="1.035" Duration="0:0:0.12"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="Hi" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.15"/>
<DoubleAnimation Storyboard.TargetName="Scale" Storyboard.TargetProperty="ScaleX" To="1" Duration="0:0:0.15"/>
<DoubleAnimation Storyboard.TargetName="Scale" Storyboard.TargetProperty="ScaleY" To="1" Duration="0:0:0.15"/>
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
</Trigger>
<Trigger Property="IsPressed" Value="True"><Setter TargetName="Root" Property="Margin" Value="0,1,0,-1"/></Trigger>
<Trigger Property="IsEnabled" Value="False"><Setter TargetName="Root" Property="Opacity" Value="0.45"/></Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- a smaller tile for a task's own options (in its options window) and Settings: the name and the dot -->
<Style x:Key="OptTile" TargetType="CheckBox" BasedOn="{StaticResource TaskTile}">
<Setter Property="Height" Value="60"/>
</Style>
<!-- the options window's parts: a group's small title, a line with a name on the left and its choice on the right -->
<Style x:Key="OptHead" TargetType="TextBlock">
<Setter Property="FontFamily" Value="{StaticResource Display}"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="Foreground" Value="{StaticResource Text2}"/>
<Setter Property="Margin" Value="0,18,0,10"/>
</Style>
<Style x:Key="OptName" TargetType="TextBlock">
<Setter Property="FontSize" Value="14"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Margin" Value="0,0,16,0"/>
</Style>
<Style x:Key="OptLine" TargetType="Border">
<Setter Property="Background" Value="{StaticResource Panel}"/>
<Setter Property="BorderBrush" Value="{StaticResource LineSoft}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="10"/>
<Setter Property="Padding" Value="14,10"/>
<Setter Property="Margin" Value="0,0,0,10"/>
</Style>
<!-- tooltips: a text wraps -->
<Style TargetType="ToolTip">
<Setter Property="Background" Value="{StaticResource Raised}"/>
<Setter Property="Foreground" Value="{StaticResource Text}"/>
<Setter Property="BorderBrush" Value="{StaticResource Line}"/>
<Setter Property="Padding" Value="12,8"/>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock Text="{Binding}" TextWrapping="Wrap" MaxWidth="420" FontSize="13" LineHeight="19"/>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>