join the selected tab with the panel below it

This commit is contained in:
maj00r
2026-08-31 00:44:56 +02:00
parent 8ed3765562
commit 2b17fb3c6a

View File

@@ -81,22 +81,26 @@
</ControlTheme> </ControlTheme>
<ControlTheme x:Key="{x:Type TabItem}" TargetType="TabItem"> <ControlTheme x:Key="{x:Type TabItem}" TargetType="TabItem">
<Setter Property="FontSize" Value="13" /> <Setter Property="FontSize" Value="13" />
<Setter Property="MinHeight" Value="24" /> <Setter Property="MinHeight" Value="26" />
<Setter Property="Padding" Value="12,3" /> <Setter Property="Padding" Value="14,4" />
<Setter Property="Margin" Value="0,0,2,0" /> <Setter Property="Margin" Value="0" />
<Setter Property="Foreground" Value="{StaticResource CarbonFgDim}" /> <Setter Property="Foreground" Value="{StaticResource CarbonFgDim}" />
<Setter Property="VerticalContentAlignment" Value="Center" /> <Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Template"> <Setter Property="Template">
<ControlTemplate> <ControlTemplate>
<Border Name="root" Background="Transparent" <Border Name="tab"
BorderBrush="Transparent" BorderThickness="1,2,1,0" Background="{StaticResource CarbonAppBg}"
CornerRadius="2,2,0,0" BorderBrush="{StaticResource CarbonBorderLight}"
Padding="{TemplateBinding Padding}"> BorderThickness="0,0,1,0">
<ContentPresenter Name="PART_ContentPresenter" <Border Name="root" Background="Transparent"
Content="{TemplateBinding Header}" BorderBrush="Transparent" BorderThickness="0,2,0,0"
ContentTemplate="{TemplateBinding HeaderTemplate}" Padding="{TemplateBinding Padding}">
HorizontalAlignment="Center" <ContentPresenter Name="PART_ContentPresenter"
VerticalAlignment="Center" /> Content="{TemplateBinding Header}"
ContentTemplate="{TemplateBinding HeaderTemplate}"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
</Border> </Border>
</ControlTemplate> </ControlTemplate>
</Setter> </Setter>
@@ -105,8 +109,12 @@
<Setter Property="Background" Value="{StaticResource CarbonHoverBg}" /> <Setter Property="Background" Value="{StaticResource CarbonHoverBg}" />
</Style> </Style>
<Style Selector="^:selected /template/ Border#tab">
<Setter Property="Background" Value="{StaticResource CarbonPanelBg}" />
<Setter Property="BorderThickness" Value="0" />
</Style>
<Style Selector="^:selected /template/ Border#root"> <Style Selector="^:selected /template/ Border#root">
<Setter Property="Background" Value="{StaticResource CarbonHeaderBg}" /> <Setter Property="Background" Value="{StaticResource CarbonPanelBg}" />
<Setter Property="BorderBrush" Value="{StaticResource CarbonAccentBright}" /> <Setter Property="BorderBrush" Value="{StaticResource CarbonAccentBright}" />
</Style> </Style>
<Style Selector="^:selected"> <Style Selector="^:selected">
@@ -123,6 +131,11 @@
<Setter Property="FontSize" Value="13" /> <Setter Property="FontSize" Value="13" />
</Style> </Style>
<Style Selector="TabControl">
<Setter Property="Background" Value="{StaticResource CarbonPanelBg}" />
<Setter Property="Padding" Value="0" />
</Style>
<Style Selector="ComboBox"> <Style Selector="ComboBox">
<Setter Property="MinHeight" Value="24" /> <Setter Property="MinHeight" Value="24" />
<Setter Property="FontSize" Value="13" /> <Setter Property="FontSize" Value="13" />