|
13 | 13 | d:DesignHeight="380" d:DesignWidth="600"
|
14 | 14 | d:DataContext="{d:DesignInstance local:AddRemoveReferencesViewModel}">
|
15 | 15 | <UserControl.Resources>
|
16 |
| - <system:Int32 x:Key="ToolTipDelay">2000</system:Int32> |
| 16 | + <ResourceDictionary> |
| 17 | + <ResourceDictionary.MergedDictionaries> |
| 18 | + <ResourceDictionary Source="../Styles/DefaultStyle.xaml"/> |
| 19 | + </ResourceDictionary.MergedDictionaries> |
17 | 20 |
|
18 |
| - <BitmapImage x:Key="BrowseIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/folder-open.png" /> |
19 |
| - <BitmapImage x:Key="LibraryIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/node-select-all.png" /> |
20 |
| - <BitmapImage x:Key="VbaProjectIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Custom/PNG/ObjectClass.png" /> |
21 |
| - <BitmapImage x:Key="PinnedIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/pinned.png" /> |
22 |
| - <BitmapImage x:Key="RecentIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/clock-select.png" /> |
23 |
| - <BitmapImage x:Key="AddIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow.png" /> |
24 |
| - <BitmapImage x:Key="RemoveIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-180.png" /> |
| 21 | + <system:Int32 x:Key="ToolTipDelay">2000</system:Int32> |
25 | 22 |
|
26 |
| - <local:ReferenceStatusImageSourceConverter x:Key="StatusToIcon" /> |
27 |
| - <local:PriorityButtonVisibilityConverter x:Key="PriorityButtonVisibility" /> |
28 |
| - <local:PriorityButtonImageSourceConverter x:Key="PriorityButtonIcon" /> |
29 |
| - <converters:BooleanToNonDimmedBrushConverter x:Key="BooleanToNonDimmed" /> |
30 |
| - <converters:BoolToHiddenVisibilityConverter x:Key="ProjectVisibilityConverter" /> |
| 23 | + <BitmapImage x:Key="BrowseIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/folder-open.png" /> |
| 24 | + <BitmapImage x:Key="LibraryIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/node-select-all.png" /> |
| 25 | + <BitmapImage x:Key="VbaProjectIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Custom/PNG/ObjectClass.png" /> |
| 26 | + <BitmapImage x:Key="PinnedIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/pinned.png" /> |
| 27 | + <BitmapImage x:Key="RecentIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/clock-select.png" /> |
| 28 | + <BitmapImage x:Key="AddIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow.png" /> |
| 29 | + <BitmapImage x:Key="RemoveIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-180.png" /> |
31 | 30 |
|
32 |
| - <Style x:Key="DialogButtonStyle" TargetType="Button"> |
33 |
| - <Setter Property="Margin" Value="5,0" /> |
34 |
| - <Setter Property="Height" Value="24" /> |
35 |
| - <Setter Property="Padding" Value="10,0" /> |
36 |
| - </Style> |
37 |
| - <Style TargetType="{x:Type TabItem}"> |
38 |
| - <Setter Property="Background" Value="Transparent" /> |
39 |
| - <Setter Property="Template"> |
40 |
| - <Setter.Value> |
41 |
| - <ControlTemplate TargetType="{x:Type TabItem}"> |
42 |
| - <Border x:Name="PART_Border" Background="{TemplateBinding Background}" BorderThickness="0,0,0,2" BorderBrush="Transparent" Margin="2"> |
43 |
| - <ContentPresenter ContentSource="Header" Margin="2" /> |
44 |
| - </Border> |
45 |
| - <ControlTemplate.Triggers> |
46 |
| - <Trigger Property="IsSelected" Value="True"> |
47 |
| - <Setter TargetName="PART_Border" Property="BorderBrush" Value="Blue" /> |
48 |
| - </Trigger> |
49 |
| - </ControlTemplate.Triggers> |
50 |
| - </ControlTemplate> |
51 |
| - </Setter.Value> |
52 |
| - </Setter> |
53 |
| - </Style> |
54 |
| - <Style TargetType="{x:Type TabControl}"> |
55 |
| - <Setter Property="OverridesDefaultStyle" Value="True" /> |
56 |
| - <Setter Property="SnapsToDevicePixels" Value="True" /> |
57 |
| - <Setter Property="Template"> |
58 |
| - <Setter.Value> |
59 |
| - <ControlTemplate TargetType="{x:Type TabControl}"> |
60 |
| - <Grid KeyboardNavigation.TabNavigation="Local"> |
61 |
| - <Grid.RowDefinitions> |
62 |
| - <RowDefinition Height="Auto"/> |
63 |
| - <RowDefinition Height="*"/> |
64 |
| - </Grid.RowDefinitions> |
65 |
| - <TabPanel |
| 31 | + <local:ReferenceStatusImageSourceConverter x:Key="StatusToIcon" /> |
| 32 | + <local:PriorityButtonVisibilityConverter x:Key="PriorityButtonVisibility" /> |
| 33 | + <local:PriorityButtonImageSourceConverter x:Key="PriorityButtonIcon" /> |
| 34 | + <converters:BooleanToNonDimmedBrushConverter x:Key="BooleanToNonDimmed" /> |
| 35 | + <converters:BoolToHiddenVisibilityConverter x:Key="ProjectVisibilityConverter" /> |
| 36 | + |
| 37 | + <Style x:Key="DialogButtonStyle" TargetType="Button"> |
| 38 | + <Setter Property="Margin" Value="5,0" /> |
| 39 | + <Setter Property="Height" Value="24" /> |
| 40 | + <Setter Property="Padding" Value="10,0" /> |
| 41 | + </Style> |
| 42 | + <Style TargetType="{x:Type TabItem}"> |
| 43 | + <Setter Property="Background" Value="Transparent" /> |
| 44 | + <Setter Property="Template"> |
| 45 | + <Setter.Value> |
| 46 | + <ControlTemplate TargetType="{x:Type TabItem}"> |
| 47 | + <Border x:Name="PART_Border" Background="{TemplateBinding Background}" BorderThickness="0,0,0,2" BorderBrush="Transparent" Margin="2"> |
| 48 | + <ContentPresenter ContentSource="Header" Margin="2" /> |
| 49 | + </Border> |
| 50 | + <ControlTemplate.Triggers> |
| 51 | + <Trigger Property="IsSelected" Value="True"> |
| 52 | + <Setter TargetName="PART_Border" Property="BorderBrush" Value="{StaticResource TabSelectionUnderlineBrush}" /> |
| 53 | + </Trigger> |
| 54 | + </ControlTemplate.Triggers> |
| 55 | + </ControlTemplate> |
| 56 | + </Setter.Value> |
| 57 | + </Setter> |
| 58 | + </Style> |
| 59 | + <Style TargetType="{x:Type TabControl}"> |
| 60 | + <Setter Property="OverridesDefaultStyle" Value="True" /> |
| 61 | + <Setter Property="SnapsToDevicePixels" Value="True" /> |
| 62 | + <Setter Property="Template"> |
| 63 | + <Setter.Value> |
| 64 | + <ControlTemplate TargetType="{x:Type TabControl}"> |
| 65 | + <Grid KeyboardNavigation.TabNavigation="Local"> |
| 66 | + <Grid.RowDefinitions> |
| 67 | + <RowDefinition Height="Auto"/> |
| 68 | + <RowDefinition Height="*"/> |
| 69 | + </Grid.RowDefinitions> |
| 70 | + <TabPanel |
66 | 71 | Name="HeaderPanel"
|
67 | 72 | Grid.Row="0"
|
68 | 73 | Panel.ZIndex="1"
|
69 | 74 | Margin="0,0,4,-1"
|
70 | 75 | IsItemsHost="True"
|
71 | 76 | KeyboardNavigation.TabIndex="1"
|
72 | 77 | Background="Transparent" />
|
73 |
| - </Grid> |
74 |
| - <ControlTemplate.Triggers> |
75 |
| - <Trigger Property="IsEnabled" Value="False" /> |
76 |
| - </ControlTemplate.Triggers> |
77 |
| - </ControlTemplate> |
78 |
| - </Setter.Value> |
79 |
| - </Setter> |
80 |
| - </Style> |
81 |
| - <Style x:Key="SelectableText" TargetType="{x:Type TextBox}"> |
82 |
| - <Setter Property="Margin" Value="2" /> |
83 |
| - <Setter Property="Foreground" Value ="{x:Static SystemColors.GrayTextBrush}" /> |
84 |
| - <Setter Property="Background" Value="Transparent" /> |
85 |
| - <Setter Property="BorderThickness" Value="0" /> |
86 |
| - <Setter Property="IsReadOnly" Value="True" /> |
87 |
| - <Setter Property="TextWrapping" Value="NoWrap" /> |
88 |
| - <Setter Property="VerticalAlignment" Value="Center" /> |
89 |
| - </Style> |
90 |
| - <Style x:Key="BorderStyle" TargetType="{x:Type Border}"> |
91 |
| - <Setter Property="BorderThickness" Value="1" /> |
92 |
| - <Setter Property="BorderBrush" Value="{x:Static SystemColors.ActiveBorderBrush}" /> |
93 |
| - <Setter Property="Background" Value="{x:Static SystemColors.ControlBrush}" /> |
94 |
| - <Setter Property="Padding" Value="2" /> |
95 |
| - </Style> |
| 78 | + </Grid> |
| 79 | + <ControlTemplate.Triggers> |
| 80 | + <Trigger Property="IsEnabled" Value="False" /> |
| 81 | + </ControlTemplate.Triggers> |
| 82 | + </ControlTemplate> |
| 83 | + </Setter.Value> |
| 84 | + </Setter> |
| 85 | + </Style> |
| 86 | + <Style x:Key="SelectableText" TargetType="{x:Type TextBox}"> |
| 87 | + <Setter Property="Margin" Value="2" /> |
| 88 | + <Setter Property="Foreground" Value ="{x:Static SystemColors.GrayTextBrush}" /> |
| 89 | + <Setter Property="Background" Value="Transparent" /> |
| 90 | + <Setter Property="BorderThickness" Value="0" /> |
| 91 | + <Setter Property="IsReadOnly" Value="True" /> |
| 92 | + <Setter Property="TextWrapping" Value="NoWrap" /> |
| 93 | + <Setter Property="VerticalAlignment" Value="Center" /> |
| 94 | + </Style> |
| 95 | + <Style x:Key="BorderStyle" TargetType="{x:Type Border}"> |
| 96 | + <Setter Property="BorderThickness" Value="1" /> |
| 97 | + <Setter Property="BorderBrush" Value="{x:Static SystemColors.ActiveBorderBrush}" /> |
| 98 | + <Setter Property="Background" Value="{x:Static SystemColors.ControlBrush}" /> |
| 99 | + <Setter Property="Padding" Value="2" /> |
| 100 | + </Style> |
| 101 | + </ResourceDictionary> |
96 | 102 | </UserControl.Resources>
|
97 | 103 | <Grid Margin="0,0,0,0">
|
98 | 104 | <Grid.RowDefinitions>
|
|
257 | 263 | <ColumnDefinition Width="*" />
|
258 | 264 | <ColumnDefinition Width="50" />
|
259 | 265 | </Grid.ColumnDefinitions>
|
260 |
| - <Button Name="MoveUpButton" Grid.Column="0" Margin="1" Background="Transparent" BorderBrush="LightGray" |
| 266 | + <Button Name="MoveUpButton" Grid.Column="0" Margin="1" Background="Transparent" BorderBrush="{StaticResource ButtonFaceBrush}" |
261 | 267 | Command="{Binding DataContext.MoveUpCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:AddRemoveReferencesWindow}}}"
|
262 | 268 | ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=References_MoveUpToolTip}" ToolTipService.InitialShowDelay="{StaticResource ToolTipDelay}">
|
263 | 269 | <Button.Style>
|
|
304 | 310 | <controls:BindableListItemDrillThroughBehavior />
|
305 | 311 | </i:Interaction.Behaviors>
|
306 | 312 | </Button>
|
307 |
| - <Button Name="MoveDownButton" Grid.Column="1" Margin="1" Background="Transparent" BorderBrush="LightGray" |
| 313 | + <Button Name="MoveDownButton" Grid.Column="1" Margin="1" Background="Transparent" BorderBrush="{StaticResource ButtonFaceBrush}" |
308 | 314 | Command="{Binding DataContext.MoveDownCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:AddRemoveReferencesWindow}}}"
|
309 | 315 | ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=References_MoveDownToolTip}" ToolTipService.InitialShowDelay="{StaticResource ToolTipDelay}">
|
310 | 316 | <Button.Style>
|
|
0 commit comments