refactor: custom renderer for launcher tab bar

This commit is contained in:
leo 2024-06-29 17:04:39 +08:00
parent bfea573d4b
commit 1241539260
No known key found for this signature in database
6 changed files with 112 additions and 47 deletions

View file

@ -627,10 +627,6 @@
</Setter>
</Style>
<Style Selector="Border.launcher_pagetab">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="Transparent"/>
</Style>
<Style Selector="ListBox.launcher_page_tabbar">
<Setter Property="Background" Value="Transparent"/>
</Style>
@ -642,15 +638,13 @@
<Setter Property="Opacity" Value=".5"/>
</Style>
<Style Selector="ListBox.launcher_page_tabbar ListBoxItem:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Opacity" Value=".85"/>
</Style>
<Style Selector="ListBox.launcher_page_tabbar ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Opacity" Value="1"/>
</Style>
<Style Selector="ListBoxItem:selected Border.launcher_pagetab">
<Setter Property="Background" Value="{DynamicResource Brush.ToolBar}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border0}"/>
</Style>
<Style Selector="ContextMenu">
<Setter Property="HorizontalOffset" Value="-4"/>