Skip to content

Commit

Permalink
balanced settings headers
Browse files Browse the repository at this point in the history
  • Loading branch information
SonGokussj4 committed Apr 2, 2019
1 parent 5bb8d81 commit 7ffdf40
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Rubberduck.Core/UI/Settings/AutoCompleteSettings.xaml
Expand Up @@ -58,7 +58,7 @@
<StackPanel Margin="5,5,5,0" ScrollViewer.VerticalScrollBarVisibility="Auto">
<Label Background="DarkGray"
HorizontalContentAlignment="Stretch"
Margin="0,5,0,5">
Margin="0,0,0,3">
<Label.Style>
<Style>
<Style.Resources>
Expand Down
25 changes: 12 additions & 13 deletions Rubberduck.Core/UI/Settings/InspectionSettings.xaml
Expand Up @@ -20,7 +20,7 @@
<BitmapImage x:Key="AddImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/plus-circle.png" />
<BitmapImage x:Key="DeleteImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-script.png" />
<BitmapImage x:Key="FilterImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/Funnel.png" />

<LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#FFD9F4FF" Offset="0"/>
<GradientStop Color="#FF9BDDFB" Offset="1"/>
Expand All @@ -31,7 +31,7 @@
</LinearGradientBrush>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
<SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="Black" />

<ObjectDataProvider x:Key="Severities"
MethodName="GetValues"
ObjectType="{x:Type core:Enum}">
Expand Down Expand Up @@ -268,36 +268,35 @@
<Setter Property="Background" Value="DarkGray"/>
<Setter Property="CornerRadius" Value="5"/>
</Style>

<Style TargetType="ScrollViewer">
<Style.Setters>
<Setter Property="settings:ScrollViewerCorrector.FixScrolling" Value="True" />
</Style.Setters>
</Style>
</UserControl.Resources>
<Grid>
<ScrollViewer x:Name="ScrollViewer">
<ScrollViewer x:Name="ScrollViewer" Margin="0,0,-259,0">
<StackPanel Margin="5,5,5,0" ScrollViewer.VerticalScrollBarVisibility="Auto">
<Border Style="{StaticResource BorderHeader}"
Margin="0,5,0,5">
Margin="0,0,0,3" Height="36">
<DockPanel FlowDirection="LeftToRight">
<StackPanel Orientation="Horizontal" DockPanel.Dock="Left">
<Label Style="{StaticResource HeaderText}"
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=CodeInspectionSettings_InspectionSeveritySettingsLabel}" />
Content="{Resx Key=CodeInspectionSettings_InspectionSeveritySettingsLabel, ResxName=Rubberduck.Resources.RubberduckUI}" Margin="5,5,0,5" Width="123" />
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
<Label Content="-"/>
<Image Source="{StaticResource FilterImage}" />
<Label Content="-" Margin="0,5"/>
<Image Source="{StaticResource FilterImage}" Margin="0,5" Width="19" RenderTransformOrigin="0.564,1.859" />
<Label Style="{StaticResource HeaderText}"
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=InspectionSettings_FilterByDescription}" />
Content="{Resx Key=InspectionSettings_FilterByDescription, ResxName=Rubberduck.Resources.RubberduckUI}" Margin="0,5" />
<TextBox MinWidth="125"
Text="{Binding InspectionSettingsDescriptionFilter, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Stretch" />
Text="{Binding InspectionSettingsDescriptionFilter, UpdateSourceTrigger=PropertyChanged}" Margin="0,5" Height="26" />
<Border Width="10" />
<Label Style="{StaticResource HeaderText}"
Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=InspectionSettings_FilterBySeverity}" />
Content="{Resx Key=InspectionSettings_FilterBySeverity, ResxName=Rubberduck.Resources.RubberduckUI}" Margin="0,5" />
<ComboBox Width="100"
ItemsSource="{Binding SeverityFilters, UpdateSourceTrigger=PropertyChanged}"
SelectedItem="{Binding SelectedSeverityFilter, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
SelectedItem="{Binding SelectedSeverityFilter, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="0,5" />
</StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal" DockPanel.Dock="Right" HorizontalAlignment="Left"
Expand Down

0 comments on commit 7ffdf40

Please sign in to comment.