From a163c2e4e8a146e1f69a942bce269f3b3e45669d Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 2 Apr 2021 11:34:08 +0800 Subject: [PATCH] style<*>: more flat-style theme --- src/App.preference.cs | 2 +- src/Resources/Icons.xaml | 5 +- src/Resources/Styles/Path.xaml | 11 +--- src/Resources/Themes/Dark.xaml | 4 +- src/UI/Blame.xaml | 17 +---- src/UI/CommitViewer.xaml | 13 +++- src/UI/Dashboard.xaml | 2 +- src/UI/FileHistories.xaml | 17 +---- src/UI/Histories.xaml | 2 +- src/UI/Histories.xaml.cs | 14 +++- src/UI/InteractiveRebase.xaml | 17 +---- src/UI/Launcher.xaml | 116 +++++++++++++-------------------- src/UI/Launcher.xaml.cs | 6 +- src/UI/Stashes.xaml | 13 ++-- src/UI/WorkingCopy.xaml | 18 +++-- 15 files changed, 107 insertions(+), 150 deletions(-) diff --git a/src/App.preference.cs b/src/App.preference.cs index 5263ce23..86d541d2 100644 --- a/src/App.preference.cs +++ b/src/App.preference.cs @@ -55,7 +55,7 @@ namespace SourceGit { /// /// Base URL to get avatar /// - public string AvatarServer { get; set; } = "https://www.gravatar.com/avatar"; + public string AvatarServer { get; set; } = "https://www.gravatar.com/avatar/"; /// /// Main window width /// diff --git a/src/Resources/Icons.xaml b/src/Resources/Icons.xaml index f2801480..560b58e7 100644 --- a/src/Resources/Icons.xaml +++ b/src/Resources/Icons.xaml @@ -13,9 +13,8 @@ M753.613 996.727L269.38 511.505 754.602 27.272z M270.387 27.273L754.62 512.495 269.398 996.728z - F1M0,6L0,9 9,9 9,6 0,6z - F1M0,0L0,9 9,9 9,0 0,0 0,3 8,3 8,8 1,8 1,3z - F1M0,10L0,3 3,3 3,0 10,0 10,2 4,2 4,3 7,3 7,6 6,6 6,5 1,5 1,10z M1,10L7,10 7,7 10,7 10,2 9,2 9,6 6,6 6,9 1,9z + M256 810.666667h512v85.333333H256z + M255.13 382.7h425.11v382.65h-425.1l-0.01-382.65z m42.64 340.17l340.09-0.09V425.34H297.77v297.53z m382.46-85.1h42.64V340.32H382.7v42.38h-42.38v-85.02h425l0.04 382.47h-85.21l0.08-42.38z M810.666667 273.493333L750.506667 213.333333 512 451.84 273.493333 213.333333 213.333333 273.493333 451.84 512 213.333333 750.506667 273.493333 810.666667 512 572.16 750.506667 810.666667 810.666667 750.506667 572.16 512z M512 597.33333332m-1.26648097 0a1.26648097 1.26648097 0 1 0 2.53296194 0 1.26648097 1.26648097 0 1 0-2.53296194 0ZM809.691429 392.777143L732.16 314.514286 447.634286 599.771429 292.571429 443.977143 214.308571 521.508571l155.794286 155.794286 77.531429 77.531429 362.057143-362.057143z M511.680999 0C233.071131 0 6.524722 222.580887 0.12872 499.655715 6.013042 257.886821 189.834154 63.960025 415.740962 63.960025c229.61649 0 415.740162 200.450718 415.740162 447.720175 0 52.958901 42.981137 95.940037 95.940038 95.940037s95.940037-42.981137 95.940037-95.940037c0-282.57539-229.104809-511.6802-511.6802-511.6802z m0 1023.3604c278.609869 0 505.156277-222.580887 511.55228-499.655715-5.884322 241.768894-189.705434 435.69569-415.612242 435.69569-229.61649 0-415.740162-200.450718-415.740163-447.720175 0-52.958901-42.981137-95.940037-95.940037-95.940038s-95.940037 42.981137-95.940037 95.940038c0 282.57539 229.104809 511.6802 511.680199 511.6802z diff --git a/src/Resources/Styles/Path.xaml b/src/Resources/Styles/Path.xaml index 08335ddd..1758621b 100644 --- a/src/Resources/Styles/Path.xaml +++ b/src/Resources/Styles/Path.xaml @@ -1,4 +1,4 @@ - - - \ No newline at end of file diff --git a/src/Resources/Themes/Dark.xaml b/src/Resources/Themes/Dark.xaml index 51715fd6..171f1ac7 100644 --- a/src/Resources/Themes/Dark.xaml +++ b/src/Resources/Themes/Dark.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> - + @@ -15,7 +15,7 @@ - + diff --git a/src/UI/Blame.xaml b/src/UI/Blame.xaml index 3d2b0bef..cb1c79ff 100644 --- a/src/UI/Blame.xaml +++ b/src/UI/Blame.xaml @@ -61,23 +61,10 @@ + + - + - - + -