feat: Update resources.
This commit is contained in:
@@ -4,7 +4,9 @@
|
|||||||
xmlns:u="https://irihi.tech/ursa">
|
xmlns:u="https://irihi.tech/ursa">
|
||||||
<!-- Add Resources Here -->
|
<!-- Add Resources Here -->
|
||||||
<ControlTheme x:Key="{x:Type u:RangeSlider}" TargetType="u:RangeSlider">
|
<ControlTheme x:Key="{x:Type u:RangeSlider}" TargetType="u:RangeSlider">
|
||||||
<Setter Property="TrackWidth" Value="8" />
|
<Setter Property="Background" Value="{DynamicResource SliderTrackBackground}" />
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource SliderTrackForeground}" />
|
||||||
|
<Setter Property="TrackWidth" Value="4" />
|
||||||
<Style Selector="^:horizontal">
|
<Style Selector="^:horizontal">
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="u:RangeSlider">
|
<ControlTemplate TargetType="u:RangeSlider">
|
||||||
@@ -58,8 +60,9 @@
|
|||||||
UpperValue="{Binding UpperValue, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}">
|
UpperValue="{Binding UpperValue, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}">
|
||||||
<u:RangeTrack.LowerSection>
|
<u:RangeTrack.LowerSection>
|
||||||
<Border
|
<Border
|
||||||
|
Name="PART_LowerSection"
|
||||||
Height="{TemplateBinding TrackWidth}"
|
Height="{TemplateBinding TrackWidth}"
|
||||||
Background="Gray"
|
Background="{TemplateBinding Background}"
|
||||||
CornerRadius="100" />
|
CornerRadius="100" />
|
||||||
</u:RangeTrack.LowerSection>
|
</u:RangeTrack.LowerSection>
|
||||||
<u:RangeTrack.LowerThumb>
|
<u:RangeTrack.LowerThumb>
|
||||||
@@ -70,8 +73,9 @@
|
|||||||
</u:RangeTrack.LowerThumb>
|
</u:RangeTrack.LowerThumb>
|
||||||
<u:RangeTrack.InnerSection>
|
<u:RangeTrack.InnerSection>
|
||||||
<Border
|
<Border
|
||||||
|
Name="PART_InnerSection"
|
||||||
Height="{TemplateBinding TrackWidth}"
|
Height="{TemplateBinding TrackWidth}"
|
||||||
Background="Blue"
|
Background="{TemplateBinding Foreground}"
|
||||||
CornerRadius="100" />
|
CornerRadius="100" />
|
||||||
</u:RangeTrack.InnerSection>
|
</u:RangeTrack.InnerSection>
|
||||||
<u:RangeTrack.UpperThumb>
|
<u:RangeTrack.UpperThumb>
|
||||||
@@ -82,8 +86,9 @@
|
|||||||
</u:RangeTrack.UpperThumb>
|
</u:RangeTrack.UpperThumb>
|
||||||
<u:RangeTrack.UpperSection>
|
<u:RangeTrack.UpperSection>
|
||||||
<Border
|
<Border
|
||||||
|
Name="PART_UpperSection"
|
||||||
Height="{TemplateBinding TrackWidth}"
|
Height="{TemplateBinding TrackWidth}"
|
||||||
Background="Gray"
|
Background="{TemplateBinding Background}"
|
||||||
CornerRadius="100" />
|
CornerRadius="100" />
|
||||||
</u:RangeTrack.UpperSection>
|
</u:RangeTrack.UpperSection>
|
||||||
</u:RangeTrack>
|
</u:RangeTrack>
|
||||||
@@ -145,8 +150,9 @@
|
|||||||
UpperValue="{Binding UpperValue, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}">
|
UpperValue="{Binding UpperValue, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}">
|
||||||
<u:RangeTrack.LowerSection>
|
<u:RangeTrack.LowerSection>
|
||||||
<Border
|
<Border
|
||||||
Height="{TemplateBinding TrackWidth}"
|
Name="PART_LowerSection"
|
||||||
Background="Gray"
|
Width="{TemplateBinding TrackWidth}"
|
||||||
|
Background="{TemplateBinding Background}"
|
||||||
CornerRadius="100" />
|
CornerRadius="100" />
|
||||||
</u:RangeTrack.LowerSection>
|
</u:RangeTrack.LowerSection>
|
||||||
<u:RangeTrack.LowerThumb>
|
<u:RangeTrack.LowerThumb>
|
||||||
@@ -157,8 +163,9 @@
|
|||||||
</u:RangeTrack.LowerThumb>
|
</u:RangeTrack.LowerThumb>
|
||||||
<u:RangeTrack.InnerSection>
|
<u:RangeTrack.InnerSection>
|
||||||
<Border
|
<Border
|
||||||
Height="{TemplateBinding TrackWidth}"
|
Name="PART_InnerSection"
|
||||||
Background="Blue"
|
Width="{TemplateBinding TrackWidth}"
|
||||||
|
Background="{TemplateBinding Foreground}"
|
||||||
CornerRadius="100" />
|
CornerRadius="100" />
|
||||||
</u:RangeTrack.InnerSection>
|
</u:RangeTrack.InnerSection>
|
||||||
<u:RangeTrack.UpperThumb>
|
<u:RangeTrack.UpperThumb>
|
||||||
@@ -169,8 +176,9 @@
|
|||||||
</u:RangeTrack.UpperThumb>
|
</u:RangeTrack.UpperThumb>
|
||||||
<u:RangeTrack.UpperSection>
|
<u:RangeTrack.UpperSection>
|
||||||
<Border
|
<Border
|
||||||
Height="{TemplateBinding TrackWidth}"
|
Name="PART_UpperSection"
|
||||||
Background="Gray"
|
Width="{TemplateBinding TrackWidth}"
|
||||||
|
Background="{TemplateBinding Background}"
|
||||||
CornerRadius="100" />
|
CornerRadius="100" />
|
||||||
</u:RangeTrack.UpperSection>
|
</u:RangeTrack.UpperSection>
|
||||||
</u:RangeTrack>
|
</u:RangeTrack>
|
||||||
@@ -198,5 +206,19 @@
|
|||||||
<Style Selector="^:error /template/ Thumb#thumb">
|
<Style Selector="^:error /template/ Thumb#thumb">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource DataValidationErrorsSelectedBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource DataValidationErrorsSelectedBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^:disabled">
|
||||||
|
<Style Selector="^ /template/ Border#PART_InnerSection">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource SliderTrackDisabledForeground}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^ /template/ Border#PART_UpperSection, ^ /template/ Border#PART_LowerSection">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource SliderTrackDisabledBackground}" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^ /template/ Thumb">
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource SliderThumbDisabledBorderBrush}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
Reference in New Issue
Block a user