Skip to content

Commit e913bd0

Browse files
committed
Merge branch 'rubberduck-vba/next' into NRE_4659
2 parents 8cbe8f8 + d04b41c commit e913bd0

File tree

16 files changed

+108
-37
lines changed

16 files changed

+108
-37
lines changed

Rubberduck.Core/UI/AddRemoveReferences/AddRemoveReferencesWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
SelectionMode="Single"
233233
ItemsSource="{Binding AvailableReferences}"
234234
HorizontalContentAlignment="Stretch"
235-
ScrollViewer.HorizontalScrollBarVisibility="Hidden">
235+
ScrollViewer.HorizontalScrollBarVisibility="Auto">
236236
<ListView.ItemContainerStyle>
237237
<Style TargetType="ListViewItem">
238238
<Setter Property="Height" Value="20" />
@@ -289,7 +289,7 @@
289289
SelectedItem="{Binding SelectedReference, Mode=TwoWay}"
290290
SelectionMode="Single"
291291
ItemsSource="{Binding ProjectReferences, NotifyOnTargetUpdated=True}"
292-
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
292+
ScrollViewer.HorizontalScrollBarVisibility="Auto"
293293
HorizontalContentAlignment="Stretch">
294294
<ListView.ItemContainerStyle>
295295
<Style TargetType="ListViewItem">

Rubberduck.Core/UI/Controls/EmptyUIRefresh.xaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
mc:Ignorable="d"
77
d:DesignHeight="300" d:DesignWidth="300">
8+
<UserControl.Resources>
9+
<BitmapImage x:Key="DoubleArrowImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-circle-double.png" />
10+
</UserControl.Resources>
811

912
<Border Background="AliceBlue" DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext}">
1013
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" TextWrapping="WrapWithOverflow" TextAlignment="Center"
1114
MinWidth="200" Visibility="{Binding EmptyUIRefreshMessageVisibility}">
1215
<Run FontWeight="Bold" Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=EmptyUIRefreshMessage_Title}"/><LineBreak/>
1316
<LineBreak/>
1417
<Button Command="{Binding RefreshCommand}" BorderThickness="0" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
15-
<Image Height="16" Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-circle-double.png" ClipToBounds="True" />
18+
<Image Height="16" Source="{StaticResource DoubleArrowImage}" ClipToBounds="True" />
1619
<Button.ToolTip>
1720
<TextBlock Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Refresh}" />
1821
</Button.ToolTip>

Rubberduck.Core/UI/FindSymbol/FindSymbolControl.xaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
Executed="CommandBinding_OnExecuted"
1414
CanExecute="CommandBinding_OnCanExecute"/>
1515
</UserControl.CommandBindings>
16+
17+
<UserControl.Resources>
18+
<BitmapImage x:Key="ArrowImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow.png" />
19+
</UserControl.Resources>
1620

1721
<Grid>
1822

@@ -43,7 +47,7 @@
4347
</ComboBox>
4448

4549
<Button Grid.Column="1" Command="local:FindSymbolControl.GoCommand">
46-
<Image Height="16" Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow.png" />
50+
<Image Height="16" Source="{StaticResource ArrowImage}" />
4751
</Button>
4852

4953
</Grid>

Rubberduck.Core/UI/Inspections/InspectionResultsViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public void FilterResults(IEnumerable<CodeInspectionSeverity> inspections)
329329

330330
private void OpenSettings(object param)
331331
{
332-
using (var window = _settingsFormFactory.Create())
332+
using (var window = _settingsFormFactory.Create(SettingsViews.InspectionSettings))
333333
{
334334
window.ShowDialog();
335335
_settingsFormFactory.Release(window);

Rubberduck.Core/UI/Refactorings/EncapsulateField/EncapsulateFieldView.xaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
d:DesignHeight="300" d:DesignWidth="300">
1010
<UserControl.Resources>
1111
<converters:BoolToHiddenVisibilityConverter x:Key="BoolToHiddenVisibility" />
12+
13+
<BitmapImage x:Key="InvalidEntryImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png" />
1214
</UserControl.Resources>
1315
<Grid>
1416
<Grid.RowDefinitions>
@@ -49,7 +51,7 @@
4951
VerticalContentAlignment="Center"
5052
Text="{Binding PropertyName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
5153
<Image Grid.Row="1"
52-
Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png"
54+
Source="{StaticResource InvalidEntryImage}"
5355
Height="16"
5456
Margin="0,-10,-8,0"
5557
HorizontalAlignment="Right"
@@ -69,7 +71,7 @@
6971
VerticalContentAlignment="Center"
7072
Text="{Binding ParameterName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
7173
<Image Grid.Row="1"
72-
Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png"
74+
Source="{StaticResource InvalidEntryImage}"
7375
Height="16"
7476
Margin="0,-10,-8,0"
7577
HorizontalAlignment="Right"

Rubberduck.Core/UI/Refactorings/ExtractInterface/ExtractInterfaceView.xaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
</MultiTrigger>
5353
</Style.Triggers>
5454
</Style>
55+
56+
<BitmapImage x:Key="InvalidInterfaceImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png" />
5557
</UserControl.Resources>
5658
<Grid>
5759
<Grid.RowDefinitions>
@@ -79,7 +81,8 @@
7981
VerticalAlignment="Top"
8082
VerticalContentAlignment="Center"
8183
Text="{Binding InterfaceName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
82-
<Image Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png"
84+
<Image Grid.Row="1"
85+
Source="{StaticResource InvalidInterfaceImage}"
8386
Height="16"
8487
Margin="0,-10,-8,0"
8588
HorizontalAlignment="Right"

Rubberduck.Core/UI/Refactorings/RemoveParameters/RemoveParametersView.xaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<converters:InvertBoolValueConverter x:Key="InvertedBool" />
1313
<removeParameters:ParameterTextDecorationConverter x:Key="ParameterTextDecoration" />
1414

15+
<BitmapImage x:Key="RemoveParameterImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-script.png" />
16+
<BitmapImage x:Key="RestoreParameterImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-return-180-left.png" />
17+
1518
<Style x:Key="FocusVisual">
1619
<Setter Property="Control.Template">
1720
<Setter.Value>
@@ -139,7 +142,7 @@
139142
Command="{Binding RemoveParameterCommand}"
140143
CommandParameter="{Binding ElementName=ParameterGrid, Path=SelectedItem}">
141144
<StackPanel Orientation="Horizontal">
142-
<Image Height="10" Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-script.png" Margin="0,0,5,0" />
145+
<Image Height="10" Source="{StaticResource RemoveParameterImage}" Margin="0,0,5,0" />
143146
<TextBlock Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Remove}" />
144147
</StackPanel>
145148
</Button>
@@ -152,7 +155,7 @@
152155
Command="{Binding RestoreParameterCommand}"
153156
CommandParameter="{Binding ElementName=ParameterGrid, Path=SelectedItem}">
154157
<StackPanel Orientation="Horizontal">
155-
<Image Height="10" Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-return-180-left.png" Margin="0,0,5,0" />
158+
<Image Height="10" Source="{StaticResource RestoreParameterImage}" Margin="0,0,5,0" />
156159
<TextBlock Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Restore}" />
157160
</StackPanel>
158161
</Button>

Rubberduck.Core/UI/Refactorings/Rename/RenameView.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
d:DesignHeight="300" d:DesignWidth="300">
99
<UserControl.Resources>
1010
<converters:BoolToHiddenVisibilityConverter x:Key="BoolToHiddenVisibility" />
11+
12+
<BitmapImage x:Key="InvalidNameImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png" />
1113
</UserControl.Resources>
1214
<Grid>
1315
<Grid.RowDefinitions>
@@ -35,7 +37,7 @@
3537
VerticalContentAlignment="Center"
3638
HorizontalAlignment="Stretch" />
3739
<Image Grid.Column="1"
38-
Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png"
40+
Source="{StaticResource InvalidNameImage}"
3941
Height="16"
4042
Margin="0,-8,-8,0"
4143
HorizontalAlignment="Right"

Rubberduck.Core/UI/Refactorings/ReorderParameters/ReorderParametersView.xaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<reorderParameters:IndexIsNotZeroConverter x:Key="IndexIsNotZero" />
1212
<reorderParameters:IndexIsNotLastConverter x:Key="IndexIsNotLast" />
1313

14+
<BitmapImage x:Key="MoveUpImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-090.png" />
15+
<BitmapImage x:Key="MoveDownImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-270.png" />
16+
1417
<Style x:Key="FocusVisual">
1518
<Setter Property="Control.Template">
1619
<Setter.Value>
@@ -141,7 +144,7 @@
141144
Command="{Binding MoveParameterUpCommand}"
142145
CommandParameter="{Binding ElementName=ParameterGrid, Path=SelectedItem}">
143146
<StackPanel Orientation="Horizontal">
144-
<Image Height="10" Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-090.png" Margin="0,0,5,0" />
147+
<Image Source="{StaticResource MoveUpImage}" />
145148
<TextBlock Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=ReorderParamsDialog_MoveUpButtonText}" />
146149
</StackPanel>
147150
</Button>
@@ -165,7 +168,7 @@
165168
</Style>
166169
</Button.Style>
167170
<StackPanel Orientation="Horizontal">
168-
<Image Height="10" Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/arrow-270.png" Margin="0,0,5,0" />
171+
<Image Source="{StaticResource MoveDownImage}" />
169172
<TextBlock Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=ReorderParamsDialog_MoveDownButtonText}" />
170173
</StackPanel>
171174
</Button>

Rubberduck.Core/UI/Settings/InspectionSettings.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
<BitmapImage x:Key="AddImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/plus-circle.png" />
2121
<BitmapImage x:Key="DeleteImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-script.png" />
22+
<BitmapImage x:Key="FilterImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/Funnel.png" />
2223

2324
<LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" EndPoint="0,1" StartPoint="0,0">
2425
<GradientStop Color="#FFD9F4FF" Offset="0"/>
@@ -267,7 +268,7 @@
267268
<Setter Property="Background" Value="DarkGray"/>
268269
<Setter Property="CornerRadius" Value="5"/>
269270
</Style>
270-
<BitmapImage x:Key="FilterIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/Funnel.png" />
271+
271272
<Style TargetType="ScrollViewer">
272273
<Style.Setters>
273274
<Setter Property="settings:ScrollViewerCorrector.FixScrolling" Value="True" />
@@ -285,7 +286,7 @@
285286
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=CodeInspectionSettings_InspectionSeveritySettingsLabel}" />
286287
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
287288
<Label Content="-"/>
288-
<Image Source="{StaticResource FilterIcon}" />
289+
<Image Source="{StaticResource FilterImage}" />
289290
<Label Style="{StaticResource HeaderText}"
290291
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=InspectionSettings_FilterByDescription}" />
291292
<TextBox MinWidth="125"

0 commit comments

Comments
 (0)