Добавлен проект UI
This commit is contained in:
26
Lattice.UI/Themes/Styles/SharedResources.xaml
Normal file
26
Lattice.UI/Themes/Styles/SharedResources.xaml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
>
|
||||
|
||||
<!-- Размеры (Tokens) -->
|
||||
<x:Double x:Key="LatticeSplitterThickness">4.0</x:Double>
|
||||
<x:Double x:Key="LatticePaneHeaderHeight">32.0</x:Double>
|
||||
<CornerRadius x:Key="LatticePaneCornerRadius">4</CornerRadius>
|
||||
<Thickness x:Key="LatticePaneMargin">1</Thickness>
|
||||
|
||||
<!-- Акцентный цвет (статичный токен) -->
|
||||
<SolidColorBrush x:Key="LatticeActiveHeaderBrush" Color="{ThemeResource SystemAccentColor}"/>
|
||||
|
||||
<!-- Правильная привязка системных кистей для поддержки смены тем (Dark/Light) -->
|
||||
<ResourceDictionary.ThemeDictionaries>
|
||||
<ResourceDictionary x:Key="Default">
|
||||
<StaticResource x:Key="LatticePaneBackground" ResourceKey="LayerFillColorDefaultBrush"/>
|
||||
<StaticResource x:Key="LatticePaneBorderBrush" ResourceKey="CardStrokeColorDefaultBrush"/>
|
||||
<StaticResource x:Key="LatticePaneHeaderBackground" ResourceKey="LayerOnSecondaryFillColorDefaultBrush"/>
|
||||
</ResourceDictionary>
|
||||
<!-- Можно добавить специфические правки для HighContrast, если нужно -->
|
||||
</ResourceDictionary.ThemeDictionaries>
|
||||
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user