|
4277 | 4277 | <Setter Property="FontSize" Value="{StaticResource ScaledDefaultFontSize}"/>
|
4278 | 4278 | </Style>
|
4279 | 4279 |
|
4280 |
| - <!-- MOD START - Overwrite Slider Template for CC only --> |
4281 |
| - <ControlTemplate x:Key="CCOptionsSliderTemplate" TargetType="Slider"> |
4282 |
| - <ControlTemplate.Resources> |
4283 |
| - <BitmapImage x:Key="SliderBackground" UriSource="pack://application:,,,/GustavNoesisGUI;component/Assets/Options/sliderBox_wide_d.png"/> |
4284 |
| - </ControlTemplate.Resources> |
4285 |
| - <StackPanel Orientation="Horizontal"> |
4286 |
| - <Grid HorizontalAlignment="Center"> |
4287 |
| - <ls:LSNineSliceImage x:Name="bg" HorizontalAlignment="Center" VerticalAlignment="Center" ImageSource="{StaticResource SliderBackground}" Width="{TemplateBinding Width}" Height="80" Slices="106,20"/> |
4288 |
| - |
4289 |
| - <ls:LSRepeatButton x:Name="PART_DecreaseRepeatButton" HorizontalAlignment="Left" ContentTemplate="{StaticResource SliderRepeatButtonTemplate}" SoundID="UI_HUD_Shared_Slider_LeftButton" Command="Slider.DecreaseLarge" /> |
4290 |
| - <ls:LSRepeatButton x:Name="PART_IncreaseRepeatButton" HorizontalAlignment="Right" ContentTemplate="{StaticResource SliderRepeatButtonTemplate}" SoundID="UI_HUD_Shared_Slider_RightButton" Command="Slider.IncreaseLarge" RenderTransformOrigin="0.5, 0.5"> |
4291 |
| - <ls:LSRepeatButton.RenderTransform> |
4292 |
| - <ScaleTransform ScaleX="-1"/> |
4293 |
| - </ls:LSRepeatButton.RenderTransform> |
4294 |
| - </ls:LSRepeatButton> |
4295 |
| - |
4296 |
| - <Track Name="PART_Track" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="56,0" Height="{TemplateBinding Height}"> |
4297 |
| - <Track.DecreaseRepeatButton> |
4298 |
| - <ls:LSRepeatButton x:Name="PART_TrackBefore" Style="{StaticResource Style.Slider.RepeatButton}" Command="Slider.DecreaseLarge"/> |
4299 |
| - </Track.DecreaseRepeatButton> |
4300 |
| - <Track.Thumb> |
4301 |
| - <ls:LSThumb Style="{StaticResource OptionSliderThumbStyle}" /> |
4302 |
| - </Track.Thumb> |
4303 |
| - <Track.IncreaseRepeatButton> |
4304 |
| - <ls:LSRepeatButton x:Name="PART_TrackAfter" Style="{StaticResource Style.Slider.RepeatButton}" Command="Slider.IncreaseLarge"/> |
4305 |
| - </Track.IncreaseRepeatButton> |
4306 |
| - </Track> |
4307 |
| - <TextBlock x:Name="PART_ValueLabel" Style="{StaticResource DefaultSliderValueStyle}" Margin="0,0,-60,0" Foreground="{StaticResource LS_accent100TxtColor}" FontSize="{StaticResource ScaledLargeFontSize}" Visibility="Visible"/> |
4308 |
| - </Grid> |
4309 |
| - </StackPanel> |
4310 |
| - <ControlTemplate.Triggers> |
4311 |
| - <DataTrigger Binding="{Binding Enabled}" Value="False"> |
4312 |
| - <Setter Property="Opacity" Value="{StaticResource DisabledOpacity}" /> |
4313 |
| - </DataTrigger> |
4314 |
| - |
4315 |
| - <Trigger Property="IsMouseOver" Value="True"> |
4316 |
| - <Setter TargetName="bg" Property="ImageSource" Value="pack://application:,,,/GustavNoesisGUI;component/Assets/Options/sliderBox_wide_h.png"/> |
4317 |
| - </Trigger> |
4318 |
| - </ControlTemplate.Triggers> |
4319 |
| - </ControlTemplate> |
4320 |
| - |
4321 | 4280 | <Style x:Key="CCSliderStyle" TargetType="{x:Type Slider}">
|
4322 |
| - <Setter Property="Template" Value="{StaticResource CCOptionsSliderTemplate}"/> |
4323 |
| - <!-- MOD END --> |
| 4281 | + <Setter Property="Template" Value="{StaticResource OptionsSliderTemplate}"/> |
4324 | 4282 | <Setter Property="Value" Value="{Binding Value}"/>
|
4325 | 4283 | <Setter Property="Minimum" Value="{Binding Min}"/>
|
4326 | 4284 | <Setter Property="Maximum" Value="{Binding Max}"/>
|
|
4330 | 4288 | <Setter Property="IsEnabled" Value="{Binding Enabled}"/>
|
4331 | 4289 | <Setter Property="Width" Value="600"/>
|
4332 | 4290 | <Setter Property="HorizontalAlignment" Value="Center"/>
|
| 4291 | + <Setter Property="Margin" Value="50,0,-50,0"/> |
4333 | 4292 | </Style>
|
4334 | 4293 |
|
4335 | 4294 | <ControlTemplate x:Key="SliderTemplate">
|
4336 | 4295 | <StackPanel>
|
4337 | 4296 | <TextBlock Text="{Binding Text}" HorizontalAlignment="Center"/>
|
4338 |
| - <Slider DataContext="{Binding}" Style="{StaticResource CCSliderStyle}" Width="500"> |
| 4297 | + <Slider DataContext="{Binding}" Style="{StaticResource CCSliderStyle}"> |
4339 | 4298 | <b:Interaction.Triggers>
|
4340 | 4299 | <b:EventTrigger EventName="ValueChanged">
|
4341 | 4300 | <b:InvokeCommandAction Command="{Binding DataContext.AppearanceValueChanged, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}"/>
|
|
0 commit comments