1
0
Files
OAiP-Presnyakov_Ilya-Labora…/Themes/CatppuccinMocha.xaml
Debug_pro fb13e5a20a upload
2026-06-07 18:19:53 +03:00

242 lines
12 KiB
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Color x:Key="BaseColor">#FF1E1E2E</Color>
<Color x:Key="MantleColor">#FF181825</Color>
<Color x:Key="CrustColor">#FF11111B</Color>
<Color x:Key="Surface0Color">#FF313244</Color>
<Color x:Key="Surface1Color">#FF45475A</Color>
<Color x:Key="Surface2Color">#FF585B70</Color>
<Color x:Key="TextColor">#FFCDD6F4</Color>
<Color x:Key="SubtextColor">#FFA6ADC8</Color>
<Color x:Key="BlueColor">#FF89B4FA</Color>
<Color x:Key="LavenderColor">#FFB4BEFE</Color>
<Color x:Key="GreenColor">#FFA6E3A1</Color>
<Color x:Key="YellowColor">#FFF9E2AF</Color>
<Color x:Key="RedColor">#FFF38BA8</Color>
<Color x:Key="RosewaterColor">#FFF5E0DC</Color>
<Color x:Key="PeachColor">#FFFAB387</Color>
<SolidColorBrush x:Key="BaseBrush" Color="{StaticResource BaseColor}" />
<SolidColorBrush x:Key="MantleBrush" Color="{StaticResource MantleColor}" />
<SolidColorBrush x:Key="CrustBrush" Color="{StaticResource CrustColor}" />
<SolidColorBrush x:Key="Surface0Brush" Color="{StaticResource Surface0Color}" />
<SolidColorBrush x:Key="Surface1Brush" Color="{StaticResource Surface1Color}" />
<SolidColorBrush x:Key="Surface2Brush" Color="{StaticResource Surface2Color}" />
<SolidColorBrush x:Key="TextBrush" Color="{StaticResource TextColor}" />
<SolidColorBrush x:Key="SubtextBrush" Color="{StaticResource SubtextColor}" />
<SolidColorBrush x:Key="BlueBrush" Color="{StaticResource BlueColor}" />
<SolidColorBrush x:Key="LavenderBrush" Color="{StaticResource LavenderColor}" />
<SolidColorBrush x:Key="GreenBrush" Color="{StaticResource GreenColor}" />
<SolidColorBrush x:Key="YellowBrush" Color="{StaticResource YellowColor}" />
<SolidColorBrush x:Key="RedBrush" Color="{StaticResource RedColor}" />
<SolidColorBrush x:Key="RosewaterBrush" Color="{StaticResource RosewaterColor}" />
<SolidColorBrush x:Key="PeachBrush" Color="{StaticResource PeachColor}" />
<Style TargetType="Window">
<Setter Property="Background" Value="{StaticResource BaseBrush}" />
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="FontFamily" Value="Segoe UI" />
<Setter Property="TextOptions.TextFormattingMode" Value="Display" />
<Setter Property="TextOptions.TextRenderingMode" Value="ClearType" />
<Setter Property="SnapsToDevicePixels" Value="True" />
</Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
</Style>
<Style TargetType="Label">
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
</Style>
<Style TargetType="CheckBox">
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="Margin" Value="0,8,0,12" />
</Style>
<Style x:Key="CaptionTextBlock" TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Foreground" Value="{StaticResource SubtextBrush}" />
<Setter Property="FontSize" Value="12" />
</Style>
<Style x:Key="SectionTitle" TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="FontSize" Value="18" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Margin" Value="0,0,0,10" />
</Style>
<Style x:Key="PageTitle" TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="FontSize" Value="28" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="Margin" Value="0,0,0,8" />
</Style>
<Style x:Key="CardBorder" TargetType="Border">
<Setter Property="Background" Value="{StaticResource MantleBrush}" />
<Setter Property="CornerRadius" Value="18" />
<Setter Property="Padding" Value="18" />
<Setter Property="Margin" Value="0,0,0,12" />
<Setter Property="BorderBrush" Value="{StaticResource Surface1Brush}" />
<Setter Property="BorderThickness" Value="1" />
</Style>
<Style TargetType="TextBox">
<Setter Property="Background" Value="{StaticResource Surface0Brush}" />
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="TextElement.Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="SelectionBrush" Value="{StaticResource BlueBrush}" />
<Setter Property="SelectionTextBrush" Value="{StaticResource CrustBrush}" />
<Setter Property="BorderBrush" Value="{StaticResource Surface1Brush}" />
<Setter Property="CaretBrush" Value="{StaticResource RosewaterBrush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="10,8" />
<Setter Property="Margin" Value="0,6,0,10" />
<Setter Property="MinHeight" Value="36" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Style.Triggers>
<Trigger Property="AcceptsReturn" Value="True">
<Setter Property="VerticalContentAlignment" Value="Top" />
<Setter Property="Padding" Value="10" />
</Trigger>
<Trigger Property="IsKeyboardFocused" Value="True">
<Setter Property="BorderBrush" Value="{StaticResource BlueBrush}" />
</Trigger>
<Trigger Property="Validation.HasError" Value="True">
<Setter Property="BorderBrush" Value="{StaticResource RedBrush}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.7" />
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="PasswordBox">
<Setter Property="Background" Value="{StaticResource Surface0Brush}" />
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="BorderBrush" Value="{StaticResource Surface1Brush}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="10,8" />
<Setter Property="Margin" Value="0,6,0,10" />
<Setter Property="MinHeight" Value="36" />
<Style.Triggers>
<Trigger Property="IsKeyboardFocused" Value="True">
<Setter Property="BorderBrush" Value="{StaticResource BlueBrush}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.7" />
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="ComboBox">
<Setter Property="Background" Value="{StaticResource Surface0Brush}" />
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="BorderBrush" Value="{StaticResource Surface1Brush}" />
<Setter Property="Padding" Value="10,8" />
<Setter Property="Margin" Value="0,6,0,10" />
<Setter Property="MinHeight" Value="36" />
</Style>
<Style x:Key="PrimaryButton" TargetType="Button">
<Setter Property="Foreground" Value="{StaticResource CrustBrush}" />
<Setter Property="Background" Value="{StaticResource BlueBrush}" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Padding" Value="14,10" />
<Setter Property="Margin" Value="0,6,0,0" />
<Setter Property="MinHeight" Value="40" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
CornerRadius="12"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="1"
SnapsToDevicePixels="True">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"
Margin="{TemplateBinding Padding}"
RecognizesAccessKey="True" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.95" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Opacity" Value="0.88" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.55" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="SecondaryButton" TargetType="Button" BasedOn="{StaticResource PrimaryButton}">
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="Background" Value="{StaticResource Surface0Brush}" />
<Setter Property="BorderBrush" Value="{StaticResource Surface1Brush}" />
</Style>
<Style x:Key="DangerButton" TargetType="Button" BasedOn="{StaticResource PrimaryButton}">
<Setter Property="Background" Value="{StaticResource RedBrush}" />
</Style>
<Style TargetType="ListBox">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Padding" Value="0" />
</Style>
<Style TargetType="ListBoxItem">
<Setter Property="Padding" Value="14" />
<Setter Property="Margin" Value="0,0,0,10" />
<Setter Property="Background" Value="{StaticResource Surface0Brush}" />
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Stretch" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<Border x:Name="ItemBorder"
Background="{TemplateBinding Background}"
CornerRadius="14"
BorderBrush="{StaticResource Surface1Brush}"
BorderThickness="1"
SnapsToDevicePixels="True">
<ContentPresenter Margin="{TemplateBinding Padding}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#FF454B78" />
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#FF3A3D5A" />
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="GridSplitter">
<Setter Property="Background" Value="{StaticResource Surface0Brush}" />
<Setter Property="ShowsPreview" Value="True" />
</Style>
<Style TargetType="ScrollViewer">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
</Style>
</ResourceDictionary>