Skip to content

Commit c6ece81

Browse files
committed
ux: add tooltip for release notes
Signed-off-by: leo <[email protected]>
1 parent d4aa328 commit c6ece81

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/Resources/Locales/en_US.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
22
<x:String x:Key="Text.About" xml:space="preserve">About</x:String>
33
<x:String x:Key="Text.About.Menu" xml:space="preserve">About SourceGit</x:String>
4+
<x:String x:Key="Text.About.ReleaseNotes" xml:space="preserve">Release Notes</x:String>
45
<x:String x:Key="Text.About.SubTitle" xml:space="preserve">Opensource &amp; Free Git GUI Client</x:String>
56
<x:String x:Key="Text.AddToIgnore" xml:space="preserve">Add File(s) To Ignore</x:String>
67
<x:String x:Key="Text.AddToIgnore.Pattern" xml:space="preserve">Pattern:</x:String>

src/Resources/Locales/zh_CN.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

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

src/Resources/Locales/zh_TW.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
<x:String x:Key="Text.About" xml:space="preserve">關於</x:String>
77
<x:String x:Key="Text.About.Menu" xml:space="preserve">關於 SourceGit</x:String>
8+
<x:String x:Key="Text.About.ReleaseNotes" xml:space="preserve">版本說明</x:String>
89
<x:String x:Key="Text.About.SubTitle" xml:space="preserve">開源免費的 Git 客戶端</x:String>
910
<x:String x:Key="Text.AddToIgnore" xml:space="preserve">新增忽略檔案</x:String>
1011
<x:String x:Key="Text.AddToIgnore.Pattern" xml:space="preserve">比對模式: </x:String>

src/Views/About.axaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
Background="{DynamicResource Brush.Accent}"
5151
Effect="drop-shadow(0 0 6 #40000000)"
5252
Cursor="Hand"
53-
PointerPressed="OnVisitReleaseNotes">
53+
PointerPressed="OnVisitReleaseNotes"
54+
ToolTip.Tip="{DynamicResource Text.About.ReleaseNotes}">
5455
<TextBlock x:Name="TxtVersion" Classes="primary" Margin="8,0" FontSize="12" Foreground="White"/>
5556
</Border>
5657
</StackPanel>

0 commit comments

Comments
 (0)