variant_dem_shoe_store/ChudoObuv/App.xaml
2026-10-31 19:36:02 +04:00

57 lines
3.0 KiB
XML

<Application x:Class="ChudoObuv.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml"
DispatcherUnhandledException="OnDispatcherUnhandledException">
<Application.Resources>
<!-- Цвета из руководства по стилю -->
<SolidColorBrush x:Key="MainBackgroundBrush" Color="#FFFFFF" />
<SolidColorBrush x:Key="SecondaryBackgroundBrush" Color="#D2F6E7" />
<SolidColorBrush x:Key="AccentBrush" Color="#70B2AF" />
<SolidColorBrush x:Key="LowStockBrush" Color="#FF8080" />
<Style TargetType="Button">
<Setter Property="FontFamily" Value="Calibri" />
<Setter Property="FontSize" Value="16" />
<Setter Property="Background" Value="{StaticResource SecondaryBackgroundBrush}" />
<Setter Property="BorderBrush" Value="{StaticResource AccentBrush}" />
<Setter Property="Padding" Value="12,4" />
<Setter Property="Margin" Value="4" />
<Setter Property="MinHeight" Value="32" />
<Setter Property="Cursor" Value="Hand" />
</Style>
<!-- Кнопка целевого действия (акцентный цвет) -->
<Style x:Key="AccentButton" TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Background" Value="{StaticResource AccentBrush}" />
<Setter Property="Foreground" Value="White" />
<Setter Property="FontWeight" Value="Bold" />
</Style>
<Style TargetType="TextBox">
<Setter Property="FontFamily" Value="Calibri" />
<Setter Property="FontSize" Value="16" />
<Setter Property="Padding" Value="4,2" />
<Setter Property="Margin" Value="4" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="MinHeight" Value="30" />
</Style>
<Style TargetType="ComboBox">
<Setter Property="FontFamily" Value="Calibri" />
<Setter Property="FontSize" Value="16" />
<Setter Property="Margin" Value="4" />
<Setter Property="MinHeight" Value="30" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
<Style TargetType="DataGrid">
<Setter Property="FontFamily" Value="Calibri" />
<Setter Property="FontSize" Value="16" />
<Setter Property="AutoGenerateColumns" Value="False" />
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="CanUserAddRows" Value="False" />
<Setter Property="SelectionMode" Value="Single" />
<Setter Property="HeadersVisibility" Value="Column" />
<Setter Property="AlternatingRowBackground" Value="{StaticResource
SecondaryBackgroundBrush}" />
<Setter Property="Margin" Value="4" />
</Style>
</Application.Resources>
</Application>