Skip to content

Commit ddce3b5

Browse files
committed
Replace all color literals with reference to the style xaml.
1 parent f012d16 commit ddce3b5

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Rubberduck.Core/UI/CodeExplorer/CodeExplorerControl.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
<Setter Property="IsReadOnly" Value="True" />
179179
<Setter Property="Margin" Value="4" />
180180
<Setter Property="TextWrapping" Value="WrapWithOverflow" />
181-
<Setter Property="Background" Value="WhiteSmoke" />
181+
<Setter Property="Background" Value="{StaticResource BackgroundLightBrush}" />
182182
<Setter Property="BorderThickness" Value="0" />
183183
</Style>
184184

@@ -196,7 +196,7 @@
196196
<Setter Property="IsReadOnly" Value="True" />
197197
<Setter Property="Margin" Value="4" />
198198
<Setter Property="TextWrapping" Value="WrapWithOverflow" />
199-
<Setter Property="Background" Value="WhiteSmoke" />
199+
<Setter Property="Background" Value="{StaticResource BackgroundLightBrush}" />
200200
<Setter Property="BorderThickness" Value="0" />
201201
</Style>
202202

@@ -595,7 +595,7 @@
595595
<GridSplitter Grid.Row="3" Height="5" ShowsPreview="True" Cursor="SizeNS" HorizontalAlignment="Stretch"/>
596596

597597
<Border Grid.Row="4" BorderThickness="0,1,0,0" BorderBrush="{StaticResource BorderWireBrush}">
598-
<ScrollViewer Background="WhiteSmoke" VerticalScrollBarVisibility="Auto">
598+
<ScrollViewer Background="{StaticResource BackgroundLightBrush}" VerticalScrollBarVisibility="Auto">
599599
<WrapPanel Orientation="Vertical" MinHeight="70" >
600600
<Grid Margin="4" HorizontalAlignment="Stretch">
601601
<Grid.ColumnDefinitions>

Rubberduck.Core/UI/Controls/GroupingGrid.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<Setter Property="Template">
5858
<Setter.Value>
5959
<ControlTemplate>
60-
<Expander Background="WhiteSmoke" Foreground="Black" FontWeight="SemiBold"
60+
<Expander Background="{StaticResource BackgroundLightBrush}" Foreground="Black" FontWeight="SemiBold"
6161
IsExpanded="{Binding InitialExpandedState, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:GroupingGrid}}}">
6262
<Expander.Header>
6363
<StackPanel Orientation="Horizontal">

Rubberduck.Core/UI/Inspections/InspectionResultsControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258

259259
<Border Grid.Row="3" BorderThickness="0,1,0,0" BorderBrush="DimGray">
260260
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
261-
<StackPanel Orientation="Vertical" MinHeight="48" Background="WhiteSmoke">
261+
<StackPanel Orientation="Vertical" MinHeight="48" Background="{StaticResource BackgroundLightBrush}">
262262
<Grid Margin="4" HorizontalAlignment="Stretch">
263263
<Grid.ColumnDefinitions>
264264
<ColumnDefinition Width="25" />

Rubberduck.Core/UI/Styles/DefaultStyle.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<Color x:Key="ExpanderBackgroundColor">#FFFFFFFF</Color>
3333
<Color x:Key="CaptionLightColor">#FFFFFFFF</Color>
3434
<Color x:Key="BackgroundDarkColor">#FFA9A9A9</Color>
35+
<Color x:Key="BackgroundLightColor">#FFF5F5F5</Color>
3536

3637
<SolidColorBrush x:Key="HighlightGradientStartBrush" Color="{StaticResource HighlightGradientStartColor}"/>
3738
<SolidColorBrush x:Key="HighlightGradientEndBrush" Color="{StaticResource HighlightGradientEndColor}"/>
@@ -53,6 +54,7 @@
5354
<SolidColorBrush x:Key="ExpanderBorderBrush" Color="{StaticResource ExpanderBorderColor}"/>
5455
<SolidColorBrush x:Key="CaptionLightBrush" Color="{StaticResource CaptionLightColor}"/>
5556
<SolidColorBrush x:Key="BackgroundDarkBrush" Color="{StaticResource BackgroundDarkColor}"/>
57+
<SolidColorBrush x:Key="BackgroundLightBrush" Color="{StaticResource BackgroundLightColor}"/>
5658

5759
<SolidColorBrush x:Key="Item.MouseOver.Background" Color="#1F26A0DA"/>
5860
<SolidColorBrush x:Key="Item.MouseOver.Border" Color="#A826A0DA"/>

0 commit comments

Comments
 (0)