222 lines
13 KiB
XML
222 lines
13 KiB
XML
<Application x:Class="Character_Builder.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
StartupUri="MainWindow.xaml">
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<SolidColorBrush x:Key="Bg" Color="#14151A"/>
|
|
<SolidColorBrush x:Key="Panel" Color="#1E2028"/>
|
|
<SolidColorBrush x:Key="Panel2" Color="#262933"/>
|
|
<SolidColorBrush x:Key="Stroke" Color="#343845"/>
|
|
<SolidColorBrush x:Key="Accent" Color="#4CC2FF"/>
|
|
<SolidColorBrush x:Key="AccentDk" Color="#04222F"/>
|
|
<SolidColorBrush x:Key="Text" Color="#EDEFF2"/>
|
|
<SolidColorBrush x:Key="Dim" Color="#A8ADB8"/>
|
|
<SolidColorBrush x:Key="Mute" Color="#6E7480"/>
|
|
|
|
<Style TargetType="TextBlock">
|
|
<Setter Property="Foreground" Value="{StaticResource Text}"/>
|
|
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
|
<Setter Property="FontSize" Value="18"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Label" TargetType="TextBlock">
|
|
<Setter Property="Foreground" Value="{StaticResource Dim}"/>
|
|
<Setter Property="FontSize" Value="17"/>
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="Margin" Value="0,16,0,6"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Card" TargetType="Border">
|
|
<Setter Property="Background" Value="{StaticResource Panel}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Stroke}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="CornerRadius" Value="12"/>
|
|
</Style>
|
|
|
|
<!-- Button (subtle) -->
|
|
<Style TargetType="Button">
|
|
<Setter Property="Foreground" Value="{StaticResource Text}"/>
|
|
<Setter Property="Background" Value="{StaticResource Panel2}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Stroke}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Height" Value="46"/>
|
|
<Setter Property="Padding" Value="18,0"/>
|
|
<Setter Property="FontSize" Value="19"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="b" Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="8" Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="b" Property="BorderBrush" Value="{StaticResource Accent}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="b" Property="Opacity" Value="0.75"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="b" Property="Opacity" Value="0.4"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!-- Window caption (title bar) buttons -->
|
|
<Style x:Key="CaptionButton" TargetType="Button">
|
|
<Setter Property="Width" Value="50"/>
|
|
<Setter Property="Height" Value="36"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Dim}"/>
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="FontFamily" Value="Segoe MDL2 Assets"/>
|
|
<Setter Property="FontSize" Value="10"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="cb" Background="{TemplateBinding Background}" CornerRadius="6">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="cb" Property="Background" Value="{StaticResource Panel2}"/>
|
|
<Setter Property="Foreground" Value="{StaticResource Text}"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="CaptionClose" TargetType="Button" BasedOn="{StaticResource CaptionButton}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="cb" Background="{TemplateBinding Background}" CornerRadius="6">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="cb" Property="Background" Value="#E23B3B"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="AccentButton" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Background" Value="{StaticResource Accent}"/>
|
|
<Setter Property="Foreground" Value="{StaticResource AccentDk}"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
</Style>
|
|
|
|
<!-- Dark ComboBox: readable light text on both the closed box and the dropdown -->
|
|
<Style TargetType="ComboBoxItem">
|
|
<Setter Property="Foreground" Value="{StaticResource Text}"/>
|
|
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
|
<Setter Property="FontSize" Value="19"/>
|
|
<Setter Property="Padding" Value="12,8"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ComboBoxItem">
|
|
<Border x:Name="ib" Background="Transparent" CornerRadius="6"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsHighlighted" Value="True">
|
|
<Setter TargetName="ib" Property="Background" Value="#12344A"/>
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="ib" Property="Background" Value="#173B52"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="ComboToggle" TargetType="ToggleButton">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ToggleButton">
|
|
<Border Background="Transparent"/>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="ComboBox">
|
|
<Setter Property="Foreground" Value="{StaticResource Text}"/>
|
|
<Setter Property="Background" Value="{StaticResource Panel2}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Stroke}"/>
|
|
<Setter Property="Height" Value="44"/>
|
|
<Setter Property="Padding" Value="12,0"/>
|
|
<Setter Property="FontSize" Value="19"/>
|
|
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ComboBox">
|
|
<Grid>
|
|
<Border x:Name="box" Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1"
|
|
CornerRadius="8"/>
|
|
<ToggleButton Style="{StaticResource ComboToggle}"
|
|
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
|
|
<ContentPresenter x:Name="sel" Margin="10,0,30,0"
|
|
Content="{TemplateBinding SelectionBoxItem}"
|
|
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
|
|
IsHitTestVisible="False"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center"
|
|
TextElement.Foreground="{StaticResource Text}"/>
|
|
<Path x:Name="arrow" Data="M0,0 L8,0 L4,5 Z" Fill="{StaticResource Dim}"
|
|
HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,12,0"
|
|
IsHitTestVisible="False"/>
|
|
<Popup x:Name="PART_Popup" Placement="Bottom" AllowsTransparency="True"
|
|
IsOpen="{TemplateBinding IsDropDownOpen}" Focusable="False"
|
|
PopupAnimation="Slide">
|
|
<Border Background="{StaticResource Panel}" BorderBrush="{StaticResource Stroke}"
|
|
BorderThickness="1" CornerRadius="8" Margin="0,4,0,0"
|
|
MinWidth="{Binding ActualWidth, RelativeSource={RelativeSource TemplatedParent}}"
|
|
Padding="4">
|
|
<ScrollViewer MaxHeight="320" VerticalScrollBarVisibility="Auto">
|
|
<ItemsPresenter/>
|
|
</ScrollViewer>
|
|
</Border>
|
|
</Popup>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="box" Property="BorderBrush" Value="{StaticResource Accent}"/>
|
|
</Trigger>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="box" Property="Opacity" Value="0.5"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="CheckBox">
|
|
<Setter Property="Foreground" Value="{StaticResource Dim}"/>
|
|
<Setter Property="FontSize" Value="19"/>
|
|
<Setter Property="Margin" Value="0,5"/>
|
|
<Setter Property="FontFamily" Value="Segoe UI Variable, Segoe UI"/>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
</Application>
|