Browse Source

TabItem CornerRadius via style

pull/4850/head
Roland Soós 6 years ago
parent
commit
1d2cf0280e
No known key found for this signature in database GPG Key ID: 93AFD926BA9254F5
  1. 2
      src/Avalonia.Themes.Fluent/TabItem.xaml

2
src/Avalonia.Themes.Fluent/TabItem.xaml

@ -39,7 +39,6 @@
TextBlock.FontSize="{TemplateBinding FontSize}" TextBlock.FontSize="{TemplateBinding FontSize}"
TextBlock.FontWeight="{TemplateBinding FontWeight}" /> TextBlock.FontWeight="{TemplateBinding FontWeight}" />
<Border Name="PART_SelectedPipe" <Border Name="PART_SelectedPipe"
CornerRadius="{DynamicResource ControlCornerRadius}"
Background="{DynamicResource TabItemHeaderSelectedPipeFill}" /> Background="{DynamicResource TabItemHeaderSelectedPipeFill}" />
</Panel> </Panel>
</Border> </Border>
@ -53,6 +52,7 @@
</Style> </Style>
<Style Selector="TabItem /template/ Border#PART_SelectedPipe"> <Style Selector="TabItem /template/ Border#PART_SelectedPipe">
<Setter Property="IsVisible" Value="False" /> <Setter Property="IsVisible" Value="False" />
<Setter Property="CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
</Style> </Style>
<!-- Selected state --> <!-- Selected state -->

Loading…
Cancel
Save