Skip to content

Commit 50acb10

Browse files
committed
Final UX changes following feedback from the pond
1 parent 1de0fb1 commit 50acb10

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

Rubberduck.Core/UI/CodeExplorer/CodeExplorerControl.xaml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
<SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="Black" />
6565

6666
<CompositeCollection x:Key="AddModuleCommands">
67+
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_AddExistingFileText}"
68+
Command="{Binding ImportCommand}"
69+
CommandParameter="{Binding SelectedItem, Mode=OneWay}">
70+
71+
</MenuItem>
72+
<Separator />
6773
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_AddVBFormText}"
6874
Command="{Binding AddVBFormCommand}"
6975
CommandParameter="{Binding SelectedItem, Mode=OneWay}"
@@ -127,12 +133,6 @@
127133
</MenuItem.Icon>
128134
</MenuItem>
129135
<Separator />
130-
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_AddExistingFileText}"
131-
Command="{Binding ImportCommand}"
132-
CommandParameter="{Binding SelectedItem, Mode=OneWay}">
133-
134-
</MenuItem>
135-
<Separator />
136136
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_AddTestModuleText}"
137137
Command="{Binding AddTestModuleCommand}"
138138
CommandParameter="{Binding SelectedItem, Mode=OneWay}">
@@ -459,53 +459,53 @@
459459
<Image Source="{StaticResource AddModuleImage}" />
460460
</MenuItem.Icon>
461461
</MenuItem>
462+
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Export}"
463+
Command="{Binding ExportCommand}"
464+
CommandParameter="{Binding SelectedItem, Mode=OneWay}"
465+
Visibility="{Binding ExportVisibility}" />
466+
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_ExportAll}"
467+
Command="{Binding ExportAllCommand}"
468+
CommandParameter="{Binding SelectedItem, Mode=OneWay}"
469+
Visibility="{Binding ExportAllVisibility}" />
470+
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Remove}"
471+
Command="{Binding RemoveCommand}"
472+
CommandParameter="{Binding SelectedItem, Mode=OneWay}"
473+
Visibility="{Binding VBAVisibility}">
474+
<MenuItem.Icon>
475+
<Image Source="{StaticResource RemoveImage}" Style="{StaticResource ToolbarImageOpacity}" />
476+
</MenuItem.Icon>
477+
</MenuItem>
478+
<Separator />
462479
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=Find}">
463480
<MenuItem.Icon>
464481
<Image Source="{StaticResource FindImage}" />
465482
</MenuItem.Icon>
466483
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_FindAllReferencesText}"
467-
Command="{Binding FindAllReferencesCommand}"
468-
CommandParameter="{Binding SelectedItem, Mode=OneWay}" />
484+
Command="{Binding FindAllReferencesCommand}"
485+
CommandParameter="{Binding SelectedItem, Mode=OneWay}" />
469486
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_FindAllImplementationsText}"
470-
Command="{Binding FindAllImplementationsCommand}"
471-
CommandParameter="{Binding SelectedItem, Mode=OneWay}" />
487+
Command="{Binding FindAllImplementationsCommand}"
488+
CommandParameter="{Binding SelectedItem, Mode=OneWay}" />
472489
</MenuItem>
473490
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Indent}"
474-
Command="{Binding IndenterCommand}"
475-
CommandParameter="{Binding SelectedItem, Mode=OneWay}" />
491+
Command="{Binding IndenterCommand}"
492+
CommandParameter="{Binding SelectedItem, Mode=OneWay}" />
476493
<Separator />
477-
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_CollapseSubnodesToolTip}"
478-
Command="{Binding CollapseAllSubnodesCommand}"
479-
CommandParameter="{Binding SelectedItem, Mode=OneWay}">
480-
<MenuItem.Icon>
481-
<Image Source="{StaticResource CollapseNodesImage}" />
482-
</MenuItem.Icon>
483-
</MenuItem>
484494
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_ExpandSubnodesToolTip}"
485-
Command="{Binding ExpandAllSubnodesCommand}"
486-
CommandParameter="{Binding SelectedItem, Mode=OneWay}">
495+
Command="{Binding ExpandAllSubnodesCommand}"
496+
CommandParameter="{Binding SelectedItem, Mode=OneWay}">
487497
<MenuItem.Icon>
488498
<Image Source="{StaticResource ExpandNodesImage}" />
489499
</MenuItem.Icon>
490500
</MenuItem>
491-
<Separator />
492-
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Export}"
493-
Command="{Binding ExportCommand}"
494-
CommandParameter="{Binding SelectedItem, Mode=OneWay}"
495-
Visibility="{Binding ExportVisibility}" />
496-
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_ExportAll}"
497-
Command="{Binding ExportAllCommand}"
498-
CommandParameter="{Binding SelectedItem, Mode=OneWay}"
499-
Visibility="{Binding ExportAllVisibility}" />
500-
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Remove}"
501-
Command="{Binding RemoveCommand}"
502-
CommandParameter="{Binding SelectedItem, Mode=OneWay}"
503-
Visibility="{Binding VBAVisibility}">
501+
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_CollapseSubnodesToolTip}"
502+
Command="{Binding CollapseAllSubnodesCommand}"
503+
CommandParameter="{Binding SelectedItem, Mode=OneWay}">
504504
<MenuItem.Icon>
505-
<Image Source="{StaticResource RemoveImage}" Style="{StaticResource ToolbarImageOpacity}" />
505+
<Image Source="{StaticResource CollapseNodesImage}" />
506506
</MenuItem.Icon>
507507
</MenuItem>
508-
<Separator Visibility="{Binding VBAVisibility}" />
508+
<Separator />
509509
<MenuItem Header="{Resx ResxName=Rubberduck.Resources.CodeExplorer.CodeExplorerUI, Key=CodeExplorer_Print}"
510510
Command="{Binding PrintCommand}"
511511
CommandParameter="{Binding SelectedItem, Mode=OneWay}">
@@ -552,7 +552,7 @@
552552
</MultiBinding.Bindings>
553553
</MultiBinding>
554554
</Image.Source>
555-
</Image>
555+
</Image>
556556
<Image Source="{Binding Declaration, Converter={StaticResource AccessibilityToIcon}}" Style="{StaticResource ToolbarIconStyle}" />
557557
</Grid>
558558
<TextBlock Style="{StaticResource TreeViewItemStyle}" />

0 commit comments

Comments
 (0)