ux: add tooltip for release notes

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-09-22 21:29:42 +08:00
parent d4aa328f25
commit c6ece81b07
4 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:String x:Key="Text.About" xml:space="preserve">About</x:String>
<x:String x:Key="Text.About.Menu" xml:space="preserve">About SourceGit</x:String>
<x:String x:Key="Text.About.ReleaseNotes" xml:space="preserve">Release Notes</x:String>
<x:String x:Key="Text.About.SubTitle" xml:space="preserve">Opensource &amp; Free Git GUI Client</x:String>
<x:String x:Key="Text.AddToIgnore" xml:space="preserve">Add File(s) To Ignore</x:String>
<x:String x:Key="Text.AddToIgnore.Pattern" xml:space="preserve">Pattern:</x:String>

View File

@@ -5,6 +5,7 @@
<x:String x:Key="Text.About" xml:space="preserve">关于软件</x:String>
<x:String x:Key="Text.About.Menu" xml:space="preserve">关于本软件</x:String>
<x:String x:Key="Text.About.ReleaseNotes" xml:space="preserve">浏览版本更新说明</x:String>
<x:String x:Key="Text.About.SubTitle" xml:space="preserve">开源免费的Git客户端</x:String>
<x:String x:Key="Text.AddToIgnore" xml:space="preserve">新增忽略文件</x:String>
<x:String x:Key="Text.AddToIgnore.Pattern" xml:space="preserve">匹配模式 </x:String>

View File

@@ -5,6 +5,7 @@
<x:String x:Key="Text.About" xml:space="preserve">關於</x:String>
<x:String x:Key="Text.About.Menu" xml:space="preserve">關於 SourceGit</x:String>
<x:String x:Key="Text.About.ReleaseNotes" xml:space="preserve">版本說明</x:String>
<x:String x:Key="Text.About.SubTitle" xml:space="preserve">開源免費的 Git 客戶端</x:String>
<x:String x:Key="Text.AddToIgnore" xml:space="preserve">新增忽略檔案</x:String>
<x:String x:Key="Text.AddToIgnore.Pattern" xml:space="preserve">比對模式: </x:String>

View File

@@ -50,7 +50,8 @@
Background="{DynamicResource Brush.Accent}"
Effect="drop-shadow(0 0 6 #40000000)"
Cursor="Hand"
PointerPressed="OnVisitReleaseNotes">
PointerPressed="OnVisitReleaseNotes"
ToolTip.Tip="{DynamicResource Text.About.ReleaseNotes}">
<TextBlock x:Name="TxtVersion" Classes="primary" Margin="8,0" FontSize="12" Foreground="White"/>
</Border>
</StackPanel>