mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
ux: add icons for external merge tools
This commit is contained in:
parent
f0e0c90621
commit
17fc7ab994
13 changed files with 68 additions and 31 deletions
|
@ -303,10 +303,10 @@ namespace SourceGit.ViewModels
|
|||
foreach (var tool in tools)
|
||||
{
|
||||
var dupTool = tool;
|
||||
var icon = AssetLoader.Open(new Uri($"avares://SourceGit/Resources/ExternalToolIcons/{dupTool.Icon}", UriKind.RelativeOrAbsolute));
|
||||
|
||||
var item = new MenuItem();
|
||||
item.Header = App.Text("Repository.OpenIn", dupTool.Name);
|
||||
item.Icon = new Image { Width = 16, Height = 16, Source = new Bitmap(icon) };
|
||||
item.Icon = new Image { Width = 16, Height = 16, Source = dupTool.IconImage };
|
||||
item.Click += (o, e) =>
|
||||
{
|
||||
dupTool.Open(_fullpath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue