|
3 | 3 | xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls">
|
4 | 4 |
|
5 | 5 | <SolidColorBrush x:Key="ContextualTabBackground" Color="{ThemeResource SystemAltMediumColor}"/>
|
| 6 | + <SolidColorBrush x:Key="NormalTabBackground" Color="{ThemeResource SystemChromeLowColor}"/> |
| 7 | + <SolidColorBrush x:Key="NormalTabAcrylicBackground" Color="{ThemeResource SystemControlChromeLowAcrylicWindowBrush}"/> |
6 | 8 |
|
7 | 9 | <Style BasedOn="{StaticResource DefaultTabbedCommandBarItemStyle}" TargetType="controls:TabbedCommandBarItem"/>
|
8 | 10 |
|
9 | 11 | <Style x:Key="DefaultTabbedCommandBarItemStyle" BasedOn="{StaticResource CommandBarRevealStyle}" TargetType="controls:TabbedCommandBarItem">
|
10 | 12 | <!-- TODO: Copy CommandBarRevealStyle instead of referencing it -->
|
11 | 13 | <Setter Property="HorizontalAlignment" Value="Stretch" />
|
12 | 14 | <Setter Property="DefaultLabelPosition" Value="Right" />
|
13 |
| - <Setter Property="Background" Value="{ThemeResource SystemChromeLowColor}" /> |
| 15 | + <Setter Property="Background" Value="{ThemeResource NormalTabBackground}" /> |
14 | 16 | <!--
|
15 | 17 | Is there a way to prevent the overflow button from showing if there aren't any buttons to send to the overflow menu?
|
16 | 18 | (See this message in the WinUI channel: https://discord.com/channels/372137812037730304/671870147354427422/771057634203402300 )
|
|
21 | 23 | </Style>
|
22 | 24 |
|
23 | 25 | <Style x:Key="AcrylicTabbedCommandBarItemStyle" BasedOn="{StaticResource DefaultTabbedCommandBarItemStyle}" TargetType="controls:TabbedCommandBarItem">
|
24 |
| - <Setter Property="Background" Value="{ThemeResource SystemControlChromeLowAcrylicWindowBrush}"/> |
| 26 | + <Setter Property="Background" Value="{ThemeResource NormalTabAcrylicBackground}"/> |
25 | 27 | </Style>
|
26 | 28 |
|
27 | 29 | <DataTemplate x:Key="NormalTabTemplate">
|
|
30 | 32 | <DataTemplate x:Key="ContextualTabTemplate">
|
31 | 33 | <NavigationViewItem Content="{Binding Header}" Background="{StaticResource ContextualTabBackground}" Visibility="{Binding Visibility}">
|
32 | 34 | <NavigationViewItem.Resources>
|
| 35 | + <!-- TODO: These should reference TabbedCommandBarItem-specific resources so they can overriden --> |
33 | 36 | <SolidColorBrush x:Key="TopNavigationViewItemForeground" Color="{ThemeResource SystemAccentColor}" />
|
34 | 37 | <SolidColorBrush x:Key="TopNavigationViewItemForegroundSelected" Color="{ThemeResource SystemAccentColor}" />
|
35 | 38 | <SolidColorBrush x:Key="TopNavigationViewItemForegroundPointerOver" Color="{ThemeResource SystemAccentColorLight2}" />
|
|
44 | 47 | Contextual="{StaticResource ContextualTabTemplate}"
|
45 | 48 | Normal="{StaticResource NormalTabTemplate}" />
|
46 | 49 |
|
| 50 | + <Style x:Key="TabbedCommandBarElementContainerStyle" TargetType="AppBarElementContainer"> |
| 51 | + <Setter Property="VerticalAlignment" Value="Stretch" /> |
| 52 | + <Setter Property="VerticalContentAlignment" Value="Center" /> |
| 53 | + <Setter Property="Margin" Value="1,0" /> |
| 54 | + </Style> |
| 55 | + |
47 | 56 | <Style x:Key="AppBarSplitButtonStyle" TargetType="SplitButton">
|
48 | 57 | <Setter Property="Background" Value="{ThemeResource AppBarButtonRevealBackground}" />
|
49 |
| - <Setter Property="Foreground" Value="{ThemeResource SplitButtonForeground}" /> |
| 58 | + <Setter Property="Foreground" Value="{ThemeResource AppBarItemForegroundThemeBrush}" /> |
50 | 59 | <Setter Property="BorderBrush" Value="{ThemeResource SplitButtonBorderBrush}" />
|
51 | 60 | <Setter Property="BorderThickness" Value="{ThemeResource SplitButtonBorderThemeThickness}" />
|
52 | 61 | <Setter Property="HorizontalAlignment" Value="Left" />
|
|
98 | 107 | <VisualState x:Name="PointerOver">
|
99 | 108 | <VisualState.Setters>
|
100 | 109 | <Setter Target="RootGrid.(RevealBrush.State)" Value="PointerOver" />
|
101 |
| - <Setter Target="RootGrid.Background" Value="{ThemeResource ButtonRevealBackgroundPointerOver}"/> |
102 |
| - <Setter Target="ContentPresenter.BorderBrush" Value="{ThemeResource ButtonRevealBorderBrushPointerOver}"/> |
| 110 | + <Setter Target="RootGrid.Background" Value="{ThemeResource AppBarButtonRevealBackgroundPointerOver}"/> |
| 111 | + <Setter Target="ContentPresenter.BorderBrush" Value="{ThemeResource AppBarButtonRevealBorderBrushPointerOver}"/> |
103 | 112 | <Setter Target="ContentPresenter.Foreground" Value="{ThemeResource AppBarButtonForegroundPressed}"/>
|
104 | 113 | </VisualState.Setters>
|
105 | 114 | <Storyboard>
|
|
110 | 119 | <VisualState x:Name="Pressed">
|
111 | 120 | <VisualState.Setters>
|
112 | 121 | <Setter Target="RootGrid.(RevealBrush.State)" Value="Pressed" />
|
113 |
| - <Setter Target="RootGrid.Background" Value="{ThemeResource ButtonRevealBackgroundPressed}"/> |
114 |
| - <Setter Target="ContentPresenter.BorderBrush" Value="{ThemeResource ButtonRevealBorderBrushPressed}"/> |
| 122 | + <Setter Target="RootGrid.Background" Value="{ThemeResource AppBarButtonRevealBackgroundPressed}"/> |
| 123 | + <Setter Target="ContentPresenter.BorderBrush" Value="{ThemeResource AppBarButtonRevealBorderBrushPressed}"/> |
115 | 124 | <Setter Target="ContentPresenter.Foreground" Value="{ThemeResource AppBarButtonForegroundPressed}"/>
|
116 | 125 | </VisualState.Setters>
|
117 | 126 | <Storyboard>
|
|
0 commit comments