84 lines
8.0 KiB
XML
84 lines
8.0 KiB
XML
<Application x:Class="QSafe.Desktop.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<Application.Resources>
|
|
<SolidColorBrush x:Key="Canvas" Color="#101216" />
|
|
<SolidColorBrush x:Key="Panel" Color="#171A20" />
|
|
<SolidColorBrush x:Key="Raised" Color="#20242C" />
|
|
<SolidColorBrush x:Key="Line" Color="#2C313B" />
|
|
<SolidColorBrush x:Key="Ink" Color="#F0F2F6" />
|
|
<SolidColorBrush x:Key="Muted" Color="#969EAD" />
|
|
<SolidColorBrush x:Key="Accent" Color="#A5E4BC" />
|
|
<Style TargetType="Window">
|
|
<Setter Property="Background" Value="{StaticResource Canvas}" />
|
|
<Setter Property="Foreground" Value="{StaticResource Ink}" />
|
|
<Setter Property="FontFamily" Value="Segoe UI" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
</Style>
|
|
<Style TargetType="TextBlock"><Setter Property="TextWrapping" Value="Wrap" /></Style>
|
|
<Style TargetType="ScrollBar">
|
|
<Setter Property="Width" Value="9" /><Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="ScrollBar">
|
|
<Grid Background="Transparent"><Track x:Name="PART_Track" IsDirectionReversed="True">
|
|
<Track.DecreaseRepeatButton><RepeatButton Command="ScrollBar.PageUpCommand" Opacity="0" Focusable="False" /></Track.DecreaseRepeatButton>
|
|
<Track.Thumb><Thumb><Thumb.Template><ControlTemplate TargetType="Thumb"><Border Background="#424B57" CornerRadius="4" Margin="2,0" /></ControlTemplate></Thumb.Template></Thumb></Track.Thumb>
|
|
<Track.IncreaseRepeatButton><RepeatButton Command="ScrollBar.PageDownCommand" Opacity="0" Focusable="False" /></Track.IncreaseRepeatButton>
|
|
</Track></Grid>
|
|
</ControlTemplate></Setter.Value></Setter>
|
|
</Style>
|
|
<Style TargetType="Button">
|
|
<Setter Property="Background" Value="{StaticResource Raised}" /><Setter Property="Foreground" Value="{StaticResource Ink}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Line}" /><Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Padding" Value="14,10" /><Setter Property="Cursor" Value="Hand" /><Setter Property="FontSize" Value="14" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" /><Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="Button">
|
|
<Border x:Name="Body" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="8" Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Body" Property="Opacity" Value="0.78" /></Trigger>
|
|
<Trigger Property="IsPressed" Value="True"><Setter TargetName="Body" Property="Opacity" Value="0.6" /></Trigger>
|
|
<Trigger Property="IsEnabled" Value="False"><Setter TargetName="Body" Property="Opacity" Value="0.4" /></Trigger>
|
|
<Trigger Property="IsKeyboardFocused" Value="True"><Setter TargetName="Body" Property="BorderBrush" Value="{StaticResource Accent}" /></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="#10251A" /><Setter Property="BorderBrush" Value="{StaticResource Accent}" /><Setter Property="FontWeight" Value="SemiBold" />
|
|
</Style>
|
|
<Style x:Key="Quiet" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}"><Setter Property="Background" Value="Transparent" /><Setter Property="BorderBrush" Value="Transparent" /></Style>
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="Background" Value="#12151A" /><Setter Property="Foreground" Value="{StaticResource Ink}" /><Setter Property="CaretBrush" Value="{StaticResource Accent}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Line}" /><Setter Property="BorderThickness" Value="1" /><Setter Property="Padding" Value="12,10" />
|
|
<Setter Property="FontSize" Value="14" /><Setter Property="VerticalContentAlignment" Value="Center" /><Setter Property="SelectionBrush" Value="#42694F" />
|
|
<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="TextBox">
|
|
<Border x:Name="Box" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="8">
|
|
<ScrollViewer x:Name="PART_ContentHost" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Hidden" />
|
|
</Border>
|
|
<ControlTemplate.Triggers><Trigger Property="IsKeyboardFocused" Value="True"><Setter TargetName="Box" Property="BorderBrush" Value="{StaticResource Accent}" /></Trigger></ControlTemplate.Triggers>
|
|
</ControlTemplate></Setter.Value></Setter>
|
|
</Style>
|
|
<Style TargetType="PasswordBox">
|
|
<Setter Property="Background" Value="#12151A" /><Setter Property="Foreground" Value="{StaticResource Ink}" /><Setter Property="CaretBrush" Value="{StaticResource Accent}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource Line}" /><Setter Property="BorderThickness" Value="1" /><Setter Property="Padding" Value="12,12" /><Setter Property="FontSize" Value="16" />
|
|
<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="PasswordBox">
|
|
<Border x:Name="Box" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="8"><ScrollViewer x:Name="PART_ContentHost" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Hidden" /></Border>
|
|
<ControlTemplate.Triggers><Trigger Property="IsKeyboardFocused" Value="True"><Setter TargetName="Box" Property="BorderBrush" Value="{StaticResource Accent}" /></Trigger></ControlTemplate.Triggers>
|
|
</ControlTemplate></Setter.Value></Setter>
|
|
</Style>
|
|
<Style TargetType="ListBox">
|
|
<Setter Property="Background" Value="Transparent" /><Setter Property="BorderThickness" Value="0" /><Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
|
|
<Setter Property="ItemContainerStyle"><Setter.Value><Style TargetType="ListBoxItem">
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" /><Setter Property="Padding" Value="0" /><Setter Property="Margin" Value="0,0,0,5" />
|
|
<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="ListBoxItem"><Border x:Name="Item" CornerRadius="9" BorderThickness="1" BorderBrush="Transparent" Background="Transparent" Padding="12,14"><ContentPresenter /></Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="Item" Property="Background" Value="#21262E" /></Trigger>
|
|
<Trigger Property="IsSelected" Value="True"><Setter TargetName="Item" Property="Background" Value="#26372E" /><Setter TargetName="Item" Property="BorderBrush" Value="#466452" /></Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate></Setter.Value></Setter>
|
|
</Style></Setter.Value></Setter>
|
|
</Style>
|
|
<Style TargetType="CheckBox"><Setter Property="Foreground" Value="{StaticResource Ink}" /><Setter Property="FontSize" Value="14" /><Setter Property="Margin" Value="0,8" /><Setter Property="Cursor" Value="Hand" /></Style>
|
|
<Style TargetType="ScrollViewer"><Setter Property="VerticalScrollBarVisibility" Value="Auto" /><Setter Property="HorizontalScrollBarVisibility" Value="Disabled" /></Style>
|
|
<Style TargetType="ToolTip"><Setter Property="Background" Value="#29312D" /><Setter Property="Foreground" Value="{StaticResource Ink}" /><Setter Property="Padding" Value="10,6" /></Style>
|
|
</Application.Resources>
|
|
</Application>
|