|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | 5 | xmlns:local="using:Files.App.Controls"> |
6 | 6 |
|
7 | | - <ResourceDictionary.ThemeDictionaries> |
| 7 | + <!--<ResourceDictionary.ThemeDictionaries> |
8 | 8 | <ResourceDictionary x:Key="Default"> |
9 | | - <SolidColorBrush x:Key="SystemControlSplitterPressed" Color="{ThemeResource SystemBaseHighColor}" /> |
| 9 | + <SolidColorBrush x:Key="OmnibarModeDivisiderBrush" Color="{ThemeResource DividerStrokeColorDefaultBrush}" /> |
10 | 10 | </ResourceDictionary> |
11 | 11 | <ResourceDictionary x:Key="HighContrast"> |
12 | | - <SolidColorBrush x:Key="SystemControlSplitterPressed" Color="{ThemeResource SystemColorHighlightColor}" /> |
| 12 | + <SolidColorBrush x:Key="OmnibarModeDivisiderBrush" Color="{ThemeResource DividerStrokeColorDefaultBrush}" /> |
13 | 13 | </ResourceDictionary> |
14 | | - </ResourceDictionary.ThemeDictionaries> |
| 14 | + </ResourceDictionary.ThemeDictionaries>--> |
15 | 15 |
|
16 | | - <x:Double x:Key="OmnibarDefaultHeight">40</x:Double> |
17 | | - <CornerRadius x:Key="OmnibarDefaultCornerRadius">20</CornerRadius> |
| 16 | + <x:Double x:Key="OmnibarDefaultHeight">36</x:Double> |
| 17 | + <CornerRadius x:Key="OmnibarDefaultCornerRadius">18</CornerRadius> |
18 | 18 | <Thickness x:Key="OmnibarFocusedBorderThickness">2</Thickness> |
19 | 19 | <Thickness x:Key="OmnibarUnfocusedBorderThickness">1</Thickness> |
| 20 | + <Thickness x:Key="OmnibarUnfocusedRootPadding">1</Thickness> |
| 21 | + |
| 22 | + <x:Double x:Key="OmnibarModeDividerDefaultHeight">24</x:Double> |
| 23 | + <SolidColorBrush x:Key="OmnibarModeDivisiderBrush" Color="{ThemeResource DividerStrokeColorDefaultBrush}" /> |
20 | 24 |
|
21 | 25 | <Style BasedOn="{StaticResource DefaultOmnibarStyle}" TargetType="local:Omnibar" /> |
22 | 26 |
|
|
25 | 29 | <Setter Property="Height" Value="{StaticResource OmnibarDefaultHeight}" /> |
26 | 30 | <Setter Property="UseSystemFocusVisuals" Value="True" /> |
27 | 31 | <Setter Property="HorizontalAlignment" Value="Stretch" /> |
28 | | - <Setter Property="Background" Value="Transparent" /> |
| 32 | + <Setter Property="Background" Value="{ThemeResource ControlFillColorDefaultBrush}" /> |
| 33 | + <Setter Property="Padding" Value="{ThemeResource OmnibarUnfocusedRootPadding}" /> |
| 34 | + <Setter Property="BorderBrush" Value="{ThemeResource CircleElevationBorderBrush}" /> |
| 35 | + <Setter Property="BorderThickness" Value="{StaticResource OmnibarUnfocusedBorderThickness}" /> |
29 | 36 | <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
30 | 37 | <Setter Property="CornerRadius" Value="{StaticResource OmnibarDefaultCornerRadius}" /> |
31 | 38 | <Setter Property="VerticalAlignment" Value="Center" /> |
|
35 | 42 | <ControlTemplate TargetType="local:Omnibar"> |
36 | 43 | <Grid |
37 | 44 | x:Name="PART_RootGrid" |
| 45 | + Padding="{TemplateBinding Padding}" |
38 | 46 | Background="{TemplateBinding Background}" |
| 47 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 48 | + BorderThickness="{TemplateBinding BorderThickness}" |
39 | 49 | CornerRadius="{TemplateBinding CornerRadius}"> |
40 | | - <ItemsRepeater x:Name="ModesItemsRepeater"> |
41 | | - <ItemsRepeater.Layout> |
42 | | - <StackLayout Orientation="Horizontal" Spacing="2" /> |
43 | | - </ItemsRepeater.Layout> |
44 | | - </ItemsRepeater> |
| 50 | + <Grid x:Name="PART_ModesHostGrid" /> |
45 | 51 |
|
46 | 52 | <VisualStateManager.VisualStateGroups> |
47 | 53 |
|
48 | | - <VisualStateGroup x:Name="FocusStates"> |
| 54 | + <VisualStateGroup x:Name="PointerStates"> |
| 55 | + <VisualState x:Name="Normal" /> |
49 | 56 | <VisualState x:Name="Focused"> |
50 | 57 | <VisualState.Setters> |
51 | 58 | <Setter Target="PART_RootGrid.BorderBrush" Value="{ThemeResource AccentFillColorDefaultBrush}" /> |
52 | 59 | <Setter Target="PART_RootGrid.BorderThickness" Value="{StaticResource OmnibarFocusedBorderThickness}" /> |
53 | 60 | <Setter Target="PART_RootGrid.Margin" Value="-1" /> |
54 | 61 | </VisualState.Setters> |
55 | 62 | </VisualState> |
56 | | - <VisualState x:Name="Unfocused"> |
57 | | - <VisualState.Setters> |
58 | | - <Setter Target="PART_RootGrid.BorderBrush" Value="{ThemeResource AccentFillColorDefaultBrush}" /> |
59 | | - <Setter Target="PART_RootGrid.BorderThickness" Value="{StaticResource OmnibarUnfocusedBorderThickness}" /> |
60 | | - </VisualState.Setters> |
61 | | - </VisualState> |
62 | 63 | </VisualStateGroup> |
63 | 64 |
|
64 | 65 | </VisualStateManager.VisualStateGroups> |
|
68 | 69 | </Setter> |
69 | 70 | </Style> |
70 | 71 |
|
| 72 | + <Style |
| 73 | + x:Key="DefaultModeDividerStyle" |
| 74 | + BasedOn="{StaticResource DefaultBorderStyle}" |
| 75 | + TargetType="Border"> |
| 76 | + <Setter Property="Height" Value="{StaticResource OmnibarModeDividerDefaultHeight}" /> |
| 77 | + <Setter Property="Width" Value="1" /> |
| 78 | + <Setter Property="Background" Value="{StaticResource OmnibarModeDividerDefaultHeight}" /> |
| 79 | + </Style> |
| 80 | + |
71 | 81 | </ResourceDictionary> |
0 commit comments