Skip to content

Commit 308a97e

Browse files
committed
Move images into resource
1 parent 40cf9f0 commit 308a97e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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/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)