45 lines
5.4 KiB
XML
45 lines
5.4 KiB
XML
<Application x:Class="Amnesia.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="MainWindow.xaml">
|
|
<Application.Resources>
|
|
<SolidColorBrush x:Key="Bg" Color="#17141c"/>
|
|
<SolidColorBrush x:Key="Surface" Color="#2b2632"/>
|
|
<SolidColorBrush x:Key="Raised" Color="#38313c"/>
|
|
<SolidColorBrush x:Key="Fg" Color="#c9b5af"/>
|
|
<SolidColorBrush x:Key="Muted" Color="#8372a0"/>
|
|
<SolidColorBrush x:Key="Dim" Color="#625577"/>
|
|
<SolidColorBrush x:Key="Accent" Color="#8c79a5"/>
|
|
<SolidColorBrush x:Key="Hover" Color="#74608e"/>
|
|
<SolidColorBrush x:Key="Line" Color="#433a4f"/>
|
|
<Style TargetType="TextBlock"><Setter Property="Foreground" Value="{StaticResource Fg}"/><Setter Property="TextWrapping" Value="Wrap"/></Style>
|
|
<Style TargetType="Button">
|
|
<Setter Property="Foreground" Value="{StaticResource Fg}"/><Setter Property="Background" Value="{StaticResource Raised}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Line}"/><Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Padding" Value="18,12"/><Setter Property="Cursor" Value="Hand"/><Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="Button">
|
|
<Border x:Name="Shell" CornerRadius="12" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Shell" Property="Background" Value="{StaticResource Hover}"/><Setter TargetName="Shell" Property="BorderBrush" Value="{StaticResource Accent}"/></Trigger>
|
|
<Trigger Property="IsKeyboardFocused" Value="True"><Setter TargetName="Shell" Property="BorderBrush" Value="#d5c7eb"/></Trigger>
|
|
<Trigger Property="IsPressed" Value="True"><Setter TargetName="Shell" Property="Opacity" Value="0.7"/></Trigger>
|
|
<Trigger Property="IsEnabled" Value="False"><Setter TargetName="Shell" Property="Opacity" Value="0.45"/></Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate></Setter.Value></Setter>
|
|
</Style>
|
|
<Style x:Key="Primary" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}"><Setter Property="Background" Value="{StaticResource Accent}"/><Setter Property="Foreground" Value="#17141c"/></Style>
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="Foreground" Value="{StaticResource Fg}"/><Setter Property="Background" Value="{StaticResource Bg}"/><Setter Property="CaretBrush" Value="{StaticResource Accent}"/><Setter Property="SelectionBrush" Value="{StaticResource Accent}"/>
|
|
<Setter Property="Padding" Value="14,12"/><Setter Property="BorderBrush" Value="{StaticResource Line}"/><Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="TextBox"><Border x:Name="Frame" CornerRadius="10" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1"><ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}"/></Border><ControlTemplate.Triggers><Trigger Property="IsKeyboardFocusWithin" Value="True"><Setter TargetName="Frame" Property="BorderBrush" Value="{StaticResource Accent}"/></Trigger></ControlTemplate.Triggers></ControlTemplate></Setter.Value></Setter>
|
|
</Style>
|
|
<Style TargetType="PasswordBox">
|
|
<Setter Property="Foreground" Value="{StaticResource Fg}"/><Setter Property="Background" Value="{StaticResource Bg}"/><Setter Property="CaretBrush" Value="{StaticResource Accent}"/><Setter Property="Padding" Value="14,12"/>
|
|
<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="PasswordBox"><Border x:Name="Frame" CornerRadius="10" Background="{TemplateBinding Background}" BorderBrush="{StaticResource Line}" BorderThickness="1"><ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}"/></Border><ControlTemplate.Triggers><Trigger Property="IsKeyboardFocusWithin" Value="True"><Setter TargetName="Frame" Property="BorderBrush" Value="{StaticResource Accent}"/></Trigger></ControlTemplate.Triggers></ControlTemplate></Setter.Value></Setter>
|
|
</Style>
|
|
<Style TargetType="CheckBox">
|
|
<Setter Property="Foreground" Value="{StaticResource Fg}"/><Setter Property="Cursor" Value="Hand"/><Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="CheckBox"><StackPanel Orientation="Horizontal"><Border x:Name="Box" Width="20" Height="20" CornerRadius="6" Background="{StaticResource Bg}" BorderBrush="{StaticResource Line}" BorderThickness="1"><TextBlock x:Name="Tick" Text="✓" Visibility="Collapsed" Foreground="{StaticResource Fg}" HorizontalAlignment="Center"/></Border><ContentPresenter Margin="10,0,0,0" VerticalAlignment="Center"/></StackPanel><ControlTemplate.Triggers><Trigger Property="IsChecked" Value="True"><Setter TargetName="Box" Property="Background" Value="{StaticResource Hover}"/><Setter TargetName="Tick" Property="Visibility" Value="Visible"/></Trigger><Trigger Property="IsKeyboardFocused" Value="True"><Setter TargetName="Box" Property="BorderBrush" Value="#d5c7eb"/></Trigger></ControlTemplate.Triggers></ControlTemplate></Setter.Value></Setter>
|
|
</Style>
|
|
</Application.Resources>
|
|
</Application>
|