Skip to content

Commit 8e5bdb6

Browse files
committed
Add filter icon & update resource strings
1 parent ef55bc8 commit 8e5bdb6

File tree

3 files changed

+57
-7
lines changed

3 files changed

+57
-7
lines changed

Rubberduck.Core/UI/Settings/InspectionSettings.xaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@
267267
<Setter Property="Background" Value="DarkGray"/>
268268
<Setter Property="CornerRadius" Value="5"/>
269269
</Style>
270+
<BitmapImage x:Key="FilterIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/Funnel.png" />
270271
</UserControl.Resources>
271272
<Grid>
272273
<ScrollViewer>
@@ -279,14 +280,15 @@
279280
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=CodeInspectionSettings_InspectionSeveritySettingsLabel}" />
280281
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
281282
<Label Content="-"/>
283+
<Image Source="{StaticResource FilterIcon}" />
282284
<Label Style="{StaticResource HeaderText}"
283-
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=InspectionSettings_FilterDescription}" />
285+
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=InspectionSettings_FilterByDescription}" />
284286
<TextBox MinWidth="125"
285287
Text="{Binding InspectionSettingsDescriptionFilter, UpdateSourceTrigger=PropertyChanged}"
286288
HorizontalAlignment="Stretch" />
287289
<Border Width="10" />
288290
<Label Style="{StaticResource HeaderText}"
289-
Content="Severity:" />
291+
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=InspectionSettings_FilterBySeverity}" />
290292
<ComboBox Width="100"
291293
ItemsSource="{Binding SeverityFilters, UpdateSourceTrigger=PropertyChanged}"
292294
SelectedItem="{Binding SelectedSeverityFilter, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />

Rubberduck.Resources/RubberduckUI.Designer.cs

Lines changed: 48 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Rubberduck.Resources/RubberduckUI.resx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,8 @@ NOTE: Restart is required for the setting to take effect.</value>
12451245
<data name="GeneralSettings_CompileBeforeParse_WarnCompileOnDemandEnabled_Caption" xml:space="preserve">
12461246
<value>Compile On Demand currently enabled</value>
12471247
</data>
1248-
<data name="InspectionSettings_FilterDescription" xml:space="preserve">
1249-
<value>Filter by Description:</value>
1248+
<data name="InspectionSettings_FilterByDescription" xml:space="preserve">
1249+
<value>Description:</value>
12501250
</data>
12511251
<data name="ParserState_Busy" xml:space="preserve">
12521252
<value>Busy</value>
@@ -1315,4 +1315,7 @@ NOTE: Restart is required for the setting to take effect.</value>
13151315
<data name="IndenterSettings_IgnoreEmptyLinesInFirstBlocks" xml:space="preserve">
13161316
<value>Ignore empty lines when locating first comment and declaration blocks</value>
13171317
</data>
1318+
<data name="InspectionSettings_FilterBySeverity" xml:space="preserve">
1319+
<value>Severity:</value>
1320+
</data>
13181321
</root>

0 commit comments

Comments
 (0)