Skip to content

Commit c27fe1b

Browse files
committed
cleaned up duplicate resources
1 parent f39b6b1 commit c27fe1b

File tree

1 file changed

+0
-188
lines changed

1 file changed

+0
-188
lines changed

Rubberduck.Core/UI/UnitTesting/TestExplorerControl.xaml

Lines changed: 0 additions & 188 deletions
Original file line numberDiff line numberDiff line change
@@ -50,197 +50,9 @@
5050
<BitmapImage x:Key="CopyResultsImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/document-copy.png" />
5151

5252
<local:TestOutcomeImageSourceConverter x:Key="OutcomeIconConverter" />
53-
<BooleanToVisibilityConverter x:Key="BoolToVisibility"/>
5453
<converters:MillisecondToTimeMagnitudeConverter x:Key="FormattedTime" />
5554
<converters:InvertBoolValueConverter x:Key="InvertBoolValue" />
5655

57-
<SolidColorBrush x:Key="ToolBarToggleButtonVerticalBackground" Color="Transparent" />
58-
<SolidColorBrush x:Key="ToolBarButtonHover" Color="#210080FF"/>
59-
<SolidColorBrush x:Key="ToolBarGripper" Color="#FF6D6D6D"/>
60-
<SolidColorBrush x:Key="ToolBarVerticalBackground" Color="#FFEEF5FD"/>
61-
<SolidColorBrush x:Key="ToolBarToggleButtonHorizontalBackground" Color="#FFEEF5FD"/>
62-
<SolidColorBrush x:Key="ToolBarMenuBorder" Color="#FFB6BDC5"/>
63-
<SolidColorBrush x:Key="ToolBarSubMenuBackground" Color="#FFEEF5FD"/>
64-
65-
<Style x:Key="ToolBarVerticalOverflowButtonStyle" TargetType="{x:Type ToggleButton}">
66-
<Setter Property="Background" Value="{StaticResource ToolBarToggleButtonVerticalBackground}"/>
67-
<Setter Property="MinHeight" Value="0"/>
68-
<Setter Property="MinWidth" Value="0"/>
69-
<Setter Property="Template">
70-
<Setter.Value>
71-
<ControlTemplate TargetType="{x:Type ToggleButton}">
72-
<Border x:Name="Bd" SnapsToDevicePixels="true" CornerRadius="0,0,3,3" Background="{TemplateBinding Background}">
73-
<Canvas Width="7" VerticalAlignment="Bottom" SnapsToDevicePixels="true" Margin="2,7,2,2" Height="6" HorizontalAlignment="Right">
74-
<Path Data="M 1.5 1 L 1.5 6" Stroke="White"/>
75-
<Path Data="M 0.5 0 L 0.5 5" Stroke="{TemplateBinding Foreground}"/>
76-
<Path Data="M 3.5 0.5 L 7 3.5 L 4 6.5 Z" Fill="White"/>
77-
<Path Data="M 3 -0.5 L 6 2.5 L 3 5.5 Z" Fill="{TemplateBinding Foreground}"/>
78-
</Canvas>
79-
</Border>
80-
<ControlTemplate.Triggers>
81-
<Trigger Property="IsMouseOver" Value="true">
82-
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
83-
</Trigger>
84-
<Trigger Property="IsKeyboardFocused" Value="true">
85-
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
86-
</Trigger>
87-
<Trigger Property="IsEnabled" Value="false">
88-
<Setter Property="Foreground" Value="{StaticResource ToolBarGripper}"/>
89-
</Trigger>
90-
</ControlTemplate.Triggers>
91-
</ControlTemplate>
92-
</Setter.Value>
93-
</Setter>
94-
<Style.Triggers>
95-
<DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true">
96-
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
97-
</DataTrigger>
98-
</Style.Triggers>
99-
</Style>
100-
101-
<Style x:Key="ToolBarHorizontalOverflowButtonStyle" TargetType="{x:Type ToggleButton}">
102-
<Setter Property="Background" Value="{StaticResource ToolBarToggleButtonHorizontalBackground}"/>
103-
<Setter Property="MinHeight" Value="0"/>
104-
<Setter Property="MinWidth" Value="0"/>
105-
<Setter Property="Template">
106-
<Setter.Value>
107-
<ControlTemplate TargetType="{x:Type ToggleButton}">
108-
<Border x:Name="Bd" SnapsToDevicePixels="true" CornerRadius="0,3,3,0" Background="{TemplateBinding Background}">
109-
<Canvas Width="6" VerticalAlignment="Bottom" SnapsToDevicePixels="true" Margin="7,2,2,2" Height="7" HorizontalAlignment="Right">
110-
<Path Data="M 1 1.5 L 6 1.5" Stroke="White"/>
111-
<Path Data="M 0 0.5 L 5 0.5" Stroke="{TemplateBinding Foreground}"/>
112-
<Path Data="M 0.5 4 L 6.5 4 L 3.5 7 Z" Fill="White"/>
113-
<Path Data="M -0.5 3 L 5.5 3 L 2.5 6 Z" Fill="{TemplateBinding Foreground}"/>
114-
</Canvas>
115-
</Border>
116-
<ControlTemplate.Triggers>
117-
<Trigger Property="IsMouseOver" Value="true">
118-
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
119-
</Trigger>
120-
<Trigger Property="IsKeyboardFocused" Value="true">
121-
<Setter Property="Background" TargetName="Bd" Value="{StaticResource ToolBarButtonHover}"/>
122-
</Trigger>
123-
<Trigger Property="IsEnabled" Value="false">
124-
<Setter Property="Foreground" Value="{StaticResource ToolBarGripper}"/>
125-
</Trigger>
126-
</ControlTemplate.Triggers>
127-
</ControlTemplate>
128-
</Setter.Value>
129-
</Setter>
130-
<Style.Triggers>
131-
<DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true">
132-
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
133-
</DataTrigger>
134-
</Style.Triggers>
135-
</Style>
136-
137-
<Style x:Key="ToolBarThumbStyle" TargetType="{x:Type Thumb}">
138-
<Setter Property="Template">
139-
<Setter.Value>
140-
<ControlTemplate TargetType="{x:Type Thumb}">
141-
<Border SnapsToDevicePixels="True" Padding="{TemplateBinding Padding}" Background="Transparent">
142-
<Rectangle>
143-
<Rectangle.Fill>
144-
<DrawingBrush ViewboxUnits="Absolute" ViewportUnits="Absolute" Viewport="0,0,4,4" Viewbox="0,0,4,4" TileMode="Tile">
145-
<DrawingBrush.Drawing>
146-
<DrawingGroup>
147-
<GeometryDrawing Brush="White" Geometry="M 1 1 L 1 3 L 3 3 L 3 1 z"/>
148-
<GeometryDrawing Brush="{StaticResource ToolBarGripper}" Geometry="M 0 0 L 0 2 L 2 2 L 2 0 z"/>
149-
</DrawingGroup>
150-
</DrawingBrush.Drawing>
151-
</DrawingBrush>
152-
</Rectangle.Fill>
153-
</Rectangle>
154-
</Border>
155-
<ControlTemplate.Triggers>
156-
<Trigger Property="IsMouseOver" Value="true">
157-
<Setter Property="Cursor" Value="SizeAll"/>
158-
</Trigger>
159-
</ControlTemplate.Triggers>
160-
</ControlTemplate>
161-
</Setter.Value>
162-
</Setter>
163-
</Style>
164-
165-
<Style x:Key="ToolBarMainPanelBorderStyle" TargetType="{x:Type Border}">
166-
<Setter Property="Margin" Value="0,0,11,0"/>
167-
<Setter Property="CornerRadius" Value="3,3,3,3"/>
168-
<Style.Triggers>
169-
<DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true">
170-
<Setter Property="CornerRadius" Value="0,0,0,0"/>
171-
</DataTrigger>
172-
</Style.Triggers>
173-
</Style>
174-
175-
<Style x:Key="ToolBarWithOverflowOnlyShowingWhenNeededStyle" TargetType="{x:Type ToolBar}">
176-
<Setter Property="Template">
177-
<Setter.Value>
178-
<ControlTemplate TargetType="{x:Type ToolBar}">
179-
<Grid x:Name="Grid" Margin="3,1,1,1" SnapsToDevicePixels="true">
180-
<Grid x:Name="OverflowGrid" HorizontalAlignment="Right">
181-
<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}}"/>
182-
<Popup x:Name="OverflowPopup" AllowsTransparency="true" Focusable="false" IsOpen="{Binding IsOverflowOpen, RelativeSource={RelativeSource TemplatedParent}}" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Placement="Bottom" StaysOpen="false">
183-
<themes:SystemDropShadowChrome x:Name="Shdw" Color="Transparent">
184-
<Border x:Name="ToolBarSubMenuBorder" BorderBrush="{StaticResource ToolBarMenuBorder}" BorderThickness="1" Background="{StaticResource ToolBarSubMenuBackground}" RenderOptions.ClearTypeHint="Enabled">
185-
<ToolBarOverflowPanel x:Name="PART_ToolBarOverflowPanel" KeyboardNavigation.DirectionalNavigation="Cycle" FocusVisualStyle="{x:Null}" Focusable="true" Margin="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.TabNavigation="Cycle" WrapWidth="200"/>
186-
</Border>
187-
</themes:SystemDropShadowChrome>
188-
</Popup>
189-
</Grid>
190-
<Border x:Name="MainPanelBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" Style="{StaticResource ToolBarMainPanelBorderStyle}">
191-
<DockPanel KeyboardNavigation.TabIndex="1" KeyboardNavigation.TabNavigation="Local">
192-
<Thumb x:Name="ToolBarThumb" Margin="-3,-1,0,0" Padding="6,5,1,6" Style="{StaticResource ToolBarThumbStyle}" Width="10"/>
193-
<ContentPresenter x:Name="ToolBarHeader" ContentSource="Header" HorizontalAlignment="Center" Margin="4,0,4,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
194-
<ToolBarPanel x:Name="PART_ToolBarPanel" IsItemsHost="true" Margin="0,1,2,2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
195-
</DockPanel>
196-
</Border>
197-
</Grid>
198-
<ControlTemplate.Triggers>
199-
<Trigger Property="IsOverflowOpen" Value="true">
200-
<Setter Property="IsEnabled" TargetName="ToolBarThumb" Value="false"/>
201-
</Trigger>
202-
<Trigger Property="Header" Value="{x:Null}">
203-
<Setter Property="Visibility" TargetName="ToolBarHeader" Value="Collapsed"/>
204-
</Trigger>
205-
<Trigger Property="ToolBarTray.IsLocked" Value="true">
206-
<Setter Property="Visibility" TargetName="ToolBarThumb" Value="Collapsed"/>
207-
</Trigger>
208-
<Trigger Property="HasDropShadow" SourceName="OverflowPopup" Value="true">
209-
<Setter Property="Margin" TargetName="Shdw" Value="0,0,5,5"/>
210-
<Setter Property="SnapsToDevicePixels" TargetName="Shdw" Value="true"/>
211-
<Setter Property="Color" TargetName="Shdw" Value="#71000000"/>
212-
</Trigger>
213-
<Trigger Property="Orientation" Value="Vertical">
214-
<Setter Property="Margin" TargetName="Grid" Value="1,3,1,1"/>
215-
<Setter Property="Style" TargetName="OverflowButton" Value="{StaticResource ToolBarVerticalOverflowButtonStyle}"/>
216-
<Setter Property="Height" TargetName="ToolBarThumb" Value="10"/>
217-
<Setter Property="Width" TargetName="ToolBarThumb" Value="Auto"/>
218-
<Setter Property="Margin" TargetName="ToolBarThumb" Value="-1,-3,0,0"/>
219-
<Setter Property="Padding" TargetName="ToolBarThumb" Value="5,6,6,1"/>
220-
<Setter Property="Margin" TargetName="ToolBarHeader" Value="0,0,0,4"/>
221-
<Setter Property="Margin" TargetName="PART_ToolBarPanel" Value="1,0,2,2"/>
222-
<Setter Property="DockPanel.Dock" TargetName="ToolBarThumb" Value="Top"/>
223-
<Setter Property="DockPanel.Dock" TargetName="ToolBarHeader" Value="Top"/>
224-
<Setter Property="HorizontalAlignment" TargetName="OverflowGrid" Value="Stretch"/>
225-
<Setter Property="VerticalAlignment" TargetName="OverflowGrid" Value="Bottom"/>
226-
<Setter Property="Placement" TargetName="OverflowPopup" Value="Right"/>
227-
<Setter Property="Margin" TargetName="MainPanelBorder" Value="0,0,0,11"/>
228-
<Setter Property="Background" Value="{StaticResource ToolBarVerticalBackground}"/>
229-
</Trigger>
230-
<Trigger Property="IsEnabled" Value="false">
231-
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
232-
</Trigger>
233-
</ControlTemplate.Triggers>
234-
</ControlTemplate>
235-
</Setter.Value>
236-
</Setter>
237-
<Style.Triggers>
238-
<DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="true">
239-
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
240-
</DataTrigger>
241-
</Style.Triggers>
242-
</Style>
243-
24456
<Style x:Key="ToolbarImageOpacity" TargetType="Image" >
24557
<Setter Property="Height" Value="16" />
24658
<Setter Property="Width" Value="16" />

0 commit comments

Comments
 (0)