|
50 | 50 | <SolidColorBrush x:Key="HighlightedBrush" Color="{StaticResource SelectedBackgroundColor}"/> |
51 | 51 | <SolidColorBrush x:Key="MouseOverBrush" Color="{StaticResource ControlMouseOverColor}"/> |
52 | 52 | <SolidColorBrush x:Key="InactiveAccentBrush">#ad7b7b</SolidColorBrush> |
| 53 | + <SolidColorBrush x:Key="DragScrollBrush">#757575</SolidColorBrush> |
| 54 | + <SolidColorBrush x:Key="ScrollBrush">#969696</SolidColorBrush> |
| 55 | + <SolidColorBrush x:Key="MouseOverScrollBrush">#a1a1a1</SolidColorBrush> |
| 56 | + |
53 | 57 | <SolidColorBrush x:Key="DisabledAccentBrush">#949ea6</SolidColorBrush> |
54 | 58 | <SolidColorBrush x:Key="HighlightedInactiveAccentBrush" Color="#95bfdb"/> |
55 | 59 | <StaticResource x:Key="ButtonBackgroundBrush" ResourceKey="AccentBrush"/> |
|
152 | 156 | <Setter.Value> |
153 | 157 | <ControlTemplate TargetType="Button"> |
154 | 158 | <Border Height="Auto" Width="Auto" BorderBrush="{TemplateBinding Background}" Background="{TemplateBinding Background}" BorderThickness="0" CornerRadius="{StaticResource CornerRadius}"> |
155 | | - <TextBlock FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" Background="Transparent" Margin="5" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| 159 | + <TextBlock FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" Background="Transparent" Margin="5,2" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
156 | 160 | </Border> |
157 | 161 | </ControlTemplate> |
158 | 162 | </Setter.Value> |
|
710 | 714 |
|
711 | 715 |
|
712 | 716 |
|
| 717 | + <Style x:Key="ScrollThumbs" TargetType="{x:Type Thumb}"> |
| 718 | + <Setter Property="Template"> |
| 719 | + <Setter.Value> |
| 720 | + <ControlTemplate TargetType="{x:Type Thumb}"> |
| 721 | + <Grid x:Name="Grid"> |
| 722 | + <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Fill="Transparent" /> |
| 723 | + <Border x:Name="Rectangle1" CornerRadius="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Background="{TemplateBinding Background}" /> |
| 724 | + </Grid> |
| 725 | + <ControlTemplate.Triggers> |
| 726 | + <Trigger Property="Tag" Value="Vertical"> |
| 727 | + <Setter TargetName="Rectangle1" Property="Width" Value="6" /> |
| 728 | + <Setter TargetName="Rectangle1" Property="Height" Value="Auto" /> |
| 729 | + </Trigger> |
| 730 | + <Trigger Property="Tag" Value="Horizontal"> |
| 731 | + <Setter TargetName="Rectangle1" Property="Width" Value="Auto" /> |
| 732 | + <Setter TargetName="Rectangle1" Property="Height" Value="6" /> |
| 733 | + |
| 734 | + </Trigger> |
| 735 | + |
| 736 | + </ControlTemplate.Triggers> |
| 737 | + </ControlTemplate> |
| 738 | + </Setter.Value> |
| 739 | + </Setter> |
| 740 | + </Style> |
| 741 | + |
| 742 | + <!--ScrollBars--> |
| 743 | + <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}"> |
| 744 | + <Setter Property="Stylus.IsFlicksEnabled" Value="false" /> |
| 745 | + <Setter Property="Foreground" Value="LightGray" /> |
| 746 | + <Setter Property="Background" Value="{StaticResource ScrollBrush}" /> |
| 747 | + <Setter Property="Width" Value="10" /> |
| 748 | + <Setter Property="Template"> |
| 749 | + <Setter.Value> |
| 750 | + <ControlTemplate TargetType="{x:Type ScrollBar}"> |
| 751 | + <Grid x:Name="GridRoot" Width="19" Background="Transparent"> |
| 752 | + <Grid.RowDefinitions> |
| 753 | + <RowDefinition Height="0.00001*" /> |
| 754 | + </Grid.RowDefinitions> |
| 755 | + |
| 756 | + <Track x:Name="PART_Track" Grid.Row="0" IsDirectionReversed="true" Focusable="false"> |
| 757 | + <Track.Thumb> |
| 758 | + <Thumb x:Name="Thumb" Background="{TemplateBinding Foreground}" Style="{DynamicResource ScrollThumbs}" /> |
| 759 | + </Track.Thumb> |
| 760 | + <Track.IncreaseRepeatButton> |
| 761 | + <RepeatButton x:Name="PageUp" Command="ScrollBar.PageDownCommand" Opacity="0" Focusable="false" /> |
| 762 | + </Track.IncreaseRepeatButton> |
| 763 | + <Track.DecreaseRepeatButton> |
| 764 | + <RepeatButton x:Name="PageDown" Command="ScrollBar.PageUpCommand" Opacity="0" Focusable="false" /> |
| 765 | + </Track.DecreaseRepeatButton> |
| 766 | + </Track> |
| 767 | + </Grid> |
| 768 | + |
| 769 | + <ControlTemplate.Triggers> |
| 770 | + <Trigger SourceName="Thumb" Property="IsMouseOver" Value="true"> |
| 771 | + <Setter Value="{DynamicResource MouseOverScrollBrush}" TargetName="Thumb" Property="Background" /> |
| 772 | + </Trigger> |
| 773 | + <Trigger SourceName="Thumb" Property="IsDragging" Value="true"> |
| 774 | + <Setter Value="{DynamicResource DragScrollBrush }" TargetName="Thumb" Property="Background" /> |
| 775 | + </Trigger> |
| 776 | + |
| 777 | + <Trigger Property="IsEnabled" Value="false"> |
| 778 | + <Setter TargetName="Thumb" Property="Visibility" Value="Collapsed" /> |
| 779 | + </Trigger> |
| 780 | + <Trigger Property="Orientation" Value="Horizontal"> |
| 781 | + <Setter TargetName="GridRoot" Property="LayoutTransform"> |
| 782 | + <Setter.Value> |
| 783 | + <RotateTransform Angle="-90" /> |
| 784 | + </Setter.Value> |
| 785 | + </Setter> |
| 786 | + <Setter TargetName="PART_Track" Property="LayoutTransform"> |
| 787 | + <Setter.Value> |
| 788 | + <RotateTransform Angle="-90" /> |
| 789 | + </Setter.Value> |
| 790 | + </Setter> |
| 791 | + <Setter Property="Width" Value="Auto" /> |
| 792 | + <Setter Property="Height" Value="10" /> |
| 793 | + <Setter TargetName="Thumb" Property="Tag" Value="Horizontal" /> |
| 794 | + <Setter TargetName="PageDown" Property="Command" Value="ScrollBar.PageLeftCommand" /> |
| 795 | + <Setter TargetName="PageUp" Property="Command" Value="ScrollBar.PageRightCommand" /> |
| 796 | + </Trigger> |
| 797 | + <Trigger Property="Orientation" Value="Vertical"> |
| 798 | + <!--<Setter TargetName="GridRoot" Property="LayoutTransform"> |
| 799 | + <Setter.Value> |
| 800 | + <RotateTransform Angle="-90" /> |
| 801 | + </Setter.Value> |
| 802 | + </Setter> |
| 803 | + <Setter TargetName="PART_Track" Property="LayoutTransform"> |
| 804 | + <Setter.Value> |
| 805 | + <RotateTransform Angle="-90" /> |
| 806 | + </Setter.Value> |
| 807 | + </Setter>--> |
| 808 | + <Setter Property="Width" Value="10" /> |
| 809 | + <Setter Property="Height" Value="Auto" /> |
| 810 | + <Setter TargetName="Thumb" Property="Tag" Value="Vertical" /> |
| 811 | + <Setter TargetName="PageDown" Property="Command" Value="ScrollBar.PageLeftCommand" /> |
| 812 | + <Setter TargetName="PageUp" Property="Command" Value="ScrollBar.PageRightCommand" /> |
| 813 | + </Trigger> |
| 814 | + |
| 815 | + </ControlTemplate.Triggers> |
| 816 | + </ControlTemplate> |
| 817 | + </Setter.Value> |
| 818 | + </Setter> |
| 819 | + </Style> |
| 820 | + |
| 821 | + |
| 822 | + |
| 823 | + |
| 824 | + |
| 825 | + |
| 826 | + |
| 827 | + |
| 828 | + |
| 829 | + |
| 830 | + |
| 831 | + |
| 832 | + |
| 833 | + |
713 | 834 |
|
714 | 835 | <local:EnumLocaleConverter x:Key="EnumLocaleConverter"/> |
715 | 836 | <corewpf:DialogService x:Key="DialogService" /> |
|
0 commit comments