From e92b4f04c06378f3e85d5fdd1785d64f6a21f003 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 26 Feb 2017 19:54:53 -0800 Subject: [PATCH] UI clean up and improvments Updated Avalonia UI --- CommitEntry/CommitEntry.csproj | 44 +++++++-------- CommitEntry/packages.config | 14 ++--- GitItGUI.Core/Properties/AssemblyInfo.cs | 2 +- GitItGUI.Core/RepoManager.cs | 8 ++- GitItGUI.Core/Tools/Settings.cs | 8 +-- GitItGUI/AppSettingsPage.xaml | 10 ++-- GitItGUI/GitItGUI.csproj | 56 ++++++++++---------- GitItGUI/MainContent.xaml | 37 +++++++------ GitItGUI/MainContent.xaml.cs | 44 +++++++++++++++ GitItGUI/MainWindow.xaml.cs | 1 + GitItGUI/ProcessingPage.xaml | 2 +- GitItGUI/SettingsPage.xaml | 42 ++++++--------- GitItGUI/SettingsPage.xaml.cs | 12 +---- GitItGUI/StartPage.xaml.cs | 2 + GitItGUI/VersionInfo.xml | 2 +- GitItGUI/packages.config | 18 +++---- MergeConflicPicker/MergeConflicPicker.csproj | 56 ++++++++++---------- MergeConflicPicker/packages.config | 18 +++---- MessageBox/MessageBox.csproj | 56 ++++++++++---------- MessageBox/packages.config | 18 +++---- NameEntry/NameEntry.csproj | 56 ++++++++++---------- NameEntry/packages.config | 18 +++---- 22 files changed, 283 insertions(+), 241 deletions(-) diff --git a/CommitEntry/CommitEntry.csproj b/CommitEntry/CommitEntry.csproj index 3008e8d..b3cd046 100644 --- a/CommitEntry/CommitEntry.csproj +++ b/CommitEntry/CommitEntry.csproj @@ -37,87 +37,87 @@ - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Animation.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Animation.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Base.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Base.dll True - ..\packages\Avalonia.Cairo.0.4.1-build2634-alpha\lib\net45\Avalonia.Cairo.dll + ..\packages\Avalonia.Cairo.0.4.1-build2693-alpha\lib\net45\Avalonia.Cairo.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Controls.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Controls.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.DesignerSupport.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.DesignerSupport.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Diagnostics.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Diagnostics.dll True - ..\packages\Avalonia.Direct2D1.0.4.1-build2634-alpha\lib\net45\Avalonia.Direct2D1.dll + ..\packages\Avalonia.Direct2D1.0.4.1-build2693-alpha\lib\net45\Avalonia.Direct2D1.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.DotNetFrameworkRuntime.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.DotNetFrameworkRuntime.dll True - - ..\packages\Avalonia.Gtk.0.4.1-build2634-alpha\lib\net45\Avalonia.Gtk.dll + + ..\packages\Avalonia.Gtk.0.4.1-build2693-alpha\lib\net45\Avalonia.Gtk.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Input.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Input.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Interactivity.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Interactivity.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Layout.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Layout.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Logging.Serilog.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Logging.Serilog.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Markup.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Markup.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Markup.Xaml.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Markup.Xaml.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.ReactiveUI.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.ReactiveUI.dll True - ..\packages\Avalonia.Skia.Desktop.0.4.1-build2634-alpha\lib\net45\Avalonia.Skia.Desktop.dll + ..\packages\Avalonia.Skia.Desktop.0.4.1-build2693-alpha\lib\net45\Avalonia.Skia.Desktop.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Styling.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Styling.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Themes.Default.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Themes.Default.dll True - ..\packages\Avalonia.0.4.1-build2634-alpha\lib\net45\Avalonia.Visuals.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Visuals.dll True - ..\packages\Avalonia.Win32.0.4.1-build2634-alpha\lib\net45\Avalonia.Win32.dll + ..\packages\Avalonia.Win32.0.4.1-build2693-alpha\lib\net45\Avalonia.Win32.dll True diff --git a/CommitEntry/packages.config b/CommitEntry/packages.config index 3c47c77..262109b 100644 --- a/CommitEntry/packages.config +++ b/CommitEntry/packages.config @@ -1,12 +1,12 @@  - - - - - - - + + + + + + + diff --git a/GitItGUI.Core/Properties/AssemblyInfo.cs b/GitItGUI.Core/Properties/AssemblyInfo.cs index f87e907..1588477 100644 --- a/GitItGUI.Core/Properties/AssemblyInfo.cs +++ b/GitItGUI.Core/Properties/AssemblyInfo.cs @@ -37,5 +37,5 @@ public static class VersionInfo { - public const string version = "0.1.12"; + public const string version = "0.1.13"; } \ No newline at end of file diff --git a/GitItGUI.Core/RepoManager.cs b/GitItGUI.Core/RepoManager.cs index 371496c..3eb8a08 100644 --- a/GitItGUI.Core/RepoManager.cs +++ b/GitItGUI.Core/RepoManager.cs @@ -80,7 +80,7 @@ public static bool OpenRepo(string path) // check for git lfs lfsEnabled = IsGitLFSRepo(); - + // load settings settings = Settings.Load(path + "\\" + Settings.repoSettingsFilename); userSettings = Settings.Load(path + "\\" + Settings.repoUserSettingsFilename); @@ -118,6 +118,12 @@ public static bool OpenRepo(string path) BranchManager.OpenRepo(repo); AppManager.AddActiveRepoToHistory(); + + // warnings + if (userSettings.signatureName.Contains("TODO: ") || userSettings.signatureEmail.Contains("TODO: ") || userSettings.username.Contains("TODO: ")) + { + Debug.LogWarning("Credentials not set, please go to the settings tab!", true); + } } catch (Exception e) { diff --git a/GitItGUI.Core/Tools/Settings.cs b/GitItGUI.Core/Tools/Settings.cs index bc69da4..ec943e7 100644 --- a/GitItGUI.Core/Tools/Settings.cs +++ b/GitItGUI.Core/Tools/Settings.cs @@ -31,10 +31,10 @@ public class RepoSettings [XmlRoot("RepoUserSettings")] public class RepoUserSettings { - [XmlAttribute("SignatureName")] public string signatureName = "First Last"; - [XmlAttribute("SignatureEmail")] public string signatureEmail = "username@email.com"; - [XmlAttribute("Username")] public string username = "Username"; - [XmlAttribute("Password")] public string password = "password"; + [XmlAttribute("SignatureName")] public string signatureName = "TODO: First Last"; + [XmlAttribute("SignatureEmail")] public string signatureEmail = "TODO: username@email.com"; + [XmlAttribute("Username")] public string username = "TODO: Username"; + [XmlAttribute("Password")] public string password = ""; } } diff --git a/GitItGUI/AppSettingsPage.xaml b/GitItGUI/AppSettingsPage.xaml index 1b98ead..17b3002 100644 --- a/GitItGUI/AppSettingsPage.xaml +++ b/GitItGUI/AppSettingsPage.xaml @@ -1,15 +1,15 @@  - Merge / Diff tool - + App Settings + Merge / Diff tool + Meld kDiff3 P4Merge DiffMerge - Auto Refresh Changes - - + Auto Refresh Changes + \ No newline at end of file diff --git a/GitItGUI/GitItGUI.csproj b/GitItGUI/GitItGUI.csproj index 46345b3..188ff17 100644 --- a/GitItGUI/GitItGUI.csproj +++ b/GitItGUI/GitItGUI.csproj @@ -42,87 +42,87 @@ - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Animation.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Animation.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Base.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Base.dll True - ..\packages\Avalonia.Cairo.0.4.1-build2590-alpha\lib\net45\Avalonia.Cairo.dll + ..\packages\Avalonia.Cairo.0.4.1-build2693-alpha\lib\net45\Avalonia.Cairo.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Controls.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Controls.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.DesignerSupport.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.DesignerSupport.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Diagnostics.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Diagnostics.dll True - ..\packages\Avalonia.Direct2D1.0.4.1-build2590-alpha\lib\net45\Avalonia.Direct2D1.dll + ..\packages\Avalonia.Direct2D1.0.4.1-build2693-alpha\lib\net45\Avalonia.Direct2D1.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.DotNetFrameworkRuntime.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.DotNetFrameworkRuntime.dll True - - ..\packages\Avalonia.Gtk.0.4.1-build2590-alpha\lib\net45\Avalonia.Gtk.dll + + ..\packages\Avalonia.Gtk.0.4.1-build2693-alpha\lib\net45\Avalonia.Gtk.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Input.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Input.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Interactivity.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Interactivity.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Layout.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Layout.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Logging.Serilog.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Logging.Serilog.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Markup.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Markup.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Markup.Xaml.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Markup.Xaml.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.ReactiveUI.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.ReactiveUI.dll True - ..\packages\Avalonia.Skia.Desktop.0.4.1-build2590-alpha\lib\net45\Avalonia.Skia.Desktop.dll + ..\packages\Avalonia.Skia.Desktop.0.4.1-build2693-alpha\lib\net45\Avalonia.Skia.Desktop.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Styling.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Styling.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Themes.Default.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Themes.Default.dll True - ..\packages\Avalonia.0.4.1-build2590-alpha\lib\net45\Avalonia.Visuals.dll + ..\packages\Avalonia.0.4.1-build2693-alpha\lib\net45\Avalonia.Visuals.dll True - ..\packages\Avalonia.Win32.0.4.1-build2590-alpha\lib\net45\Avalonia.Win32.dll + ..\packages\Avalonia.Win32.0.4.1-build2693-alpha\lib\net45\Avalonia.Win32.dll True @@ -153,16 +153,16 @@ ..\packages\SharpDX.DXGI.3.1.1\lib\net45\SharpDX.DXGI.dll True - - ..\packages\SkiaSharp.1.54.1\lib\net45\SkiaSharp.dll + + ..\packages\SkiaSharp.1.56.1-beta\lib\net45\SkiaSharp.dll True ..\packages\Splat.1.6.2\lib\Net45\Splat.dll True - - ..\packages\Sprache.2.0.0.52\lib\portable-net4+netcore45+win8+wp8+sl5+MonoAndroid+Xamarin.iOS10+MonoTouch\Sprache.dll + + ..\packages\Sprache.2.1.0\lib\net40\Sprache.dll True @@ -303,10 +303,10 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + - +