mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
style<CommitViewer>: add icon for copy action in file preview context menu
This commit is contained in:
@@ -485,8 +485,15 @@ namespace SourceGit.UI {
|
||||
if (grid == null) return;
|
||||
|
||||
var menu = new ContextMenu();
|
||||
|
||||
var copyIcon = new System.Windows.Shapes.Path();
|
||||
copyIcon.Style = FindResource("Style.Icon") as Style;
|
||||
copyIcon.Data = FindResource("Icon.Copy") as Geometry;
|
||||
copyIcon.Width = 10;
|
||||
|
||||
var copy = new MenuItem();
|
||||
copy.Header = "Copy";
|
||||
copy.Icon = copyIcon;
|
||||
copy.Click += (o, ev) => {
|
||||
var items = grid.SelectedItems;
|
||||
if (items.Count == 0) return;
|
||||
|
||||
Reference in New Issue
Block a user