mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-02 09:35:00 +00:00
style<DiffViewer>: add icon for copy
This commit is contained in:
parent
5f583e5146
commit
7c6765b532
3 changed files with 9 additions and 1 deletions
|
@ -753,8 +753,15 @@ namespace SourceGit.UI {
|
|||
if (grid == null) return;
|
||||
|
||||
var menu = new ContextMenu();
|
||||
|
||||
var copyIcon = new Path();
|
||||
copyIcon.Style = FindResource("Style.Icon") as Style;
|
||||
copyIcon.Data = FindResource("Icon.Copy") as Geometry;
|
||||
copyIcon.Width = 10;
|
||||
|
||||
var copy = new MenuItem();
|
||||
copy.Header = App.Text("Diff.Copy");
|
||||
copy.Icon = copyIcon;
|
||||
copy.Click += (o, ev) => {
|
||||
var items = grid.SelectedItems;
|
||||
if (items.Count == 0) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue