|
1 | 1 | <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> |
2 | 2 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | | - xmlns:controls="using:CommunityToolkit.WinUI.Controls"> |
| 4 | + xmlns:controls="using:CommunityToolkit.WinUI.Controls" |
| 5 | + xmlns:not_win="http://uno.ui/not_win" |
| 6 | + xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> |
5 | 7 |
|
6 | 8 | <Style BasedOn="{StaticResource DefaultRangeSelectorStyle}" |
7 | 9 | TargetType="controls:RangeSelector" /> |
|
25 | 27 | TargetType="Thumb"> |
26 | 28 | <Setter Property="UseSystemFocusVisuals" Value="True" /> |
27 | 29 | <Setter Property="BorderThickness" Value="1" /> |
| 30 | + <win:Setter Property="BorderBrush" Value="{ThemeResource SliderThumbBorderBrush}"/> |
| 31 | + <!-- Uno specific (https://github.com/unoplatform/uno/issues/6457): Use solid border brush --> |
| 32 | + <not_win:Setter Property="BorderBrush" Value="{ThemeResource ControlStrokeColorDefaultBrush}" /> |
28 | 33 | <Setter Property="Background" Value="{ThemeResource SliderThumbBackground}" /> |
29 | 34 | <Setter Property="Height" Value="{ThemeResource SliderHorizontalThumbHeight}" /> |
30 | 35 | <Setter Property="Width" Value="{ThemeResource SliderHorizontalThumbWidth}" /> |
|
35 | 40 | <ControlTemplate TargetType="Thumb"> |
36 | 41 | <Border Margin="-2" |
37 | 42 | Background="{ThemeResource SliderOuterThumbBackground}" |
38 | | - BorderBrush="{ThemeResource SliderThumbBorderBrush}" |
| 43 | + BorderBrush="{TemplateBinding BorderBrush}" |
39 | 44 | BorderThickness="{TemplateBinding BorderThickness}" |
40 | 45 | CornerRadius="{TemplateBinding CornerRadius}"> |
41 | 46 | <VisualStateManager.VisualStateGroups> |
|
0 commit comments