From 6d54207b5009e99314b31faee92e84ffb6817945 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 5 Aug 2020 10:01:27 +0800 Subject: [PATCH] feature(Launcher): enable scroll for tabs in title bar --- SourceGit/Resources/Icons.xaml | 5 +- SourceGit/SourceGit.csproj | 2 +- SourceGit/UI/Launcher.xaml | 226 +++++++++++++++++---------------- SourceGit/UI/Launcher.xaml.cs | 18 +++ 4 files changed, 140 insertions(+), 111 deletions(-) diff --git a/SourceGit/Resources/Icons.xaml b/SourceGit/Resources/Icons.xaml index ae8f687b..66103f5a 100644 --- a/SourceGit/Resources/Icons.xaml +++ b/SourceGit/Resources/Icons.xaml @@ -2,7 +2,10 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> M1004.824 466.4L557.72 19.328c-25.728-25.76-67.488-25.76-93.28 0L360.568 123.2l78.176 78.176c12.544-5.984 26.56-9.376 41.376-9.376 53.024 0 96 42.976 96 96 0 14.816-3.36 28.864-9.376 41.376l127.968 127.968c12.544-5.984 26.56-9.376 41.376-9.376 53.024 0 96 42.976 96 96s-42.976 96-96 96-96-42.976-96-96c0-14.816 3.36-28.864 9.376-41.376L521.496 374.624a88.837 88.837 0 0 1-9.376 3.872v266.976c37.28 13.184 64 48.704 64 90.528 0 53.024-42.976 96-96 96s-96-42.976-96-96c0-41.792 26.72-77.344 64-90.528V378.496c-37.28-13.184-64-48.704-64-90.528 0-14.816 3.36-28.864 9.376-41.376l-78.176-78.176L19.416 464.288c-25.76 25.792-25.76 67.52 0 93.28l447.136 447.072c25.728 25.76 67.488 25.76 93.28 0l444.992-444.992c25.76-25.76 25.76-67.552 0-93.28z M557.696 545.347L789.873 402.66c23.998-14.999 31.297-46.496 16.398-70.493-14.798-23.798-45.995-31.197-69.993-16.699L506.501 456.555 277.123 315.37c-24.098-14.798-55.595-7.3-70.493 16.799-14.799 24.097-7.3 55.594 16.798 70.493l231.778 142.586V819.12c0 28.297 22.897 51.195 51.195 51.195 28.297 0 51.195-22.898 51.195-51.195V545.347h0.1zM506.5 0l443.356 255.975v511.95L506.501 1023.9 63.144 767.925v-511.95L506.5 0z - + + 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 diff --git a/SourceGit/SourceGit.csproj b/SourceGit/SourceGit.csproj index dbb64ca1..896fbe8e 100644 --- a/SourceGit/SourceGit.csproj +++ b/SourceGit/SourceGit.csproj @@ -9,7 +9,7 @@ OpenSource GIT client for Windows Copyright © sourcegit 2020. All rights reserved. App.manifest - 1.4 + 1.5 MIT diff --git a/SourceGit/UI/Launcher.xaml b/SourceGit/UI/Launcher.xaml index 3f6b3eaa..549f4ec7 100644 --- a/SourceGit/UI/Launcher.xaml +++ b/SourceGit/UI/Launcher.xaml @@ -43,132 +43,140 @@ - + + - - - - + + + + + - - - + + + + - - - - - - - + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + + + + +