mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
style<Icons>: add icons for context menu item
This commit is contained in:
parent
e60d4a84c4
commit
1da67dc517
5 changed files with 1284 additions and 1205 deletions
|
@ -53,15 +53,14 @@
|
||||||
<Geometry x:Key="Icon.Fetch">M1024 896v128H0V704h128v192h768V704h128v192zM576 555 811 320 896 405l-384 384-384-384L213 320 448 555V0h128v555z</Geometry>
|
<Geometry x:Key="Icon.Fetch">M1024 896v128H0V704h128v192h768V704h128v192zM576 555 811 320 896 405l-384 384-384-384L213 320 448 555V0h128v555z</Geometry>
|
||||||
<Geometry x:Key="Icon.Pull">M432 0h160c27 0 48 21 48 48v336h175c36 0 53 43 28 68L539 757c-15 15-40 15-55 0L180 452c-25-25-7-68 28-68H384V48c0-27 21-48 48-48zm592 752v224c0 27-21 48-48 48H48c-27 0-48-21-48-48V752c0-27 21-48 48-48h293l98 98c40 40 105 40 145 0l98-98H976c27 0 48 21 48 48zm-248 176c0-22-18-40-40-40s-40 18-40 40s18 40 40 40s40-18 40-40zm128 0c0-22-18-40-40-40s-40 18-40 40s18 40 40 40s40-18 40-40z</Geometry>
|
<Geometry x:Key="Icon.Pull">M432 0h160c27 0 48 21 48 48v336h175c36 0 53 43 28 68L539 757c-15 15-40 15-55 0L180 452c-25-25-7-68 28-68H384V48c0-27 21-48 48-48zm592 752v224c0 27-21 48-48 48H48c-27 0-48-21-48-48V752c0-27 21-48 48-48h293l98 98c40 40 105 40 145 0l98-98H976c27 0 48 21 48 48zm-248 176c0-22-18-40-40-40s-40 18-40 40s18 40 40 40s40-18 40-40zm128 0c0-22-18-40-40-40s-40 18-40 40s18 40 40 40s40-18 40-40z</Geometry>
|
||||||
<Geometry x:Key="Icon.Push">M592 768h-160c-27 0-48-21-48-48V384h-175c-36 0-53-43-28-68L485 11c15-15 40-15 55 0l304 304c25 25 7 68-28 68H640v336c0 27-21 48-48 48zm432-16v224c0 27-21 48-48 48H48c-27 0-48-21-48-48V752c0-27 21-48 48-48h272v16c0 62 50 112 112 112h160c62 0 112-50 112-112v-16h272c27 0 48 21 48 48zm-248 176c0-22-18-40-40-40s-40 18-40 40s18 40 40 40s40-18 40-40zm128 0c0-22-18-40-40-40s-40 18-40 40s18 40 40 40s40-18 40-40z</Geometry>
|
<Geometry x:Key="Icon.Push">M592 768h-160c-27 0-48-21-48-48V384h-175c-36 0-53-43-28-68L485 11c15-15 40-15 55 0l304 304c25 25 7 68-28 68H640v336c0 27-21 48-48 48zm432-16v224c0 27-21 48-48 48H48c-27 0-48-21-48-48V752c0-27 21-48 48-48h272v16c0 62 50 112 112 112h160c62 0 112-50 112-112v-16h272c27 0 48 21 48 48zm-248 176c0-22-18-40-40-40s-40 18-40 40s18 40 40 40s40-18 40-40zm128 0c0-22-18-40-40-40s-40 18-40 40s18 40 40 40s40-18 40-40z</Geometry>
|
||||||
<Geometry x:Key="Icon.SaveStash">M961 320 512 577 63 320 512 62l449 258zM512 628 185 442 63 512 512 770 961 512l-123-70L512 628zM512 821 185 634 63 704 512 962l449-258L839 634 512 821z</Geometry>
|
<Geometry x:Key="Icon.Stashes">M961 320 512 577 63 320 512 62l449 258zM512 628 185 442 63 512 512 770 961 512l-123-70L512 628zM512 821 185 634 63 704 512 962l449-258L839 634 512 821z</Geometry>
|
||||||
<Geometry x:Key="Icon.Apply">M154 256h410v51H154zM154 563h154v51H154zM154 410h307v51H154zM154 973H51V51h819v102l51 51V0H0v1024h154v-51zM870 666v307H563l-51 51h410V614l-51 51zM819 205 205 819v205h205l614-614zM256 973v-102l102 102zm563-461-102-102 51-51 102 102z</Geometry>
|
|
||||||
<Geometry x:Key="Icon.Terminal">M144 112h736c18 0 32 14 32 32v736c0 18-14 32-32 32H144c-18 0-32-14-32-32V144c0-18 14-32 32-32zm112 211v72a9 9 0 003 7L386 509 259 615a9 9 0 00-3 7v72a9 9 0 0015 7L493 516a9 9 0 000-14l-222-186a9 9 0 00-15 7zM522 624a10 10 0 00-10 10v60a10 10 0 0010 10h237a10 10 0 0010-10v-60a10 10 0 00-10-10H522z</Geometry>
|
<Geometry x:Key="Icon.Terminal">M144 112h736c18 0 32 14 32 32v736c0 18-14 32-32 32H144c-18 0-32-14-32-32V144c0-18 14-32 32-32zm112 211v72a9 9 0 003 7L386 509 259 615a9 9 0 00-3 7v72a9 9 0 0015 7L493 516a9 9 0 000-14l-222-186a9 9 0 00-15 7zM522 624a10 10 0 00-10 10v60a10 10 0 0010 10h237a10 10 0 0010-10v-60a10 10 0 00-10-10H522z</Geometry>
|
||||||
<Geometry x:Key="Icon.Flow">M509 556l93 149h124l-80-79 49-50 165 164-165 163-49-50 79-79h-163l-96-153 41-65zm187-395 165 164-165 163-49-50L726 360H530l-136 224H140v-70h215l136-224h236l-80-79 49-50z</Geometry>
|
<Geometry x:Key="Icon.Flow">M509 556l93 149h124l-80-79 49-50 165 164-165 163-49-50 79-79h-163l-96-153 41-65zm187-395 165 164-165 163-49-50L726 360H530l-136 224H140v-70h215l136-224h236l-80-79 49-50z</Geometry>
|
||||||
|
|
||||||
<Geometry x:Key="Icon.Commit">M796 471A292 292 0 00512 256a293 293 0 00-284 215H0v144h228A293 293 0 00512 832a291 291 0 00284-217H1024V471h-228M512 688A146 146 0 01366 544A145 145 0 01512 400c80 0 146 63 146 144A146 146 0 01512 688</Geometry>
|
<Geometry x:Key="Icon.Commit">M796 471A292 292 0 00512 256a293 293 0 00-284 215H0v144h228A293 293 0 00512 832a291 291 0 00284-217H1024V471h-228M512 688A146 146 0 01366 544A145 145 0 01512 400c80 0 146 63 146 144A146 146 0 01512 688</Geometry>
|
||||||
<Geometry x:Key="Icon.Send">M0 586l404 119 498-410-386 441-2 251 155-205 279 83L1170 37z</Geometry>
|
<Geometry x:Key="Icon.Send">M0 586l404 119 498-410-386 441-2 251 155-205 279 83L1170 37z</Geometry>
|
||||||
<Geometry x:Key="Icon.Histories">M24 512A488 488 0 01512 24A488 488 0 011000 512A488 488 0 01512 1000A488 488 0 0124 512zm447-325v327L243 619l51 111 300-138V187H471z</Geometry>
|
<Geometry x:Key="Icon.Histories">M24 512A488 488 0 01512 24A488 488 0 011000 512A488 488 0 01512 1000A488 488 0 0124 512zm447-325v327L243 619l51 111 300-138V187H471z</Geometry>
|
||||||
<Geometry x:Key="Icon.Stashes">M715 254h-405l-58 57h520zm-492 86v201h578V340zm405 143h-29v-29H425v29h-29v-57h231v57zm-405 295h578V559H223zm174-133h231v57h-29v-29H425v29h-29v-57z</Geometry>
|
<Geometry x:Key="Icon.Archive">M715 254h-405l-58 57h520zm-492 86v201h578V340zm405 143h-29v-29H425v29h-29v-57h231v57zm-405 295h578V559H223zm174-133h231v57h-29v-29H425v29h-29v-57z</Geometry>
|
||||||
<Geometry x:Key="Icon.Branch">M869 145a145 145 0 10-289 0c0 56 33 107 83 131c-5 96-77 128-201 175c-52 20-110 42-160 74V276A144 144 0 00242 0a145 145 0 00-145 145c0 58 35 108 84 131v461a144 144 0 00-84 131a145 145 0 10289 0a144 144 0 00-84-131c5-95 77-128 201-175c122-46 274-103 280-287a145 145 0 0085-132zM242 61a83 83 0 110 167a83 83 0 010-167zm0 891a84 84 0 110-167a84 84 0 010 167zM724 228a84 84 0 110-167a84 84 0 010 167z</Geometry>
|
<Geometry x:Key="Icon.Branch">M869 145a145 145 0 10-289 0c0 56 33 107 83 131c-5 96-77 128-201 175c-52 20-110 42-160 74V276A144 144 0 00242 0a145 145 0 00-145 145c0 58 35 108 84 131v461a144 144 0 00-84 131a145 145 0 10289 0a144 144 0 00-84-131c5-95 77-128 201-175c122-46 274-103 280-287a145 145 0 0085-132zM242 61a83 83 0 110 167a83 83 0 010-167zm0 891a84 84 0 110-167a84 84 0 010 167zM724 228a84 84 0 110-167a84 84 0 010 167z</Geometry>
|
||||||
<Geometry x:Key="Icon.Branch.Add">M896 128h-64V64c0-35-29-64-64-64s-64 29-64 64v64h-64c-35 0-64 29-64 64s29 64 64 64h64v64c0 35 29 64 64 64s64-29 64-64V256h64c35 0 64-29 64-64s-29-64-64-64zm-204 307C673 481 628 512 576 512H448c-47 0-90 13-128 35V372C394 346 448 275 448 192c0-106-86-192-192-192S64 86 64 192c0 83 54 154 128 180v280c-74 26-128 97-128 180c0 106 86 192 192 192s192-86 192-192c0-67-34-125-84-159c22-20 52-33 84-33h128c122 0 223-85 249-199c-19 4-37 7-57 7c-26 0-51-5-76-13zM256 128c35 0 64 29 64 64s-29 64-64 64s-64-29-64-64s29-64 64-64zm0 768c-35 0-64-29-64-64s29-64 64-64s64 29 64 64s-29 64-64 64z</Geometry>
|
<Geometry x:Key="Icon.Branch.Add">M896 128h-64V64c0-35-29-64-64-64s-64 29-64 64v64h-64c-35 0-64 29-64 64s29 64 64 64h64v64c0 35 29 64 64 64s64-29 64-64V256h64c35 0 64-29 64-64s-29-64-64-64zm-204 307C673 481 628 512 576 512H448c-47 0-90 13-128 35V372C394 346 448 275 448 192c0-106-86-192-192-192S64 86 64 192c0 83 54 154 128 180v280c-74 26-128 97-128 180c0 106 86 192 192 192s192-86 192-192c0-67-34-125-84-159c22-20 52-33 84-33h128c122 0 223-85 249-199c-19 4-37 7-57 7c-26 0-51-5-76-13zM256 128c35 0 64 29 64 64s-29 64-64 64s-64-29-64-64s29-64 64-64zm0 768c-35 0-64-29-64-64s29-64 64-64s64 29 64 64s-29 64-64 64z</Geometry>
|
||||||
<Geometry x:Key="Icon.Remote">M902 479v-1c0-133-112-242-250-242c-106 0-196 64-232 154c-28-20-62-32-100-32c-76 0-140 49-160 116c-52 37-86 97-86 165c0 112 90 202 202 202h503c112 0 202-90 202-202c0-65-31-123-79-160z</Geometry>
|
<Geometry x:Key="Icon.Remote">M902 479v-1c0-133-112-242-250-242c-106 0-196 64-232 154c-28-20-62-32-100-32c-76 0-140 49-160 116c-52 37-86 97-86 165c0 112 90 202 202 202h503c112 0 202-90 202-202c0-65-31-123-79-160z</Geometry>
|
||||||
|
|
|
@ -74,13 +74,13 @@
|
||||||
<controls:IconButton
|
<controls:IconButton
|
||||||
Margin="16,0"
|
Margin="16,0"
|
||||||
Padding="0,8"
|
Padding="0,8"
|
||||||
Icon="{DynamicResource Icon.SaveStash}"
|
Icon="{DynamicResource Icon.Stashes}"
|
||||||
ToolTip="{DynamicResource Text.Stash}"
|
ToolTip="{DynamicResource Text.Stash}"
|
||||||
Click="OpenStash"/>
|
Click="OpenStash"/>
|
||||||
<controls:IconButton
|
<controls:IconButton
|
||||||
Margin="16,0"
|
Margin="16,0"
|
||||||
Padding="0,8"
|
Padding="0,8"
|
||||||
Icon="{DynamicResource Icon.Apply}"
|
Icon="{DynamicResource Icon.Diff}"
|
||||||
ToolTip="{DynamicResource Text.Apply}"
|
ToolTip="{DynamicResource Text.Apply}"
|
||||||
Click="OpenApply"/>
|
Click="OpenApply"/>
|
||||||
|
|
||||||
|
|
|
@ -671,14 +671,22 @@ namespace SourceGit.Views.Widgets {
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var createBranchIcon = new System.Windows.Shapes.Path();
|
||||||
|
createBranchIcon.Data = FindResource("Icon.Branch.Add") as Geometry;
|
||||||
|
createBranchIcon.Width = 10;
|
||||||
var createBranch = new MenuItem();
|
var createBranch = new MenuItem();
|
||||||
|
createBranch.Icon = createBranchIcon;
|
||||||
createBranch.Header = App.Text("CreateBranch");
|
createBranch.Header = App.Text("CreateBranch");
|
||||||
createBranch.Click += (o, e) => {
|
createBranch.Click += (o, e) => {
|
||||||
new Popups.CreateBranch(repo, branch).Show();
|
new Popups.CreateBranch(repo, branch).Show();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var createTagIcon = new System.Windows.Shapes.Path();
|
||||||
|
createTagIcon.Data = FindResource("Icon.Tag.Add") as Geometry;
|
||||||
|
createTagIcon.Width = 10;
|
||||||
var createTag = new MenuItem();
|
var createTag = new MenuItem();
|
||||||
|
createTag.Icon = createTagIcon;
|
||||||
createTag.Header = App.Text("CreateTag");
|
createTag.Header = App.Text("CreateTag");
|
||||||
createTag.Click += (o, e) => {
|
createTag.Click += (o, e) => {
|
||||||
new Popups.CreateTag(repo, branch).Show();
|
new Popups.CreateTag(repo, branch).Show();
|
||||||
|
@ -735,7 +743,11 @@ namespace SourceGit.Views.Widgets {
|
||||||
menu.Items.Add(tracking);
|
menu.Items.Add(tracking);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var archiveIcon = new System.Windows.Shapes.Path();
|
||||||
|
archiveIcon.Data = FindResource("Icon.Archive") as Geometry;
|
||||||
|
archiveIcon.Width = 10;
|
||||||
var archive = new MenuItem();
|
var archive = new MenuItem();
|
||||||
|
archive.Icon = archiveIcon;
|
||||||
archive.Header = App.Text("Archive");
|
archive.Header = App.Text("Archive");
|
||||||
archive.Click += (o, e) => {
|
archive.Click += (o, e) => {
|
||||||
new Popups.Archive(repo.Path, branch).Show();
|
new Popups.Archive(repo.Path, branch).Show();
|
||||||
|
@ -858,21 +870,33 @@ namespace SourceGit.Views.Widgets {
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var createBranchIcon = new System.Windows.Shapes.Path();
|
||||||
|
createBranchIcon.Data = FindResource("Icon.Branch.Add") as Geometry;
|
||||||
|
createBranchIcon.Width = 10;
|
||||||
var createBranch = new MenuItem();
|
var createBranch = new MenuItem();
|
||||||
|
createBranch.Icon = createBranchIcon;
|
||||||
createBranch.Header = App.Text("CreateBranch");
|
createBranch.Header = App.Text("CreateBranch");
|
||||||
createBranch.Click += (o, e) => {
|
createBranch.Click += (o, e) => {
|
||||||
new Popups.CreateBranch(repo, branch).Show();
|
new Popups.CreateBranch(repo, branch).Show();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var createTagIcon = new System.Windows.Shapes.Path();
|
||||||
|
createTagIcon.Data = FindResource("Icon.Tag.Add") as Geometry;
|
||||||
|
createTagIcon.Width = 10;
|
||||||
var createTag = new MenuItem();
|
var createTag = new MenuItem();
|
||||||
|
createTag.Icon = createTagIcon;
|
||||||
createTag.Header = App.Text("CreateTag");
|
createTag.Header = App.Text("CreateTag");
|
||||||
createTag.Click += (o, e) => {
|
createTag.Click += (o, e) => {
|
||||||
new Popups.CreateTag(repo, branch).Show();
|
new Popups.CreateTag(repo, branch).Show();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var archiveIcon = new System.Windows.Shapes.Path();
|
||||||
|
archiveIcon.Data = FindResource("Icon.Archive") as Geometry;
|
||||||
|
archiveIcon.Width = 10;
|
||||||
var archive = new MenuItem();
|
var archive = new MenuItem();
|
||||||
|
archive.Icon = archiveIcon;
|
||||||
archive.Header = App.Text("Archive");
|
archive.Header = App.Text("Archive");
|
||||||
archive.Click += (o, e) => {
|
archive.Click += (o, e) => {
|
||||||
new Popups.Archive(repo.Path, branch).Show();
|
new Popups.Archive(repo.Path, branch).Show();
|
||||||
|
@ -916,7 +940,11 @@ namespace SourceGit.Views.Widgets {
|
||||||
var tag = tagList.SelectedItem as Models.Tag;
|
var tag = tagList.SelectedItem as Models.Tag;
|
||||||
if (tag == null) return;
|
if (tag == null) return;
|
||||||
|
|
||||||
|
var createBranchIcon = new System.Windows.Shapes.Path();
|
||||||
|
createBranchIcon.Data = FindResource("Icon.Branch.Add") as Geometry;
|
||||||
|
createBranchIcon.Width = 10;
|
||||||
var createBranch = new MenuItem();
|
var createBranch = new MenuItem();
|
||||||
|
createBranch.Icon = createBranchIcon;
|
||||||
createBranch.Header = App.Text("CreateBranch");
|
createBranch.Header = App.Text("CreateBranch");
|
||||||
createBranch.Click += (o, ev) => {
|
createBranch.Click += (o, ev) => {
|
||||||
new Popups.CreateBranch(repo, tag).Show();
|
new Popups.CreateBranch(repo, tag).Show();
|
||||||
|
@ -938,7 +966,11 @@ namespace SourceGit.Views.Widgets {
|
||||||
ev.Handled = true;
|
ev.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var archiveIcon = new System.Windows.Shapes.Path();
|
||||||
|
archiveIcon.Data = FindResource("Icon.Archive") as Geometry;
|
||||||
|
archiveIcon.Width = 10;
|
||||||
var archive = new MenuItem();
|
var archive = new MenuItem();
|
||||||
|
archive.Icon = archiveIcon;
|
||||||
archive.Header = App.Text("Archive");
|
archive.Header = App.Text("Archive");
|
||||||
archive.Click += (o, ev) => {
|
archive.Click += (o, ev) => {
|
||||||
new Popups.Archive(repo.Path, tag).Show();
|
new Popups.Archive(repo.Path, tag).Show();
|
||||||
|
|
|
@ -344,7 +344,11 @@ namespace SourceGit.Views.Widgets {
|
||||||
|
|
||||||
menu.Items.Add(new Separator());
|
menu.Items.Add(new Separator());
|
||||||
|
|
||||||
|
var createBranchIcon = new Path();
|
||||||
|
createBranchIcon.Data = FindResource("Icon.Branch.Add") as Geometry;
|
||||||
|
createBranchIcon.Width = 10;
|
||||||
var createBranch = new MenuItem();
|
var createBranch = new MenuItem();
|
||||||
|
createBranch.Icon = createBranchIcon;
|
||||||
createBranch.Header = App.Text("CreateBranch");
|
createBranch.Header = App.Text("CreateBranch");
|
||||||
createBranch.Click += (o, e) => {
|
createBranch.Click += (o, e) => {
|
||||||
new Popups.CreateBranch(repo, commit).Show();
|
new Popups.CreateBranch(repo, commit).Show();
|
||||||
|
@ -352,7 +356,11 @@ namespace SourceGit.Views.Widgets {
|
||||||
};
|
};
|
||||||
menu.Items.Add(createBranch);
|
menu.Items.Add(createBranch);
|
||||||
|
|
||||||
|
var createTagIcon = new Path();
|
||||||
|
createTagIcon.Data = FindResource("Icon.Tag.Add") as Geometry;
|
||||||
|
createTagIcon.Width = 10;
|
||||||
var createTag = new MenuItem();
|
var createTag = new MenuItem();
|
||||||
|
createTag.Icon = createTagIcon;
|
||||||
createTag.Header = App.Text("CreateTag");
|
createTag.Header = App.Text("CreateTag");
|
||||||
createTag.Click += (o, e) => {
|
createTag.Click += (o, e) => {
|
||||||
new Popups.CreateTag(repo, commit).Show();
|
new Popups.CreateTag(repo, commit).Show();
|
||||||
|
@ -361,7 +369,11 @@ namespace SourceGit.Views.Widgets {
|
||||||
menu.Items.Add(createTag);
|
menu.Items.Add(createTag);
|
||||||
menu.Items.Add(new Separator());
|
menu.Items.Add(new Separator());
|
||||||
|
|
||||||
|
var saveToPatchIcon = new Path();
|
||||||
|
saveToPatchIcon.Data = FindResource("Icon.Diff") as Geometry;
|
||||||
|
saveToPatchIcon.Width = 10;
|
||||||
var saveToPatch = new MenuItem();
|
var saveToPatch = new MenuItem();
|
||||||
|
saveToPatch.Icon = saveToPatchIcon;
|
||||||
saveToPatch.Header = App.Text("CommitCM.SaveAsPatch");
|
saveToPatch.Header = App.Text("CommitCM.SaveAsPatch");
|
||||||
saveToPatch.Click += (o, e) => {
|
saveToPatch.Click += (o, e) => {
|
||||||
var dialog = new Controls.FolderDialog();
|
var dialog = new Controls.FolderDialog();
|
||||||
|
@ -371,7 +383,11 @@ namespace SourceGit.Views.Widgets {
|
||||||
};
|
};
|
||||||
menu.Items.Add(saveToPatch);
|
menu.Items.Add(saveToPatch);
|
||||||
|
|
||||||
|
var archiveIcon = new Path();
|
||||||
|
archiveIcon.Data = FindResource("Icon.Archive") as Geometry;
|
||||||
|
archiveIcon.Width = 10;
|
||||||
var archive = new MenuItem();
|
var archive = new MenuItem();
|
||||||
|
archive.Icon = archiveIcon;
|
||||||
archive.Header = App.Text("Archive");
|
archive.Header = App.Text("Archive");
|
||||||
archive.Click += (o, e) => {
|
archive.Click += (o, e) => {
|
||||||
new Popups.Archive(repo.Path, commit).Show();
|
new Popups.Archive(repo.Path, commit).Show();
|
||||||
|
|
|
@ -369,14 +369,22 @@ namespace SourceGit.Views.Widgets {
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var stashIcon = new System.Windows.Shapes.Path();
|
||||||
|
stashIcon.Data = FindResource("Icon.Stashes") as System.Windows.Media.Geometry;
|
||||||
|
stashIcon.Width = 10;
|
||||||
var stash = new MenuItem();
|
var stash = new MenuItem();
|
||||||
|
stash.Icon = stashIcon;
|
||||||
stash.Header = App.Text("FileCM.Stash");
|
stash.Header = App.Text("FileCM.Stash");
|
||||||
stash.Click += (o, e) => {
|
stash.Click += (o, e) => {
|
||||||
new Popups.Stash(repo, changes).Show();
|
new Popups.Stash(repo, changes).Show();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var patchIcon = new System.Windows.Shapes.Path();
|
||||||
|
patchIcon.Data = FindResource("Icon.Diff") as System.Windows.Media.Geometry;
|
||||||
|
patchIcon.Width = 10;
|
||||||
var patch = new MenuItem();
|
var patch = new MenuItem();
|
||||||
|
patch.Icon = patchIcon;
|
||||||
patch.Header = App.Text("FileCM.SaveAsPatch");
|
patch.Header = App.Text("FileCM.SaveAsPatch");
|
||||||
patch.Click += (o, e) => {
|
patch.Click += (o, e) => {
|
||||||
var dialog = new SaveFileDialog();
|
var dialog = new SaveFileDialog();
|
||||||
|
@ -432,14 +440,22 @@ namespace SourceGit.Views.Widgets {
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var stashIcon = new System.Windows.Shapes.Path();
|
||||||
|
stashIcon.Data = FindResource("Icon.Stashes") as System.Windows.Media.Geometry;
|
||||||
|
stashIcon.Width = 10;
|
||||||
var stash = new MenuItem();
|
var stash = new MenuItem();
|
||||||
|
stash.Icon = stashIcon;
|
||||||
stash.Header = App.Text("FileCM.StashMulti", changes.Count);
|
stash.Header = App.Text("FileCM.StashMulti", changes.Count);
|
||||||
stash.Click += (o, e) => {
|
stash.Click += (o, e) => {
|
||||||
new Popups.Stash(repo, changes).Show();
|
new Popups.Stash(repo, changes).Show();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var patchIcon = new System.Windows.Shapes.Path();
|
||||||
|
patchIcon.Data = FindResource("Icon.Diff") as System.Windows.Media.Geometry;
|
||||||
|
patchIcon.Width = 10;
|
||||||
var patch = new MenuItem();
|
var patch = new MenuItem();
|
||||||
|
patch.Icon = patchIcon;
|
||||||
patch.Header = App.Text("FileCM.SaveAsPatch");
|
patch.Header = App.Text("FileCM.SaveAsPatch");
|
||||||
patch.Click += (o, e) => {
|
patch.Click += (o, e) => {
|
||||||
var dialog = new SaveFileDialog();
|
var dialog = new SaveFileDialog();
|
||||||
|
@ -491,14 +507,22 @@ namespace SourceGit.Views.Widgets {
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var stashIcon = new System.Windows.Shapes.Path();
|
||||||
|
stashIcon.Data = FindResource("Icon.Stashes") as System.Windows.Media.Geometry;
|
||||||
|
stashIcon.Width = 10;
|
||||||
var stash = new MenuItem();
|
var stash = new MenuItem();
|
||||||
|
stash.Icon = stashIcon;
|
||||||
stash.Header = App.Text("FileCM.Stash");
|
stash.Header = App.Text("FileCM.Stash");
|
||||||
stash.Click += (o, e) => {
|
stash.Click += (o, e) => {
|
||||||
new Popups.Stash(repo, changes).Show();
|
new Popups.Stash(repo, changes).Show();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var patchIcon = new System.Windows.Shapes.Path();
|
||||||
|
patchIcon.Data = FindResource("Icon.Diff") as System.Windows.Media.Geometry;
|
||||||
|
patchIcon.Width = 10;
|
||||||
var patch = new MenuItem();
|
var patch = new MenuItem();
|
||||||
|
patch.Icon = patchIcon;
|
||||||
patch.Header = App.Text("FileCM.SaveAsPatch");
|
patch.Header = App.Text("FileCM.SaveAsPatch");
|
||||||
patch.Click += (o, e) => {
|
patch.Click += (o, e) => {
|
||||||
var dialog = new SaveFileDialog();
|
var dialog = new SaveFileDialog();
|
||||||
|
@ -553,14 +577,22 @@ namespace SourceGit.Views.Widgets {
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var stashIcon = new System.Windows.Shapes.Path();
|
||||||
|
stashIcon.Data = FindResource("Icon.Stashes") as System.Windows.Media.Geometry;
|
||||||
|
stashIcon.Width = 10;
|
||||||
var stash = new MenuItem();
|
var stash = new MenuItem();
|
||||||
|
stash.Icon = stashIcon;
|
||||||
stash.Header = App.Text("FileCM.StashMulti", changes.Count);
|
stash.Header = App.Text("FileCM.StashMulti", changes.Count);
|
||||||
stash.Click += (o, e) => {
|
stash.Click += (o, e) => {
|
||||||
new Popups.Stash(repo, changes).Show();
|
new Popups.Stash(repo, changes).Show();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var patchIcon = new System.Windows.Shapes.Path();
|
||||||
|
patchIcon.Data = FindResource("Icon.Diff") as System.Windows.Media.Geometry;
|
||||||
|
patchIcon.Width = 10;
|
||||||
var patch = new MenuItem();
|
var patch = new MenuItem();
|
||||||
|
patch.Icon = patchIcon;
|
||||||
patch.Header = App.Text("FileCM.SaveAsPatch");
|
patch.Header = App.Text("FileCM.SaveAsPatch");
|
||||||
patch.Click += (o, e) => {
|
patch.Click += (o, e) => {
|
||||||
var dialog = new SaveFileDialog();
|
var dialog = new SaveFileDialog();
|
||||||
|
|
Loading…
Reference in a new issue