mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
style: add source code website in about dialog (#40)
This commit is contained in:
parent
30d5f1415e
commit
1f3f9a4472
6 changed files with 78 additions and 24 deletions
25
src/SourceGit/Resources/Locales.Designer.cs
generated
25
src/SourceGit/Resources/Locales.Designer.cs
generated
|
@ -1,6 +1,7 @@
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// 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
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
|
@ -104,6 +105,24 @@ namespace SourceGit.Resources {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to • Source code can be found at .
|
||||||
|
/// </summary>
|
||||||
|
public static string Text_About_SourceCode {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Text.About.SourceCode", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Opensource & Free Git GUI Client.
|
||||||
|
/// </summary>
|
||||||
|
public static string Text_About_SubTitle {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Text.About.SubTitle", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Patch.
|
/// Looks up a localized string similar to Patch.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -2994,7 +3013,7 @@ namespace SourceGit.Resources {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Open in.
|
/// Looks up a localized string similar to Open In External Tools.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string Text_Repository_OpenWith {
|
public static string Text_Repository_OpenWith {
|
||||||
get {
|
get {
|
||||||
|
@ -3111,7 +3130,7 @@ namespace SourceGit.Resources {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Open In Git Bash.
|
/// Looks up a localized string similar to Open In Terminal.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string Text_Repository_Terminal {
|
public static string Text_Repository_Terminal {
|
||||||
get {
|
get {
|
||||||
|
@ -3795,7 +3814,7 @@ namespace SourceGit.Resources {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Open In Git Bash.
|
/// Looks up a localized string similar to Open In Terminal.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string Text_Welcome_OpenTerminal {
|
public static string Text_Welcome_OpenTerminal {
|
||||||
get {
|
get {
|
||||||
|
|
|
@ -346,7 +346,7 @@
|
||||||
<value>Open In Fleet</value>
|
<value>Open In Fleet</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Repository.Terminal">
|
<data xml:space="preserve" name="Text.Repository.Terminal">
|
||||||
<value>Open In Git Bash</value>
|
<value>Open In Terminal</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Repository.Refresh">
|
<data xml:space="preserve" name="Text.Repository.Refresh">
|
||||||
<value>Refresh</value>
|
<value>Refresh</value>
|
||||||
|
@ -811,7 +811,7 @@
|
||||||
<value>Open Repository</value>
|
<value>Open Repository</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Welcome.OpenTerminal">
|
<data xml:space="preserve" name="Text.Welcome.OpenTerminal">
|
||||||
<value>Open In Git Bash</value>
|
<value>Open Terminal</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Welcome.Clone">
|
<data xml:space="preserve" name="Text.Welcome.Clone">
|
||||||
<value>Clone Repository</value>
|
<value>Clone Repository</value>
|
||||||
|
@ -1306,7 +1306,7 @@
|
||||||
<value>APPEARANCE</value>
|
<value>APPEARANCE</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Text.Repository.OpenWith" xml:space="preserve">
|
<data name="Text.Repository.OpenWith" xml:space="preserve">
|
||||||
<value>Open in</value>
|
<value>Open In External Tools</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Text.SelfUpdate.Title" xml:space="preserve">
|
<data name="Text.SelfUpdate.Title" xml:space="preserve">
|
||||||
<value>Software Update</value>
|
<value>Software Update</value>
|
||||||
|
@ -1332,4 +1332,10 @@
|
||||||
<data name="Text.Preference.General.Check4UpdatesOnStartup" xml:space="preserve">
|
<data name="Text.Preference.General.Check4UpdatesOnStartup" xml:space="preserve">
|
||||||
<value>Check for updates on startup</value>
|
<value>Check for updates on startup</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Text.About.SubTitle" xml:space="preserve">
|
||||||
|
<value>Opensource & Free Git GUI Client</value>
|
||||||
|
</data>
|
||||||
|
<data name="Text.About.SourceCode" xml:space="preserve">
|
||||||
|
<value>• Source code can be found at </value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -346,7 +346,7 @@
|
||||||
<value>Open In Fleet</value>
|
<value>Open In Fleet</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Repository.Terminal">
|
<data xml:space="preserve" name="Text.Repository.Terminal">
|
||||||
<value>Open In Git Bash</value>
|
<value>Open In Terminal</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Repository.Refresh">
|
<data xml:space="preserve" name="Text.Repository.Refresh">
|
||||||
<value>Refresh</value>
|
<value>Refresh</value>
|
||||||
|
@ -811,7 +811,7 @@
|
||||||
<value>Open Repository</value>
|
<value>Open Repository</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Welcome.OpenTerminal">
|
<data xml:space="preserve" name="Text.Welcome.OpenTerminal">
|
||||||
<value>Open In Git Bash</value>
|
<value>Open In Terminal</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Welcome.Clone">
|
<data xml:space="preserve" name="Text.Welcome.Clone">
|
||||||
<value>Clone Repository</value>
|
<value>Clone Repository</value>
|
||||||
|
@ -1306,7 +1306,7 @@
|
||||||
<value>Appearance</value>
|
<value>Appearance</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Text.Repository.OpenWith" xml:space="preserve">
|
<data name="Text.Repository.OpenWith" xml:space="preserve">
|
||||||
<value>Open in</value>
|
<value>Open In External Tools</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Text.SelfUpdate.Title" xml:space="preserve">
|
<data name="Text.SelfUpdate.Title" xml:space="preserve">
|
||||||
<value>Software Update</value>
|
<value>Software Update</value>
|
||||||
|
@ -1332,4 +1332,10 @@
|
||||||
<data name="Text.Preference.General.Check4UpdatesOnStartup" xml:space="preserve">
|
<data name="Text.Preference.General.Check4UpdatesOnStartup" xml:space="preserve">
|
||||||
<value>Check for updates on startup</value>
|
<value>Check for updates on startup</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Text.About.SubTitle" xml:space="preserve">
|
||||||
|
<value>Opensource & Free Git GUI Client</value>
|
||||||
|
</data>
|
||||||
|
<data name="Text.About.SourceCode" xml:space="preserve">
|
||||||
|
<value>• Source code can be found at </value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -94,7 +94,7 @@
|
||||||
<value>Copyright © 2024 sourcegit-scm.</value>
|
<value>Copyright © 2024 sourcegit-scm.</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.About.BuildWith">
|
<data xml:space="preserve" name="Text.About.BuildWith">
|
||||||
<value>• 使用的框架为 </value>
|
<value>• 项目依赖于 </value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.About.Editor">
|
<data xml:space="preserve" name="Text.About.Editor">
|
||||||
<value>• 文本编辑器使用 </value>
|
<value>• 文本编辑器使用 </value>
|
||||||
|
@ -340,10 +340,10 @@
|
||||||
<value>在文件浏览器中打开</value>
|
<value>在文件浏览器中打开</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Repository.VSCode">
|
<data xml:space="preserve" name="Text.Repository.VSCode">
|
||||||
<value>在Visual Studio Code中打开</value>
|
<value>在 Visual Studio Code 中打开</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Repository.Terminal">
|
<data xml:space="preserve" name="Text.Repository.Terminal">
|
||||||
<value>在GIT终端中打开</value>
|
<value>在终端中打开</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Repository.Refresh">
|
<data xml:space="preserve" name="Text.Repository.Refresh">
|
||||||
<value>重新加载</value>
|
<value>重新加载</value>
|
||||||
|
@ -808,7 +808,7 @@
|
||||||
<value>打开本地仓库</value>
|
<value>打开本地仓库</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Welcome.OpenTerminal">
|
<data xml:space="preserve" name="Text.Welcome.OpenTerminal">
|
||||||
<value>打开GIT终端</value>
|
<value>打开终端</value>
|
||||||
</data>
|
</data>
|
||||||
<data xml:space="preserve" name="Text.Welcome.Clone">
|
<data xml:space="preserve" name="Text.Welcome.Clone">
|
||||||
<value>克隆远程仓库</value>
|
<value>克隆远程仓库</value>
|
||||||
|
@ -1326,4 +1326,16 @@
|
||||||
<data name="Text.Preference.General.Check4UpdatesOnStartup" xml:space="preserve">
|
<data name="Text.Preference.General.Check4UpdatesOnStartup" xml:space="preserve">
|
||||||
<value>启动时检测软件更新</value>
|
<value>启动时检测软件更新</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Text.About.SubTitle" xml:space="preserve">
|
||||||
|
<value>开源免费的Git客户端</value>
|
||||||
|
</data>
|
||||||
|
<data name="Text.Repository.OpenWith" xml:space="preserve">
|
||||||
|
<value>使用外部工具打开</value>
|
||||||
|
</data>
|
||||||
|
<data name="Text.About.SourceCode" xml:space="preserve">
|
||||||
|
<value>• 项目源代码地址 </value>
|
||||||
|
</data>
|
||||||
|
<data name="Text.Repository.Fleet" xml:space="preserve">
|
||||||
|
<value>在 Fleet 中打开</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -64,9 +64,10 @@
|
||||||
Width="200" Height="200"
|
Width="200" Height="200"
|
||||||
Margin="8,0"
|
Margin="8,0"
|
||||||
Source="/App.ico"
|
Source="/App.ico"
|
||||||
HorizontalAlignment="Center"/>
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center"/>
|
||||||
|
|
||||||
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="0,20,32,0">
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="0,8,32,8">
|
||||||
<StackPanel Height="48" Orientation="Horizontal">
|
<StackPanel Height="48" Orientation="Horizontal">
|
||||||
<TextBlock Classes="bold" Text="SourceGit" FontSize="32" />
|
<TextBlock Classes="bold" Text="SourceGit" FontSize="32" />
|
||||||
<Border Margin="12,0,0,0" Height="20" CornerRadius="10" Background="{DynamicResource Brush.Accent1}" Effect="drop-shadow(0 0 6 #40000000)">
|
<Border Margin="12,0,0,0" Height="20" CornerRadius="10" Background="{DynamicResource Brush.Accent1}" Effect="drop-shadow(0 0 6 #40000000)">
|
||||||
|
@ -74,16 +75,15 @@
|
||||||
</Border>
|
</Border>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<TextBlock Margin="2,0,0,0" Text="{DynamicResource Text.About.Copyright}" Foreground="{DynamicResource Brush.FG2}"/>
|
<TextBlock Margin="2,0,0,0" Text="{DynamicResource Text.About.SubTitle}" FontSize="16"/>
|
||||||
|
|
||||||
<StackPanel Orientation="Vertical" Margin="0,28,0,0">
|
<TextBlock Margin="2,8,0,0" Text="{DynamicResource Text.About.Copyright}" Foreground="{DynamicResource Brush.FG2}"/>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Vertical" Margin="0,24,0,0">
|
||||||
<StackPanel Orientation="Horizontal" Height="18">
|
<StackPanel Orientation="Horizontal" Height="18">
|
||||||
<TextBlock Text="{DynamicResource Text.About.BuildWith}" />
|
<TextBlock Text="{DynamicResource Text.About.BuildWith}" />
|
||||||
<TextBlock Text="Avalonia UI" Cursor="Hand" Foreground="{DynamicResource Brush.Accent1}" TextDecorations="Underline" PointerPressed="OnVisitAvaloniaUI"/>
|
<TextBlock Text="Avalonia UI" Cursor="Hand" Foreground="{DynamicResource Brush.Accent1}" TextDecorations="Underline" PointerPressed="OnVisitAvaloniaUI"/>
|
||||||
</StackPanel>
|
<TextBlock Text=" & " />
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" Height="18" Margin="0,2,0,0">
|
|
||||||
<TextBlock Text="{DynamicResource Text.About.Editor}" />
|
|
||||||
<TextBlock Text="AvaloniaEdit" Cursor="Hand" Foreground="{DynamicResource Brush.Accent1}" TextDecorations="Underline" PointerPressed="OnVisitAvaloniaEdit"/>
|
<TextBlock Text="AvaloniaEdit" Cursor="Hand" Foreground="{DynamicResource Brush.Accent1}" TextDecorations="Underline" PointerPressed="OnVisitAvaloniaEdit"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
@ -91,6 +91,11 @@
|
||||||
<TextBlock Text="{DynamicResource Text.About.Fonts}" />
|
<TextBlock Text="{DynamicResource Text.About.Fonts}" />
|
||||||
<TextBlock Text="JetBrains Mono" Cursor="Hand" Foreground="{DynamicResource Brush.Accent1}" TextDecorations="Underline" PointerPressed="OnVisitJetBrainsMonoFont"/>
|
<TextBlock Text="JetBrains Mono" Cursor="Hand" Foreground="{DynamicResource Brush.Accent1}" TextDecorations="Underline" PointerPressed="OnVisitJetBrainsMonoFont"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Horizontal" Height="18" Margin="0,2,0,0">
|
||||||
|
<TextBlock Text="{DynamicResource Text.About.SourceCode}" />
|
||||||
|
<TextBlock Text="Github" Cursor="Hand" Foreground="{DynamicResource Brush.Accent1}" TextDecorations="Underline" PointerPressed="OnVisitSourceCode"/>
|
||||||
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
@ -49,5 +49,11 @@ namespace SourceGit.Views
|
||||||
Native.OS.OpenBrowser("https://www.jetbrains.com/lp/mono/");
|
Native.OS.OpenBrowser("https://www.jetbrains.com/lp/mono/");
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnVisitSourceCode(object sender, PointerPressedEventArgs e)
|
||||||
|
{
|
||||||
|
Native.OS.OpenBrowser("https://github.com/sourcegit-scm/sourcegit");
|
||||||
|
e.Handled = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue