Files
Lattice/Lattice.Themes.VS2026/Main.xaml
2026-01-18 16:33:35 +03:00

49 lines
2.8 KiB
XML

<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls">
<ResourceDictionary.MergedDictionaries>
<!-- Порядок важен! -->
<ResourceDictionary Source="ms-appx:///Lattice.Themes.VS2026/Brushes.xaml" />
<ResourceDictionary Source="ms-appx:///Lattice.Themes.VS2026/Geometry.xaml" />
<ResourceDictionary Source="ms-appx:///Lattice.Themes.VS2026/Typography.xaml" />
<ResourceDictionary Source="ms-appx:///Lattice.Themes.VS2026/Tokens.xaml" />
</ResourceDictionary.MergedDictionaries>
<!-- VS2026-специфичные стили -->
<Style x:Key="LatticeTabViewStyle" TargetType="muxc:TabView">
<Setter Property="Background" Value="{StaticResource Lattice.Brush.Background.Primary}" />
<Setter Property="BorderBrush" Value="{StaticResource Lattice.Brush.Border.Primary}" />
<Setter Property="BorderThickness" Value="{StaticResource Lattice.BorderThickness.Thin}" />
<Setter Property="CornerRadius" Value="{StaticResource Lattice.CornerRadius.Small}" />
</Style>
<!-- Стиль для TabViewItem в стиле VS -->
<Style x:Key="LatticeTabViewItemStyleVS" TargetType="muxc:TabViewItem">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="{StaticResource Lattice.Color.VS.Border.Tab.Inactive}" />
<Setter Property="BorderThickness" Value="0,0,0,2" />
<Setter Property="CornerRadius" Value="0" />
<Setter Property="Margin" Value="4,0,0,0" />
<Setter Property="Padding" Value="12,8" />
</Style>
<Style x:Key="LatticePanelStyleVS" TargetType="Border">
<Setter Property="Background" Value="{StaticResource Lattice.Brush.Background.Secondary}" />
<Setter Property="BorderBrush" Value="{StaticResource Lattice.Brush.Panel.Border}" />
<Setter Property="BorderThickness" Value="{StaticResource Lattice.BorderThickness.Panel}" />
<Setter Property="CornerRadius" Value="{StaticResource Lattice.CornerRadius.Panel}" />
<Setter Property="Padding" Value="{StaticResource Lattice.Spacing.Panel}" />
<Setter Property="Margin" Value="0" />
</Style>
<!-- Стиль для Splitter в стиле VS (тонкая линия) -->
<Style x:Key="LatticeSplitterStyleVS" TargetType="Rectangle">
<Setter Property="Fill" Value="{StaticResource Lattice.Brush.Splitter.Normal}" />
<Setter Property="Width" Value="{StaticResource Lattice.Size.Splitter.Width}" />
<Setter Property="Height" Value="Auto" />
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>
</ResourceDictionary>