Update App.axaml
This commit is contained in:
Родитель
a14ea761b4
Коммит
65bd1ac897
|
@ -6,7 +6,7 @@
|
|||
<local:ViewLocator />
|
||||
</Application.DataTemplates>
|
||||
<Application.Styles>
|
||||
<StyleInclude Source="avares://Avalonia.Themes.Fluent/FluentLight.xaml" />
|
||||
<StyleInclude Source="avares://Avalonia.Themes.Fluent/FluentDark.xaml" />
|
||||
<StyleInclude Source="avares://Avalonia.Themes.Fluent/DensityStyles/Compact.xaml" />
|
||||
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml" />
|
||||
<Style Selector="Border.default">
|
||||
|
@ -14,6 +14,12 @@
|
|||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
</Style>
|
||||
<Style Selector="Border.background">
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="Background" Value="DarkGray" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
</Style>
|
||||
<Style Selector="Border.zoom">
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
|
@ -94,13 +100,19 @@
|
|||
<Setter Property="VerticalContentAlignment" Value="Stretch" />
|
||||
</Style>
|
||||
<Style Selector="Slider.default">
|
||||
<Setter Property="Padding" Value="4" />
|
||||
<Setter Property="Margin" Value="4" />
|
||||
<Style.Resources>
|
||||
<Thickness x:Key="SliderTopHeaderMargin">0,0,0,4</Thickness>
|
||||
<GridLength x:Key="SliderPreContentMargin">0</GridLength>
|
||||
<GridLength x:Key="SliderPostContentMargin">0</GridLength>
|
||||
</Style.Resources>
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="Margin" Value="4,0,4,0" />
|
||||
<Setter Property="Orientation" Value="Horizontal" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<Setter Property="IsSnapToTickEnabled" Value="True" />
|
||||
<Setter Property="TickFrequency" Value="0.1" />
|
||||
<Setter Property="MinHeight" Value="0" />
|
||||
</Style>
|
||||
<Style Selector="TabControl.default">
|
||||
<Setter Property="ItemsPanel">
|
||||
|
@ -150,31 +162,23 @@
|
|||
<VisualBrush x:Key="LightCheckerBoard" TileMode="Tile" Stretch="None" AlignmentX="Left" AlignmentY="Top"
|
||||
SourceRect="0,0,20,20" DestinationRect="0,0,20,20">
|
||||
<VisualBrush.Visual>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel Orientation="Vertical">
|
||||
<Rectangle Width="10" Height="10" Fill="#FFF0F0F0" />
|
||||
<Rectangle Width="10" Height="10" Fill="#FFF5F5F5" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Vertical">
|
||||
<Rectangle Width="10" Height="10" Fill="#FFF5F5F5" />
|
||||
<Rectangle Width="10" Height="10" Fill="#FFF0F0F0" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
<Canvas Width="20" Height="20">
|
||||
<Rectangle Canvas.Left="0" Canvas.Top="0" Width="10" Height="10" Fill="#FFF0F0F0" Stroke="Transparent" StrokeThickness="0" />
|
||||
<Rectangle Canvas.Left="0" Canvas.Top="10" Width="10" Height="10" Fill="#FFF5F5F5" Stroke="Transparent" StrokeThickness="0" />
|
||||
<Rectangle Canvas.Left="10" Canvas.Top="0" Width="10" Height="10" Fill="#FFF5F5F5" Stroke="Transparent" StrokeThickness="0" />
|
||||
<Rectangle Canvas.Left="10" Canvas.Top="10" Width="10" Height="10" Fill="#FFF0F0F0" Stroke="Transparent" StrokeThickness="0" />
|
||||
</Canvas>
|
||||
</VisualBrush.Visual>
|
||||
</VisualBrush>
|
||||
<VisualBrush x:Key="DarkCheckerBoard" TileMode="Tile" Stretch="None" AlignmentX="Left" AlignmentY="Top"
|
||||
SourceRect="0,0,20,20" DestinationRect="0,0,20,20">
|
||||
<VisualBrush.Visual>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel Orientation="Vertical">
|
||||
<Rectangle Width="10" Height="10" Fill="DarkGray" />
|
||||
<Rectangle Width="10" Height="10" Fill="LightGray" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Vertical">
|
||||
<Rectangle Width="10" Height="10" Fill="LightGray" />
|
||||
<Rectangle Width="10" Height="10" Fill="DarkGray" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
<Canvas Width="20" Height="20" >
|
||||
<Rectangle Canvas.Left="0" Canvas.Top="0" Width="10" Height="10" Fill="DarkGray" Stroke="Transparent" StrokeThickness="0" />
|
||||
<Rectangle Canvas.Left="0" Canvas.Top="10" Width="10" Height="10" Fill="LightGray" Stroke="Transparent" StrokeThickness="0" />
|
||||
<Rectangle Canvas.Left="10" Canvas.Top="0" Width="10" Height="10" Fill="LightGray" Stroke="Transparent" StrokeThickness="0" />
|
||||
<Rectangle Canvas.Left="10" Canvas.Top="10" Width="10" Height="10" Fill="DarkGray" Stroke="Transparent" StrokeThickness="0" />
|
||||
</Canvas>
|
||||
</VisualBrush.Visual>
|
||||
</VisualBrush>
|
||||
</Application.Resources>
|
||||
|
|
Загрузка…
Ссылка в новой задаче