Skip to content

Commit

Permalink
added + icon to untracked files' "include" button in source control p…
Browse files Browse the repository at this point in the history
…anel.
  • Loading branch information
retailcoder committed Aug 31, 2016
1 parent ccf003c commit 5415c5a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions RetailCoder.VBE/UI/SourceControl/ChangesView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<TabItem.Resources>
<BitmapImage x:Key="CheckImage" UriSource="../../Resources/tick.png" />
<BitmapImage x:Key="UndoImage" UriSource="../../Resources/arrow-circle-left.png" />

<BitmapImage x:Key="AddImage" UriSource="../../Resources/plus-circle.png" />

<converters:CommitActionsToTextConverter x:Key="CommitActionToText" />
<converters:CommitActionTextToEnum x:Key="CommitActionValueToEnum" />
<converters:ChangeTypesToTextConverter x:Key="ChangeTypesToText" />
Expand Down Expand Up @@ -218,8 +219,14 @@
<Button Command="{Binding IncludeChangesToolbarButtonCommand}"
CommandParameter="{Binding ElementName=UntrackFilesGrid, Path=SelectedItem}"
IsEnabled="{Binding ElementName=UntrackFilesGrid, Path=SelectedItem, Converter={StaticResource HasSelectedItems}}"
Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_IncludeFileButton}"
Height="22" />
Height="22">
<StackPanel Orientation="Horizontal">
<Image Source="{StaticResource AddImage}" />
<TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SourceControl_IncludeFileButton}"
Margin="2,0"
VerticalAlignment="Center" />
</StackPanel>
</Button>
</ToolBar>
</ToolBarTray>
<DataGrid ItemsSource="{Binding UntrackedFiles}"
Expand Down

0 comments on commit 5415c5a

Please sign in to comment.