diff --git a/src/App.JsonCodeGen.cs b/src/App.JsonCodeGen.cs index 54c1b348d..dcfd45f3b 100644 --- a/src/App.JsonCodeGen.cs +++ b/src/App.JsonCodeGen.cs @@ -66,6 +66,7 @@ public override void Write(Utf8JsonWriter writer, DataGridLength value, JsonSeri [JsonSerializable(typeof(Models.ThemeOverrides))] [JsonSerializable(typeof(Models.Version))] [JsonSerializable(typeof(Models.RepositorySettings))] + [JsonSerializable(typeof(List))] [JsonSerializable(typeof(List))] [JsonSerializable(typeof(List))] [JsonSerializable(typeof(List))] diff --git a/src/Resources/Icons.axaml b/src/Resources/Icons.axaml index cbb040467..ab4bdbfc0 100644 --- a/src/Resources/Icons.axaml +++ b/src/Resources/Icons.axaml @@ -1,4 +1,5 @@ + M384 192a64 64 0 110 128 64 64 0 010-128zm256 0a64 64 0 110 128 64 64 0 010-128zM384 448a64 64 0 110 128 64 64 0 010-128zm256 0a64 64 0 110 128 64 64 0 010-128zM384 704a64 64 0 110 128 64 64 0 010-128zm256 0a64 64 0 110 128 64 64 0 010-128z 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 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 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 diff --git a/src/ViewModels/LayoutInfo.cs b/src/ViewModels/LayoutInfo.cs index 26ae128db..3053c6051 100644 --- a/src/ViewModels/LayoutInfo.cs +++ b/src/ViewModels/LayoutInfo.cs @@ -1,4 +1,6 @@ -using Avalonia.Controls; +using System.Collections.Generic; + +using Avalonia.Controls; using CommunityToolkit.Mvvm.ComponentModel; namespace SourceGit.ViewModels @@ -76,6 +78,13 @@ public DataGridLength AuthorColumnWidth private GridLength _stashesLeftWidth = new GridLength(300, GridUnitType.Pixel); private GridLength _commitDetailChangesLeftWidth = new GridLength(256, GridUnitType.Pixel); private GridLength _commitDetailFilesLeftWidth = new GridLength(256, GridUnitType.Pixel); + public List SidebarViewOrder + { + get => _sidebarViewOrder; + set => SetProperty(ref _sidebarViewOrder, value); + } + private DataGridLength _authorColumnWidth = new DataGridLength(120, DataGridLengthUnitType.Pixel, 120, 120); + private List _sidebarViewOrder = new List { 0, 1, 2 }; } } diff --git a/src/Views/Repository.axaml b/src/Views/Repository.axaml index 777e694d0..5d4459fa2 100644 --- a/src/Views/Repository.axaml +++ b/src/Views/Repository.axaml @@ -54,7 +54,7 @@ - +