From da7f8245085b5889205961d33876b7bbf9f00384 Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 8 May 2021 11:37:57 +0800 Subject: [PATCH] style: move committer/author name to avatar's ToolTip attribute --- src/Views/Histories.xaml | 13 +++++++++---- src/Views/Widgets/RevisionCompare.xaml.cs | 2 ++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/Views/Histories.xaml b/src/Views/Histories.xaml index 7c87a03a..d3683e1c 100644 --- a/src/Views/Histories.xaml +++ b/src/Views/Histories.xaml @@ -77,7 +77,8 @@ HorizontalAlignment="Center" Width="32" Height="32" Email="{Binding Author.Email}" - FallbackLabel="{Binding Author.Name}"/> + FallbackLabel="{Binding Author.Name}" + ToolTip="{Binding Author.Name}"/> @@ -89,7 +90,6 @@ - @@ -98,8 +98,13 @@ - - + diff --git a/src/Views/Widgets/RevisionCompare.xaml.cs b/src/Views/Widgets/RevisionCompare.xaml.cs index c85a4c37..351f6c35 100644 --- a/src/Views/Widgets/RevisionCompare.xaml.cs +++ b/src/Views/Widgets/RevisionCompare.xaml.cs @@ -15,12 +15,14 @@ namespace SourceGit.Views.Widgets { public void SetData(string repo, Models.Commit start, Models.Commit end) { avatarStart.Email = start.Committer.Email; avatarStart.FallbackLabel = start.Committer.Name; + avatarStart.ToolTip = start.Committer.Name; txtStartSHA.Text = start.ShortSHA; txtStartTime.Text = start.Committer.Time; txtStartSubject.Text = start.Subject; avatarEnd.Email = end.Committer.Email; avatarEnd.FallbackLabel = end.Committer.Name; + avatarEnd.ToolTip = end.Committer.Name; txtEndSHA.Text = end.ShortSHA; txtEndTime.Text = end.Committer.Time; txtEndSubject.Text = end.Subject;