|
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
3 | 3 | xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
|
4 | 4 | xmlns:muxc="using:Microsoft.UI.Xaml.Controls">
|
| 5 | + <ResourceDictionary.ThemeDictionaries> |
| 6 | + <ResourceDictionary x:Key="Dark"> |
| 7 | + <!-- TODO: This still seems a bit dark? --> |
| 8 | + <SolidColorBrush x:Key="ContextualTabBackground" |
| 9 | + Color="{ThemeResource SystemAltMediumHighColor}" /> |
| 10 | + </ResourceDictionary> |
| 11 | + <ResourceDictionary x:Key="Light"> |
| 12 | + <SolidColorBrush x:Key="ContextualTabBackground" |
| 13 | + Color="{ThemeResource SystemChromeMediumColor}" /> |
| 14 | + </ResourceDictionary> |
| 15 | + <ResourceDictionary x:Key="HighContrast"> |
| 16 | + <SolidColorBrush x:Key="ContextualTabBackground" |
| 17 | + Color="{ThemeResource SystemAltLowColor}" /> |
| 18 | + </ResourceDictionary> |
| 19 | + </ResourceDictionary.ThemeDictionaries> |
5 | 20 |
|
6 |
| - <SolidColorBrush x:Key="ContextualTabBackground" |
7 |
| - Color="{ThemeResource SystemAltMediumColor}" /> |
8 | 21 | <SolidColorBrush x:Key="NormalTabBackground"
|
9 | 22 | Color="{ThemeResource SystemChromeLowColor}" />
|
10 | 23 | <SolidColorBrush x:Key="NormalTabAcrylicBackground"
|
|
25 | 38 | (See this message in the WinUI channel: https://discord.com/channels/372137812037730304/671870147354427422/771057634203402300 )
|
26 | 39 | Hardcoding the height of the CommandBar works, but it's a bit of a hack.
|
27 | 40 | -->
|
28 |
| - <Setter Property="Height" Value="40" /> |
| 41 | + <!-- TODO: Increased this for now, but if we want more compact, we have to identify the padding/margin that changed between WinUI 2.5 and 2.6 --> |
| 42 | + <Setter Property="Height" Value="48" /> |
29 | 43 | <Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
30 | 44 | </Style>
|
31 | 45 |
|
|
40 | 54 | Visibility="{Binding Visibility}" />
|
41 | 55 | </DataTemplate>
|
42 | 56 | <DataTemplate x:Key="ContextualTabTemplate">
|
43 |
| - <muxc:NavigationViewItem Background="{StaticResource ContextualTabBackground}" |
| 57 | + <muxc:NavigationViewItem Background="{ThemeResource ContextualTabBackground}" |
44 | 58 | Content="{Binding Header}"
|
45 | 59 | Visibility="{Binding Visibility}">
|
46 | 60 | <muxc:NavigationViewItem.Resources>
|
|
0 commit comments