Skip to content

Commit 943dac9

Browse files
committed
Update the toolbar brushes to use the same naming conventions
1 parent 3d79f04 commit 943dac9

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

Rubberduck.Core/UI/Controls/ToolBar.xaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
1111
<ContentPresenter Content="{Binding}"/>
1212
<Border Margin="6,0,0,0">
13-
<Path VerticalAlignment="Center" Width="6" Fill="{DynamicResource ToolBarGripper}" Stretch="Uniform" HorizontalAlignment="Right"
13+
<Path VerticalAlignment="Center" Width="6" Fill="{DynamicResource ToolBarGripperBrush}" Stretch="Uniform" HorizontalAlignment="Right"
1414
Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z" />
1515
</Border>
1616
</StackPanel>
@@ -89,9 +89,9 @@
8989
<ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" ContentStringFormat="{TemplateBinding HeaderStringFormat}" ContentSource="Header" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
9090
<Popup x:Name="PART_Popup" AllowsTransparency="True" Focusable="False" HorizontalOffset="-1" IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}" Placement="Bottom">
9191
<themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
92-
<Border x:Name="SubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorder}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackground}">
92+
<Border x:Name="SubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorderBrush}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackgroundBrush}">
9393
<Grid>
94-
<Rectangle Fill="{StaticResource ToolBarSubMenuBackground}" HorizontalAlignment="Left" Height="1" Margin="0,-1,0,0" VerticalAlignment="Top" Width="{Binding ActualWidth, ElementName=Header}"/>
94+
<Rectangle Fill="{StaticResource ToolBarSubMenuBackgroundBrush}" HorizontalAlignment="Left" Height="1" Margin="0,-1,0,0" VerticalAlignment="Top" Width="{Binding ActualWidth, ElementName=Header}"/>
9595
<ScrollViewer x:Name="SubMenuScrollViewer" Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}">
9696
<Grid RenderOptions.ClearTypeHint="Enabled" Grid.IsSharedSizeScope="True">
9797
<Grid.ColumnDefinitions>
@@ -101,7 +101,7 @@
101101
<Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
102102
<Rectangle x:Name="OpaqueRect" Fill="{Binding Background, ElementName=SubMenuBorder}" Height="{Binding ActualHeight, ElementName=SubMenuBorder}" Width="{Binding ActualWidth, ElementName=SubMenuBorder}"/>
103103
</Canvas>
104-
<Rectangle Fill="{StaticResource ToolBarSubMenuBackground}" Margin="0,1"/>
104+
<Rectangle Fill="{StaticResource ToolBarSubMenuBackgroundBrush}" Margin="0,1"/>
105105
<ItemsPresenter x:Name="ItemsPresenter" Grid.ColumnSpan="2" KeyboardNavigation.DirectionalNavigation="Cycle" Margin="0,0,0,1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle"/>
106106
</Grid>
107107
</ScrollViewer>
@@ -127,8 +127,8 @@
127127
<Setter Property="Background" TargetName="Border" Value="{StaticResource HighlightBackgroundBrush}"/>
128128
</Trigger>
129129
<Trigger Property="IsSubmenuOpen" Value="True">
130-
<Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource ToolBarMenuBorder}"/>
131-
<Setter Property="Background" TargetName="Border" Value="{StaticResource ToolBarSubMenuBackground}"/>
130+
<Setter Property="BorderBrush" TargetName="Border" Value="{StaticResource ToolBarMenuBorderBrush}"/>
131+
<Setter Property="Background" TargetName="Border" Value="{StaticResource ToolBarSubMenuBackgroundBrush}"/>
132132
</Trigger>
133133
<Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="True">
134134
<Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/>
@@ -203,7 +203,7 @@
203203
<Path Grid.Column="3" DockPanel.Dock="Right" Data="M0,0L4,3.5 0,7z" Fill="{TemplateBinding Foreground}" Margin="4,0,6,0" VerticalAlignment="Center"/>
204204
<Popup x:Name="PART_Popup" AllowsTransparency="True" Focusable="False" IsOpen="{Binding IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}" Placement="Right">
205205
<themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
206-
<Border x:Name="SubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorder}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackground}" Grid.IsSharedSizeScope="True">
206+
<Border x:Name="SubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorderBrush}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackgroundBrush}" Grid.IsSharedSizeScope="True">
207207
<ScrollViewer x:Name="SubMenuScrollViewer" Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer, TypeInTargetAssembly={x:Type FrameworkElement}}}">
208208
<Grid RenderOptions.ClearTypeHint="Enabled">
209209
<Grid.ColumnDefinitions>
@@ -213,7 +213,7 @@
213213
<Canvas HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
214214
<Rectangle x:Name="OpaqueRect" Fill="{Binding Background, ElementName=SubMenuBorder}" Height="{Binding ActualHeight, ElementName=SubMenuBorder}" Width="{Binding ActualWidth, ElementName=SubMenuBorder}"/>
215215
</Canvas>
216-
<Rectangle Fill="{StaticResource ToolBarSubMenuBackground}" Margin="0,1"/>
216+
<Rectangle Fill="{StaticResource ToolBarSubMenuBackgroundBrush}" Margin="0,1"/>
217217
<ItemsPresenter x:Name="ItemsPresenter" Grid.ColumnSpan="2" KeyboardNavigation.DirectionalNavigation="Cycle" Margin="0,0,0,1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle"/>
218218
</Grid>
219219
</ScrollViewer>
@@ -258,7 +258,7 @@
258258
</Style.Triggers>
259259
</Style>
260260
<Style x:Key="ToolBarVerticalOverflowButtonStyle" TargetType="{x:Type ToggleButton}">
261-
<Setter Property="Background" Value="{StaticResource ToolBarToggleButtonVerticalBackground}"/>
261+
<Setter Property="Background" Value="{StaticResource ToolBarToggleButtonVerticalBackgroundBrush}"/>
262262
<Setter Property="MinHeight" Value="0"/>
263263
<Setter Property="MinWidth" Value="0"/>
264264
<Setter Property="Template">
@@ -274,13 +274,13 @@
274274
</Border>
275275
<ControlTemplate.Triggers>
276276
<Trigger Property="IsMouseOver" Value="true">
277-
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
277+
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHoverBrush}"/>
278278
</Trigger>
279279
<Trigger Property="IsKeyboardFocused" Value="true">
280-
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
280+
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHoverBrush}"/>
281281
</Trigger>
282282
<Trigger Property="IsEnabled" Value="false">
283-
<Setter Property="Foreground" Value="{StaticResource ToolBarGripper}"/>
283+
<Setter Property="Foreground" Value="{StaticResource ToolBarGripperBrush}"/>
284284
</Trigger>
285285
</ControlTemplate.Triggers>
286286
</ControlTemplate>
@@ -293,7 +293,7 @@
293293
</Style.Triggers>
294294
</Style>
295295
<Style x:Key="ToolBarHorizontalOverflowButtonStyle" TargetType="{x:Type ToggleButton}">
296-
<Setter Property="Background" Value="{StaticResource ToolBarToggleButtonHorizontalBackground}"/>
296+
<Setter Property="Background" Value="{StaticResource ToolBarToggleButtonHorizontalBackgroundBrush}"/>
297297
<Setter Property="MinHeight" Value="0"/>
298298
<Setter Property="MinWidth" Value="0"/>
299299
<Setter Property="Template">
@@ -309,13 +309,13 @@
309309
</Border>
310310
<ControlTemplate.Triggers>
311311
<Trigger Property="IsMouseOver" Value="true">
312-
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
312+
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHoverBrush}"/>
313313
</Trigger>
314314
<Trigger Property="IsKeyboardFocused" Value="true">
315-
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
315+
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHoverBrush}"/>
316316
</Trigger>
317317
<Trigger Property="IsEnabled" Value="false">
318-
<Setter Property="Foreground" Value="{StaticResource ToolBarGripper}"/>
318+
<Setter Property="Foreground" Value="{StaticResource ToolBarGripperBrush}"/>
319319
</Trigger>
320320
</ControlTemplate.Triggers>
321321
</ControlTemplate>
@@ -338,7 +338,7 @@
338338
<DrawingBrush.Drawing>
339339
<DrawingGroup>
340340
<GeometryDrawing Brush="{StaticResource WhiteBrush}" Geometry="M 1 1 L 1 3 L 3 3 L 3 1 z"/>
341-
<GeometryDrawing Brush="{StaticResource ToolBarGripper}" Geometry="M 0 0 L 0 2 L 2 2 L 2 0 z"/>
341+
<GeometryDrawing Brush="{StaticResource ToolBarGripperBrush}" Geometry="M 0 0 L 0 2 L 2 2 L 2 0 z"/>
342342
</DrawingGroup>
343343
</DrawingBrush.Drawing>
344344
</DrawingBrush>
@@ -364,7 +364,7 @@
364364
</Style.Triggers>
365365
</Style>
366366
<Style x:Key="ToolBarWithOverflowOnlyShowingWhenNeededStyle" TargetType="{x:Type ToolBar}">
367-
<Setter Property="Background" Value="{StaticResource ToolBarHorizontalBackground}"/>
367+
<Setter Property="Background" Value="{StaticResource ToolBarHorizontalBackgroundBrush}"/>
368368
<Setter Property="Template">
369369
<Setter.Value>
370370
<ControlTemplate TargetType="{x:Type ToolBar}">
@@ -373,7 +373,7 @@
373373
<ToggleButton x:Name="OverflowButton" ClickMode="Press" FocusVisualStyle="{x:Null}" IsChecked="{Binding IsOverflowOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" IsEnabled="{TemplateBinding HasOverflowItems}" Style="{StaticResource ToolBarHorizontalOverflowButtonStyle}" Visibility="{Binding ElementName=OverflowButton, Path=IsEnabled, Converter={StaticResource BoolToVisibility}}"/>
374374
<Popup x:Name="OverflowPopup" AllowsTransparency="true" Focusable="false" IsOpen="{Binding IsOverflowOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Placement="Bottom" StaysOpen="false">
375375
<themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
376-
<Border x:Name="ToolBarSubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorder}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackground}" RenderOptions.ClearTypeHint="Enabled">
376+
<Border x:Name="ToolBarSubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorderBrush}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackgroundBrush}" RenderOptions.ClearTypeHint="Enabled">
377377
<ToolBarOverflowPanel x:Name="PART_ToolBarOverflowPanel" KeyboardNavigation.DirectionalNavigation="Cycle" FocusVisualStyle="{x:Null}" Focusable="true" Margin="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle" WrapWidth="200"/>
378378
</Border>
379379
</themes:SystemDropShadowChrome>
@@ -417,7 +417,7 @@
417417
<Setter Property="VerticalAlignment" TargetName="OverflowGrid" Value="Bottom"/>
418418
<Setter Property="Placement" TargetName="OverflowPopup" Value="Right"/>
419419
<Setter Property="Margin" TargetName="MainPanelBorder" Value="0,0,0,11"/>
420-
<Setter Property="Background" Value="{StaticResource ToolBarVerticalBackground}"/>
420+
<Setter Property="Background" Value="{StaticResource ToolBarVerticalBackgroundBrush}"/>
421421
</Trigger>
422422
<Trigger Property="IsEnabled" Value="false">
423423
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>

Rubberduck.Core/UI/Inspections/InspectionResultsControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<RowDefinition Height="Auto" MinHeight="48"/>
4343
</Grid.RowDefinitions>
4444

45-
<Border Grid.Row="0" Grid.RowSpan="3" Background="{StaticResource ToolBarSubMenuBackground}" />
45+
<Border Grid.Row="0" Grid.RowSpan="3" Background="{StaticResource ToolBarSubMenuBackgroundBrush}" />
4646

4747
<ToolBarTray Grid.Row="0" IsLocked="True">
4848
<ToolBar Style="{StaticResource ToolBarWithOverflowOnlyShowingWhenNeededStyle}">

Rubberduck.Core/UI/Styles/DefaultStyle.xaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@
9090
<SolidColorBrush x:Key="WhiteBrush" Color="{StaticResource WhiteColor}"/>
9191
<SolidColorBrush x:Key="BusyIndicatorFillBrush" Color="{StaticResource BusyIndicatorFillColor}"/>
9292

93-
<SolidColorBrush x:Key="ToolBarButtonHover" Color="{StaticResource ToolBarButtonHoverColor}"/>
94-
<SolidColorBrush x:Key="ToolBarGripper" Color="{StaticResource ToolBarGripperColor}"/>
93+
<SolidColorBrush x:Key="ToolBarButtonHoverBrush" Color="{StaticResource ToolBarButtonHoverColor}"/>
94+
<SolidColorBrush x:Key="ToolBarGripperBrush" Color="{StaticResource ToolBarGripperColor}"/>
9595
<SolidColorBrush x:Key="ToolBarBackgroundBrush" Color="{StaticResource ToolBarBackgroundColor}"/>
96-
<SolidColorBrush x:Key="ToolBarVerticalBackground" Color="{StaticResource ToolBarVerticalBackgroundColor}"/>
97-
<SolidColorBrush x:Key="ToolBarHorizontalBackground" Color="{StaticResource ToolBarHorizontalBackgroundColor}"/>
98-
<SolidColorBrush x:Key="ToolBarToggleButtonVerticalBackground" Color="{StaticResource ToolBarToggleButtonVerticalBackgroundColor}"/>
99-
<SolidColorBrush x:Key="ToolBarToggleButtonHorizontalBackground" Color="{StaticResource ToolBarToggleButtonHorizontalBackgroundColor}"/>
100-
<SolidColorBrush x:Key="ToolBarMenuBorder" Color="{StaticResource ToolBarMenuBorderColor}"/>
101-
<SolidColorBrush x:Key="ToolBarSubMenuBackground" Color="{StaticResource ToolBarSubMenuBackgroundColor}"/>
96+
<SolidColorBrush x:Key="ToolBarVerticalBackgroundBrush" Color="{StaticResource ToolBarVerticalBackgroundColor}"/>
97+
<SolidColorBrush x:Key="ToolBarHorizontalBackgroundBrush" Color="{StaticResource ToolBarHorizontalBackgroundColor}"/>
98+
<SolidColorBrush x:Key="ToolBarToggleButtonVerticalBackgroundBrush" Color="{StaticResource ToolBarToggleButtonVerticalBackgroundColor}"/>
99+
<SolidColorBrush x:Key="ToolBarToggleButtonHorizontalBackgroundBrush" Color="{StaticResource ToolBarToggleButtonHorizontalBackgroundColor}"/>
100+
<SolidColorBrush x:Key="ToolBarMenuBorderBrush" Color="{StaticResource ToolBarMenuBorderColor}"/>
101+
<SolidColorBrush x:Key="ToolBarSubMenuBackgroundBrush" Color="{StaticResource ToolBarSubMenuBackgroundColor}"/>
102102

103103
<SolidColorBrush x:Key="Item.MouseOver.Background" Color="{StaticResource MouseOverBackgroundColor}"/>
104104
<SolidColorBrush x:Key="Item.MouseOver.Border" Color="{StaticResource MouseOverBorderColor}"/>

0 commit comments

Comments
 (0)