ux: tabs using system accent color

This commit is contained in:
leo 2024-05-21 11:06:05 +08:00
parent 2e58da7c2a
commit ef20c174ae

View file

@ -1002,6 +1002,7 @@
<Setter Property="FontSize" Value="14"/> <Setter Property="FontSize" Value="14"/>
<Setter Property="Padding" Value="10,0"/> <Setter Property="Padding" Value="10,0"/>
<Setter Property="MinHeight" Value="24"/> <Setter Property="MinHeight" Value="24"/>
<Setter Property="Opacity" Value="1"/>
<Style.Resources> <Style.Resources>
<x:Double x:Key="TabItemPipeThickness">1</x:Double> <x:Double x:Key="TabItemPipeThickness">1</x:Double>
@ -1009,10 +1010,12 @@
</Style> </Style>
<Style Selector="TabItem:pointerover TextBlock.tab_header"> <Style Selector="TabItem:pointerover TextBlock.tab_header">
<Setter Property="Opacity" Value=".8"/> <Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
<Setter Property="Opacity" Value="1"/>
</Style> </Style>
<Style Selector="TabItem:selected TextBlock.tab_header"> <Style Selector="TabItem:selected TextBlock.tab_header">
<Setter Property="Foreground" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="Opacity" Value="1"/> <Setter Property="Opacity" Value="1"/>
</Style> </Style>