fix(import): show which import tab is selected
The theme barely marks the selected tab. Its header is now bold with an accent line below, and the other tab is dimmed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
d73b9b507f
commit
e005688aeb
1 file changed
+24
@@ -14,6 +14,30 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TabControl x:Name="Sources" Grid.Row="1">
|
<TabControl x:Name="Sources" Grid.Row="1">
|
||||||
|
<TabControl.Resources>
|
||||||
|
<!-- The theme barely marks the selected tab, so the header shows it itself: bold text and an accent line. -->
|
||||||
|
<Style TargetType="TabItem" BasedOn="{StaticResource {x:Type TabItem}}">
|
||||||
|
<Setter Property="HeaderTemplate">
|
||||||
|
<Setter.Value>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock x:Name="Label"
|
||||||
|
Text="{Binding}"
|
||||||
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
|
||||||
|
<Border x:Name="Mark" Height="3" Margin="0,4,0,0" CornerRadius="1.5" Background="Transparent" />
|
||||||
|
</StackPanel>
|
||||||
|
<DataTemplate.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=TabItem}}" Value="True">
|
||||||
|
<Setter TargetName="Label" Property="FontWeight" Value="SemiBold" />
|
||||||
|
<Setter TargetName="Label" Property="Foreground" Value="{DynamicResource TextFillColorPrimaryBrush}" />
|
||||||
|
<Setter TargetName="Mark" Property="Background" Value="{DynamicResource AccentTextFillColorPrimaryBrush}" />
|
||||||
|
</DataTrigger>
|
||||||
|
</DataTemplate.Triggers>
|
||||||
|
</DataTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
</TabControl.Resources>
|
||||||
<!-- From computer -->
|
<!-- From computer -->
|
||||||
<TabItem Header="Vom Computer">
|
<TabItem Header="Vom Computer">
|
||||||
<Grid Margin="0,12,0,0">
|
<Grid Margin="0,12,0,0">
|
||||||
|
|||||||
Reference in new issue
Block a user