|
15 | 15 | mc:Ignorable="d"> |
16 | 16 |
|
17 | 17 | <Grid> |
| 18 | + <Grid.Resources> |
| 19 | + <x:Double x:Key="ListViewItemSelectedBorderThemeThickness">0</x:Double> |
| 20 | + <x:Double x:Key="ListViewItemCompactSelectedBorderThemeThickness">0</x:Double> |
| 21 | + </Grid.Resources> |
18 | 22 | <Grid.ColumnDefinitions> |
19 | 23 | <ColumnDefinition Width="Auto" /> |
20 | 24 | <ColumnDefinition Width="*" /> |
|
25 | 29 | x:Name="ScrollLeftButton" |
26 | 30 | Grid.Column="0" |
27 | 31 | Width="24" |
28 | | - Padding="0,0,0,0" |
| 32 | + Padding="0,0,4,0" |
29 | 33 | Click="OnScrollLeftButtonTapped" |
30 | 34 | Style="{StaticResource TitleBarRepeatButtonStyle}" |
31 | 35 | Tapped="OnScrollLeftButtonTapped" |
|
45 | 49 | VerticalScrollBarVisibility="Hidden" |
46 | 50 | VerticalScrollMode="Disabled"> |
47 | 51 | <ListView |
| 52 | + Margin="0" |
48 | 53 | x:Name="ListView" |
49 | 54 | AllowDrop="True" |
50 | 55 | Background="Transparent" |
|
66 | 71 | Hovered="{x:Bind IsHovered, Mode=TwoWay}"> |
67 | 72 | <RelativePanel |
68 | 73 | Height="32" |
69 | | - Margin="0" |
| 74 | + Margin="4 2 4 2" |
| 75 | + Padding="0" |
| 76 | + CornerRadius="4" |
70 | 77 | Background="Transparent" |
71 | 78 | ContextFlyout="{x:Bind TabContextMenu, Converter={StaticResource MenuViewModelToFlyoutMenuConverter}, Mode=OneWay}" |
72 | 79 | ToolTipService.ToolTip="{x:Bind TabTitle, Mode=OneWay}"> |
|
110 | 117 | Text="{x:Bind TabTitle, Mode=OneWay, Converter={StaticResource TextMiddleEllipsisConverter}}" |
111 | 118 | TextWrapping="NoWrap" /> |
112 | 119 | <Grid |
| 120 | + Margin="0" |
113 | 121 | x:Name="CloseButton" |
114 | | - Width="32" |
115 | 122 | RelativePanel.AlignRightWithPanel="True"> |
116 | 123 | <Button |
117 | 124 | Width="32" |
|
145 | 152 | <Setter Property="MaxWidth" Value="200" /> |
146 | 153 | <Setter Property="MinHeight" Value="32" /> |
147 | 154 | <Setter Property="Padding" Value="0" /> |
| 155 | + <Setter Property="Margin" Value="0" /> |
148 | 156 | <Setter Property="views:TabBarBackgroundBindingHelper.BackgroundBindingPath" Value="BackgroundTabTheme" /> |
149 | 157 | <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
150 | 158 | <Setter Property="VerticalContentAlignment" Value="Stretch" /> |
|
154 | 162 | <Setter Property="TabNavigation" Value="Local" /> |
155 | 163 | <Setter Property="IsHoldingEnabled" Value="True" /> |
156 | 164 | <Setter Property="AllowDrop" Value="True" /> |
157 | | - <Setter Property="UseSystemFocusVisuals" Value="True" /> |
| 165 | + <Setter Property="UseSystemFocusVisuals" Value="False" /> |
158 | 166 | <Setter Property="FocusVisualMargin" Value="0" /> |
159 | 167 | <Setter Property="FocusVisualPrimaryBrush" Value="{ThemeResource ListViewItemFocusVisualPrimaryBrush}" /> |
160 | | - <Setter Property="FocusVisualPrimaryThickness" Value="2" /> |
| 168 | + <Setter Property="FocusVisualPrimaryThickness" Value="0" /> |
161 | 169 | <Setter Property="FocusVisualSecondaryBrush" Value="{ThemeResource ListViewItemFocusVisualSecondaryBrush}" /> |
162 | | - <Setter Property="FocusVisualSecondaryThickness" Value="1" /> |
| 170 | + <Setter Property="FocusVisualSecondaryThickness" Value="0" /> |
163 | 171 | <Setter Property="Template"> |
164 | 172 | <Setter.Value> |
165 | 173 | <ControlTemplate TargetType="ListViewItem"> |
166 | 174 | <ListViewItemPresenter |
167 | 175 | x:Name="Root" |
| 176 | + CornerRadius="4" |
| 177 | + Height="36" |
168 | 178 | HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
169 | 179 | VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
170 | 180 | CheckBoxBrush="{ThemeResource ListViewItemCheckBoxBrush}" |
|
181 | 191 | FocusSecondaryBorderBrush="{ThemeResource ListViewItemFocusSecondaryBorderBrush}" |
182 | 192 | FocusVisualMargin="{TemplateBinding FocusVisualMargin}" |
183 | 193 | FocusVisualPrimaryBrush="{TemplateBinding FocusVisualPrimaryBrush}" |
184 | | - FocusVisualPrimaryThickness="{TemplateBinding FocusVisualPrimaryThickness}" |
| 194 | + FocusVisualPrimaryThickness="0" |
185 | 195 | FocusVisualSecondaryBrush="{TemplateBinding FocusVisualSecondaryBrush}" |
186 | | - FocusVisualSecondaryThickness="{TemplateBinding FocusVisualSecondaryThickness}" |
| 196 | + FocusVisualSecondaryThickness="0" |
187 | 197 | PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackground}" |
188 | 198 | PointerOverBackground="{Binding TabTheme, Mode=OneWay, Converter={StaticResource TabColorFallbackConverter}, ConverterParameter=BackgroundPointerOver}" |
189 | 199 | PointerOverForeground="{ThemeResource ListViewItemForegroundPointerOver}" |
190 | 200 | PressedBackground="{Binding TabTheme, Mode=OneWay, Converter={StaticResource TabColorFallbackConverter}, ConverterParameter=BackgroundPressed}" |
191 | 201 | ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}" |
192 | 202 | RevealBackground="{ThemeResource ListViewItemRevealBackground}" |
193 | 203 | RevealBorderBrush="{ThemeResource ListViewItemRevealBorderBrush}" |
194 | | - RevealBorderThickness="{ThemeResource ListViewItemRevealBorderThemeThickness}" |
| 204 | + RevealBorderThickness="0" |
195 | 205 | SelectedBackground="{Binding TabTheme, Mode=OneWay, Converter={StaticResource TabColorFallbackConverter}, ConverterParameter=BackgroundSelected}" |
196 | 206 | SelectedForeground="{ThemeResource ListViewItemForegroundSelected}" |
197 | 207 | SelectedPointerOverBackground="{Binding TabTheme, Mode=OneWay, Converter={StaticResource TabColorFallbackConverter}, ConverterParameter=BackgroundSelectedPointerOver}" |
198 | 208 | SelectedPressedBackground="{Binding TabTheme, Mode=OneWay, Converter={StaticResource TabColorFallbackConverter}, ConverterParameter=BackgroundSelectedPressed}" |
199 | | - SelectionCheckMarkVisualEnabled="{ThemeResource ListViewItemSelectionCheckMarkVisualEnabled}"> |
200 | | - <VisualStateManager.VisualStateGroups> |
201 | | - <VisualStateGroup x:Name="CommonStates"> |
202 | | - <VisualState x:Name="Normal" /> |
203 | | - <VisualState x:Name="Selected" /> |
204 | | - |
205 | | - <VisualState x:Name="PointerOver"> |
206 | | - <VisualState.Setters> |
207 | | - <Setter Target="Root.(RevealBrush.State)" Value="PointerOver" /> |
208 | | - </VisualState.Setters> |
209 | | - </VisualState> |
210 | | - |
211 | | - <VisualState x:Name="PointerOverSelected"> |
212 | | - <VisualState.Setters> |
213 | | - <Setter Target="Root.(RevealBrush.State)" Value="PointerOver" /> |
214 | | - </VisualState.Setters> |
215 | | - </VisualState> |
216 | | - <VisualState x:Name="PointerOverPressed"> |
217 | | - <VisualState.Setters> |
218 | | - <Setter Target="Root.(RevealBrush.State)" Value="Pressed" /> |
219 | | - </VisualState.Setters> |
220 | | - </VisualState> |
221 | | - |
222 | | - <VisualState x:Name="Pressed"> |
223 | | - <VisualState.Setters> |
224 | | - <Setter Target="Root.(RevealBrush.State)" Value="Pressed" /> |
225 | | - </VisualState.Setters> |
226 | | - </VisualState> |
227 | | - |
228 | | - <VisualState x:Name="PressedSelected"> |
229 | | - <VisualState.Setters> |
230 | | - <Setter Target="Root.(RevealBrush.State)" Value="Pressed" /> |
231 | | - </VisualState.Setters> |
232 | | - </VisualState> |
233 | | - </VisualStateGroup> |
234 | | - |
235 | | - <VisualStateGroup x:Name="DisabledStates"> |
236 | | - <VisualState x:Name="Enabled" /> |
237 | | - |
238 | | - <VisualState x:Name="Disabled"> |
239 | | - <VisualState.Setters> |
240 | | - <Setter Target="Root.RevealBorderThickness" Value="0" /> |
241 | | - </VisualState.Setters> |
242 | | - </VisualState> |
243 | | - </VisualStateGroup> |
244 | | - |
245 | | - </VisualStateManager.VisualStateGroups> |
| 209 | + SelectionCheckMarkVisualEnabled="{ThemeResource ListViewItemSelectionCheckMarkVisualEnabled}" |
| 210 | + PointerOverBackgroundMargin="0"> |
246 | 211 | </ListViewItemPresenter> |
247 | 212 | </ControlTemplate> |
248 | 213 | </Setter.Value> |
|
260 | 225 | x:Name="ScrollRightButton" |
261 | 226 | Grid.Column="2" |
262 | 227 | Width="24" |
263 | | - Padding="0,0,0,0" |
| 228 | + Padding="4,0,0,0" |
264 | 229 | Click="OnScrollRightButtonTapped" |
265 | 230 | Style="{StaticResource TitleBarRepeatButtonStyle}" |
266 | 231 | Tapped="OnScrollRightButtonTapped" |
|
0 commit comments