From 1f3f9a4472e29f8bdcbc5d3450bfb404c7183b7f Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 1 Apr 2024 11:45:30 +0800 Subject: [PATCH] style: add source code website in about dialog (#40) --- src/SourceGit/Resources/Locales.Designer.cs | 25 ++++++++++++++++++--- src/SourceGit/Resources/Locales.en.resx | 16 ++++++++----- src/SourceGit/Resources/Locales.resx | 14 ++++++++---- src/SourceGit/Resources/Locales.zh.resx | 20 +++++++++++++---- src/SourceGit/Views/About.axaml | 21 ++++++++++------- src/SourceGit/Views/About.axaml.cs | 6 +++++ 6 files changed, 78 insertions(+), 24 deletions(-) diff --git a/src/SourceGit/Resources/Locales.Designer.cs b/src/SourceGit/Resources/Locales.Designer.cs index eda36811..a9fd97f6 100644 --- a/src/SourceGit/Resources/Locales.Designer.cs +++ b/src/SourceGit/Resources/Locales.Designer.cs @@ -1,6 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -104,6 +105,24 @@ namespace SourceGit.Resources { } } + /// + /// Looks up a localized string similar to • Source code can be found at . + /// + public static string Text_About_SourceCode { + get { + return ResourceManager.GetString("Text.About.SourceCode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Opensource & Free Git GUI Client. + /// + public static string Text_About_SubTitle { + get { + return ResourceManager.GetString("Text.About.SubTitle", resourceCulture); + } + } + /// /// Looks up a localized string similar to Patch. /// @@ -2994,7 +3013,7 @@ namespace SourceGit.Resources { } /// - /// Looks up a localized string similar to Open in. + /// Looks up a localized string similar to Open In External Tools. /// public static string Text_Repository_OpenWith { get { @@ -3111,7 +3130,7 @@ namespace SourceGit.Resources { } /// - /// Looks up a localized string similar to Open In Git Bash. + /// Looks up a localized string similar to Open In Terminal. /// public static string Text_Repository_Terminal { get { @@ -3795,7 +3814,7 @@ namespace SourceGit.Resources { } /// - /// Looks up a localized string similar to Open In Git Bash. + /// Looks up a localized string similar to Open In Terminal. /// public static string Text_Welcome_OpenTerminal { get { diff --git a/src/SourceGit/Resources/Locales.en.resx b/src/SourceGit/Resources/Locales.en.resx index 884665b7..60b75f55 100644 --- a/src/SourceGit/Resources/Locales.en.resx +++ b/src/SourceGit/Resources/Locales.en.resx @@ -344,9 +344,9 @@ Open In Fleet - + - Open In Git Bash + Open In Terminal Refresh @@ -811,7 +811,7 @@ Open Repository - Open In Git Bash + Open Terminal Clone Repository @@ -1305,8 +1305,8 @@ APPEARANCE - - Open in + + Open In External Tools Software Update @@ -1332,4 +1332,10 @@ Check for updates on startup + + Opensource & Free Git GUI Client + + + • Source code can be found at + \ No newline at end of file diff --git a/src/SourceGit/Resources/Locales.resx b/src/SourceGit/Resources/Locales.resx index cb640c72..d5610a76 100644 --- a/src/SourceGit/Resources/Locales.resx +++ b/src/SourceGit/Resources/Locales.resx @@ -346,7 +346,7 @@ Open In Fleet - Open In Git Bash + Open In Terminal Refresh @@ -811,7 +811,7 @@ Open Repository - Open In Git Bash + Open In Terminal Clone Repository @@ -1305,8 +1305,8 @@ Appearance - - Open in + + Open In External Tools Software Update @@ -1332,4 +1332,10 @@ Check for updates on startup + + Opensource & Free Git GUI Client + + + • Source code can be found at + \ No newline at end of file diff --git a/src/SourceGit/Resources/Locales.zh.resx b/src/SourceGit/Resources/Locales.zh.resx index 5371c768..d04335ee 100644 --- a/src/SourceGit/Resources/Locales.zh.resx +++ b/src/SourceGit/Resources/Locales.zh.resx @@ -94,7 +94,7 @@ Copyright © 2024 sourcegit-scm. - • 使用的框架为 + • 项目依赖于 • 文本编辑器使用 @@ -340,10 +340,10 @@ 在文件浏览器中打开 - 在Visual Studio Code中打开 + 在 Visual Studio Code 中打开 - 在GIT终端中打开 + 在终端中打开 重新加载 @@ -808,7 +808,7 @@ 打开本地仓库 - 打开GIT终端 + 打开终端 克隆远程仓库 @@ -1326,4 +1326,16 @@ 启动时检测软件更新 + + 开源免费的Git客户端 + + + 使用外部工具打开 + + + • 项目源代码地址 + + + 在 Fleet 中打开 + \ No newline at end of file diff --git a/src/SourceGit/Views/About.axaml b/src/SourceGit/Views/About.axaml index 61ab0f06..97d7c46f 100644 --- a/src/SourceGit/Views/About.axaml +++ b/src/SourceGit/Views/About.axaml @@ -64,9 +64,10 @@ Width="200" Height="200" Margin="8,0" Source="/App.ico" - HorizontalAlignment="Center"/> + HorizontalAlignment="Center" + VerticalAlignment="Center"/> - + @@ -74,16 +75,15 @@ - + - + + + - - - - + @@ -91,6 +91,11 @@ + + + + + diff --git a/src/SourceGit/Views/About.axaml.cs b/src/SourceGit/Views/About.axaml.cs index 9440ee44..810f5205 100644 --- a/src/SourceGit/Views/About.axaml.cs +++ b/src/SourceGit/Views/About.axaml.cs @@ -49,5 +49,11 @@ namespace SourceGit.Views Native.OS.OpenBrowser("https://www.jetbrains.com/lp/mono/"); e.Handled = true; } + + private void OnVisitSourceCode(object sender, PointerPressedEventArgs e) + { + Native.OS.OpenBrowser("https://github.com/sourcegit-scm/sourcegit"); + e.Handled = true; + } } }