feat: update Default AdornerLayer style.
(cherry picked from commit 5644cf59dc72257648c02c933b91a368204f9d1d)
This commit is contained in:
parent
56c4073f4a
commit
4c122cc3e9
@ -5,11 +5,8 @@
|
|||||||
<ControlTheme x:Key="{x:Type AdornerLayer}" TargetType="AdornerLayer">
|
<ControlTheme x:Key="{x:Type AdornerLayer}" TargetType="AdornerLayer">
|
||||||
<Setter Property="DefaultFocusAdorner">
|
<Setter Property="DefaultFocusAdorner">
|
||||||
<FocusAdornerTemplate>
|
<FocusAdornerTemplate>
|
||||||
<Rectangle
|
<Border BorderThickness="{DynamicResource AdornerLayerBorderThickness}"
|
||||||
Margin="{DynamicResource AdornerLayerMargin}"
|
BorderBrush="{DynamicResource AdornerLayerStroke}" />
|
||||||
Stroke="{DynamicResource AdornerLayerBackground}"
|
|
||||||
StrokeDashArray="1,2"
|
|
||||||
StrokeThickness="{DynamicResource AdornerLayerThickness}" />
|
|
||||||
</FocusAdornerTemplate>
|
</FocusAdornerTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
<Grid x:Name="RootGrid" ColumnDefinitions="Auto,*">
|
<Grid x:Name="RootGrid" ColumnDefinitions="Auto,*">
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
|
TemplatedControl.IsTemplateFocusTarget="True"
|
||||||
Margin="0,0,0,0"
|
Margin="0,0,0,0"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<Border
|
<Border
|
||||||
|
@ -39,7 +39,11 @@
|
|||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}">
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
<Grid ColumnDefinitions="Auto,*">
|
<Grid ColumnDefinitions="Auto,*">
|
||||||
<Grid Margin="{DynamicResource RadioButtonIconMargin}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
<Grid
|
||||||
|
Grid.Column="0"
|
||||||
|
TemplatedControl.IsTemplateFocusTarget="True"
|
||||||
|
Margin="{DynamicResource RadioButtonIconMargin}"
|
||||||
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
||||||
<Ellipse
|
<Ellipse
|
||||||
Name="OuterEllipse"
|
Name="OuterEllipse"
|
||||||
Width="{DynamicResource RadioButtonIconRadius}"
|
Width="{DynamicResource RadioButtonIconRadius}"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<SolidColorBrush x:Key="AdornerLayerBackground" Color="White" />
|
<SolidColorBrush x:Key="AdornerLayerStroke" Opacity="0.4" Color="#54A9FF" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -1,3 +1,3 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<SolidColorBrush x:Key="AdornerLayerBackground" Color="#1C1F23" />
|
<SolidColorBrush x:Key="AdornerLayerStroke" Color="#98CDFD" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -1,4 +1,3 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<Thickness x:Key="AdornerLayerMargin">1</Thickness>
|
<Thickness x:Key="AdornerLayerBorderThickness">2</Thickness>
|
||||||
<x:Double x:Key="AdornerLayerThickness">1</x:Double>
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
Loading…
x
Reference in New Issue
Block a user