Skip to content

Commit c14345e

Browse files
committed
ux: refine icons
Signed-off-by: leo <longshuang@msn.cn>
1 parent d2b8295 commit c14345e

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

src/Resources/Icons.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
22
<StreamGeometry x:Key="Icons.Action">M41 512c0-128 46-241 138-333C271 87 384 41 512 41s241 46 333 138c92 92 138 205 138 333s-46 241-138 333c-92 92-205 138-333 138s-241-46-333-138C87 753 41 640 41 512zm87 0c0 108 36 195 113 271s164 113 271 113c108 0 195-36 271-113s113-164 113-271-36-195-113-271c-77-77-164-113-271-113-108 0-195 36-271 113C164 317 128 404 128 512zm256 148V292l195 113L768 512l-195 113-195 113v-77zm148-113-61 36V440l61 36 61 36-61 36z</StreamGeometry>
33
<StreamGeometry x:Key="Icons.AIAssist">M304 464a128 128 0 01128-128c71 0 128 57 128 128v224a32 32 0 01-64 0V592h-128v95a32 32 0 01-64 0v-224zm64 1v64h128v-64a64 64 0 00-64-64c-35 0-64 29-64 64zM688 337c18 0 32 14 32 32v319a32 32 0 01-32 32c-18 0-32-14-32-32v-319a32 32 0 0132-32zM84 911l60-143A446 446 0 0164 512C64 265 265 64 512 64s448 201 448 448-201 448-448 448c-54 0-105-9-153-27l-242 22a32 32 0 01-32-44zm133-150-53 126 203-18 13 5c41 15 85 23 131 23 212 0 384-172 384-384S724 128 512 128 128 300 128 512c0 82 26 157 69 220l20 29z</StreamGeometry>
4-
<StreamGeometry x:Key="Icons.Archive">M296 392h64v64h-64zM296 582v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zM360 328h64v64h-64zM296 264h64v64h-64zM360 456h64v64h-64zM360 200h64v64h-64zM855 289 639 73c-6-6-14-9-23-9H192c-18 0-32 14-32 32v832c0 18 14 32 32 32h640c18 0 32-14 32-32V311c0-9-3-17-9-23zM790 326H602V138L790 326zm2 562H232V136h64v64h64v-64h174v216c0 23 19 42 42 42h216v494z</StreamGeometry>
4+
<StreamGeometry x:Key="Icons.Archive">M366 146l293 0 0-73-293 0 0 73zm658 366 0 274q0 38-27 65t-65 27l-841 0q-38 0-65-27t-27-65l0-274 384 0 0 91q0 15 11 26t26 11l183 0q15 0 26-11t11-26l0-91 384 0zm-439 0 0 73-146 0 0-73 146 0zm439-274 0 219-1024 0 0-219q0-38 27-65t65-27l201 0 0-91q0-23 16-39t39-16l329 0q23 0 39 16t16 39l0 91 201 0q38 0 65 27t27 65z</StreamGeometry>
55
<StreamGeometry x:Key="Icons.Bad">M851 755q0 23-16 39l-78 78q-16 16-39 16t-39-16l-168-168-168 168q-16 16-39 16t-39-16l-78-78q-16-16-16-39t16-39l168-168-168-168q-16-16-16-39t16-39l78-78q16-16 39-16t39 16l168 168 168-168q16-16 39-16t39 16l78 78q16 16 16 39t-16 39l-168 168 168 168q16 16 16 39z</StreamGeometry>
66
<StreamGeometry x:Key="Icons.Binary">M71 1024V0h661L953 219V1024H71zm808-731-220-219H145V951h735V293zM439 512h-220V219h220V512zm-74-219H292v146h74v-146zm0 512h74v73h-220v-73H292v-146H218V585h147v219zm294-366h74V512H512v-73h74v-146H512V219h147v219zm74 439H512V585h220v293zm-74-219h-74v146h74v-146z</StreamGeometry>
77
<StreamGeometry x:Key="Icons.Bisect">M128 384a43 43 0 0043-43V213a43 43 0 0143-43h128a43 43 0 000-85H213a128 128 0 00-128 128v128a43 43 0 0043 43zm213 469H213a43 43 0 01-43-43v-128a43 43 0 00-85 0v128a128 128 0 00128 128h128a43 43 0 000-85zm384-299a43 43 0 000-85h-49A171 171 0 00555 347V299a43 43 0 00-85 0v49A171 171 0 00347 469H299a43 43 0 000 85h49A171 171 0 00469 677V725a43 43 0 0085 0v-49A171 171 0 00677 555zm-213 43a85 85 0 1185-85 85 85 0 01-85 85zm384 43a43 43 0 00-43 43v128a43 43 0 01-43 43h-128a43 43 0 000 85h128a128 128 0 00128-128v-128a43 43 0 00-43-43zM811 85h-128a43 43 0 000 85h128a43 43 0 0143 43v128a43 43 0 0085 0V213a128 128 0 00-128-128z</StreamGeometry>

src/Views/CommitDetail.axaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public ContextMenu CreateChangeContextMenuByFolder(ViewModels.ChangeTreeNode nod
4444

4545
var patch = new MenuItem();
4646
patch.Header = App.Text("FileCM.SaveAsPatch");
47-
patch.Icon = App.CreateMenuIcon("Icons.Diff");
47+
patch.Icon = App.CreateMenuIcon("Icons.Save");
4848
patch.Click += async (_, e) =>
4949
{
5050
var storageProvider = TopLevel.GetTopLevel(this)?.StorageProvider;
@@ -112,7 +112,7 @@ public ContextMenu CreateMultipleChangesContextMenu(List<Models.Change> changes)
112112

113113
var patch = new MenuItem();
114114
patch.Header = App.Text("FileCM.SaveAsPatch");
115-
patch.Icon = App.CreateMenuIcon("Icons.Diff");
115+
patch.Icon = App.CreateMenuIcon("Icons.Save");
116116
patch.Click += async (_, e) =>
117117
{
118118
var storageProvider = TopLevel.GetTopLevel(this)?.StorageProvider;
@@ -289,7 +289,7 @@ public ContextMenu CreateChangeContextMenu(Models.Change change)
289289

290290
var patch = new MenuItem();
291291
patch.Header = App.Text("FileCM.SaveAsPatch");
292-
patch.Icon = App.CreateMenuIcon("Icons.Diff");
292+
patch.Icon = App.CreateMenuIcon("Icons.Save");
293293
patch.Click += async (_, e) =>
294294
{
295295
var storageProvider = TopLevel.GetTopLevel(this)?.StorageProvider;

src/Views/Compare.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private void OnChangeContextRequested(object sender, ContextRequestedEventArgs e
2424

2525
var patch = new MenuItem();
2626
patch.Header = App.Text("FileCM.SaveAsPatch");
27-
patch.Icon = App.CreateMenuIcon("Icons.Diff");
27+
patch.Icon = App.CreateMenuIcon("Icons.Save");
2828
patch.Click += async (_, e) =>
2929
{
3030
var storageProvider = this.StorageProvider;

src/Views/FileHistories.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
</Border>
226226

227227
<Button Grid.Column="3" Classes="icon_button" Width="32" Click="OnSaveAsPatch" ToolTip.Tip="{DynamicResource Text.Diff.SaveAsPatch}">
228-
<Path Width="16" Height="16" Data="{DynamicResource Icons.Diff}"/>
228+
<Path Width="16" Height="16" Data="{DynamicResource Icons.Save}"/>
229229
</Button>
230230
</Grid>
231231

src/Views/Histories.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ private ContextMenu CreateContextMenuForMultipleCommits(ViewModels.Repository re
373373
}
374374

375375
var saveToPatch = new MenuItem();
376-
saveToPatch.Icon = App.CreateMenuIcon("Icons.Diff");
376+
saveToPatch.Icon = App.CreateMenuIcon("Icons.Save");
377377
saveToPatch.Header = App.Text("CommitCM.SaveAsPatch");
378378
saveToPatch.Click += async (_, e) =>
379379
{
@@ -801,7 +801,7 @@ private ContextMenu CreateContextMenuForSingleCommit(ViewModels.Repository repo,
801801
}
802802

803803
var saveToPatch = new MenuItem();
804-
saveToPatch.Icon = App.CreateMenuIcon("Icons.Diff");
804+
saveToPatch.Icon = App.CreateMenuIcon("Icons.Save");
805805
saveToPatch.Header = App.Text("CommitCM.SaveAsPatch");
806806
saveToPatch.Click += async (_, e) =>
807807
{

src/Views/RepositoryToolbar.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<Grid ColumnDefinitions="*,Auto,*">
1111
<StackPanel Grid.Column="0" Orientation="Horizontal" Margin="4,0,0,0">
1212
<Button Classes="icon_button" Width="32" Click="OpenWithExternalTools" ToolTip.Tip="{DynamicResource Text.Repository.OpenWithExternalTools}">
13-
<Path Width="14" Height="14" Data="{StaticResource Icons.Explore}" Margin="0,2,0,0"/>
13+
<Path Width="14" Height="14" Data="{StaticResource Icons.OpenWith}"/>
1414
</Button>
1515

1616
<Button Classes="icon_button" Width="32" Click="OpenGitLogs" ToolTip.Tip="{DynamicResource Text.Repository.ViewLogs}">

src/Views/RevisionCompare.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
<!-- Save As Patch Button -->
5555
<Button Grid.Column="3" Classes="icon_button" Width="32" Click="OnSaveAsPatch" IsVisible="{Binding CanSaveAsPatch}" ToolTip.Tip="{DynamicResource Text.Diff.SaveAsPatch}">
56-
<Path Width="16" Height="16" Data="{DynamicResource Icons.Diff}"/>
56+
<Path Width="16" Height="16" Data="{DynamicResource Icons.Save}"/>
5757
</Button>
5858
</Grid>
5959

src/Views/RevisionCompare.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private void OnChangeContextRequested(object sender, ContextRequestedEventArgs e
2323
{
2424
var patch = new MenuItem();
2525
patch.Header = App.Text("FileCM.SaveAsPatch");
26-
patch.Icon = App.CreateMenuIcon("Icons.Diff");
26+
patch.Icon = App.CreateMenuIcon("Icons.Save");
2727
patch.Click += async (_, e) =>
2828
{
2929
var storageProvider = TopLevel.GetTopLevel(this)?.StorageProvider;

src/Views/StashesPage.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private void OnStashContextRequested(object sender, ContextRequestedEventArgs e)
7171

7272
var patch = new MenuItem();
7373
patch.Header = App.Text("StashCM.SaveAsPatch");
74-
patch.Icon = App.CreateMenuIcon("Icons.Diff");
74+
patch.Icon = App.CreateMenuIcon("Icons.Save");
7575
patch.Click += async (_, ev) =>
7676
{
7777
var storageProvider = TopLevel.GetTopLevel(this)?.StorageProvider;

src/Views/WorkingCopy.axaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ private ContextMenu CreateContextMenuForUnstagedChanges(ViewModels.WorkingCopy v
374374

375375
var patch = new MenuItem();
376376
patch.Header = App.Text("FileCM.SaveAsPatch");
377-
patch.Icon = App.CreateMenuIcon("Icons.Diff");
377+
patch.Icon = App.CreateMenuIcon("Icons.Save");
378378
patch.Click += async (_, e) =>
379379
{
380380
var storageProvider = TopLevel.GetTopLevel(this)?.StorageProvider;
@@ -780,7 +780,7 @@ private ContextMenu CreateContextMenuForUnstagedChanges(ViewModels.WorkingCopy v
780780

781781
var patch = new MenuItem();
782782
patch.Header = App.Text("FileCM.SaveAsPatch");
783-
patch.Icon = App.CreateMenuIcon("Icons.Diff");
783+
patch.Icon = App.CreateMenuIcon("Icons.Save");
784784
patch.Click += async (_, e) =>
785785
{
786786
var storageProvider = TopLevel.GetTopLevel(this)?.StorageProvider;
@@ -963,7 +963,7 @@ public ContextMenu CreateContextMenuForStagedChanges(ViewModels.WorkingCopy vm,
963963

964964
var patch = new MenuItem();
965965
patch.Header = App.Text("FileCM.SaveAsPatch");
966-
patch.Icon = App.CreateMenuIcon("Icons.Diff");
966+
patch.Icon = App.CreateMenuIcon("Icons.Save");
967967
patch.Click += async (_, e) =>
968968
{
969969
var storageProvider = TopLevel.GetTopLevel(this)?.StorageProvider;
@@ -1180,7 +1180,7 @@ public ContextMenu CreateContextMenuForStagedChanges(ViewModels.WorkingCopy vm,
11801180

11811181
var patch = new MenuItem();
11821182
patch.Header = App.Text("FileCM.SaveAsPatch");
1183-
patch.Icon = App.CreateMenuIcon("Icons.Diff");
1183+
patch.Icon = App.CreateMenuIcon("Icons.Save");
11841184
patch.Click += async (_, e) =>
11851185
{
11861186
var storageProvider = TopLevel.GetTopLevel(this)?.StorageProvider;

0 commit comments

Comments
 (0)