From 44ed55937d59522e516e741d08f16dec60c56b41 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 20 May 2022 14:20:22 +0800 Subject: [PATCH] style: remove commit detail panel's guide tips --- src/Resources/Locales/en_US.xaml | 5 - src/Resources/Locales/zh_CN.xaml | 5 - src/Views/Widgets/Histories.xaml | 379 ++++++++++++++-------------- src/Views/Widgets/Histories.xaml.cs | 3 +- 4 files changed, 188 insertions(+), 204 deletions(-) diff --git a/src/Resources/Locales/en_US.xaml b/src/Resources/Locales/en_US.xaml index b21f58f8..04f63e3b 100644 --- a/src/Resources/Locales/en_US.xaml +++ b/src/Resources/Locales/en_US.xaml @@ -274,11 +274,6 @@ Switch Curve/Polyline Graph Mode Switch Horizontal/Vertical Layout SELECTED {0} COMMITS - HISTORIES GUIDE - 1. Select single commit to view detail - 2. Select two commits to show differences - 3. Select more than 2 commits to count - 4. Open context menu to see more options Initialize Repository Path : diff --git a/src/Resources/Locales/zh_CN.xaml b/src/Resources/Locales/zh_CN.xaml index ebec4b65..c9f169f3 100644 --- a/src/Resources/Locales/zh_CN.xaml +++ b/src/Resources/Locales/zh_CN.xaml @@ -273,11 +273,6 @@ 切换曲线/折线显示 切换横向/纵向显示 已选中 {0} 项提交 - 操作说明 - 1. 单选时,显示选中提交的详细信息 - 2. 双选时,按选中顺序对比两个提交 - 3. 多选时,仅统计选中行数 - 4. 右键用于操作选中的某个提交 初始化新仓库 路径 : diff --git a/src/Views/Widgets/Histories.xaml b/src/Views/Widgets/Histories.xaml index bec669c5..07f30e40 100644 --- a/src/Views/Widgets/Histories.xaml +++ b/src/Views/Widgets/Histories.xaml @@ -1,193 +1,186 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Views/Widgets/Histories.xaml.cs b/src/Views/Widgets/Histories.xaml.cs index ac923ae7..585bdb2d 100644 --- a/src/Views/Widgets/Histories.xaml.cs +++ b/src/Views/Widgets/Histories.xaml.cs @@ -236,9 +236,10 @@ namespace SourceGit.Views.Widgets { } else if (selected.Count > 2) { mask.Visibility = Visibility.Visible; txtCounter.Text = App.Text("Histories.Selected", selected.Count); + txtCounter.Visibility = Visibility.Visible; } else { mask.Visibility = Visibility.Visible; - txtCounter.Text = App.Text("Histories.Guide"); + txtCounter.Visibility = Visibility.Collapsed; } }