From 5e6059ba366d21532d340a40c44ed052aad6fe4a Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 29 Apr 2024 15:22:06 +0800 Subject: [PATCH] ux: hotkey tooltip in buttons --- src/Resources/Locales/en_US.axaml | 4 ++-- src/Resources/Locales/zh_CN.axaml | 6 +++--- src/Views/Launcher.axaml | 19 +++++++++++++++---- src/Views/Repository.axaml | 9 +++++++-- src/Views/WorkingCopy.axaml | 16 ++++++++++++++-- 5 files changed, 41 insertions(+), 13 deletions(-) diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml index fed4f46b..0d7a3072 100644 --- a/src/Resources/Locales/en_US.axaml +++ b/src/Resources/Locales/en_US.axaml @@ -243,7 +243,7 @@ SELECT FOLDER Open With ... Optional. - Create New Page (Ctrl+T) + Create New Page Bookmark Close Tab Close Other Tabs @@ -340,7 +340,7 @@ REMOTES ADD REMOTE RESOLVE - Search Commit (Ctrl+F) + Search Commit Search Author/Committer/Message/SHA Statistics SUBMODULES diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml index c2500d54..1b817c3b 100644 --- a/src/Resources/Locales/zh_CN.axaml +++ b/src/Resources/Locales/zh_CN.axaml @@ -243,9 +243,9 @@ 选择文件夹 打开文件... 选填。 - 新建空白页 (Ctrl+T) + 新建空白页 设置书签 - 关闭标签页 (Ctrl+W) + 关闭标签页 关闭其他标签页 关闭右侧标签页 复制仓库路径 @@ -340,7 +340,7 @@ 远程列表 添加远程 解决冲突 - 查找提交(Ctrl+F) + 查找提交 支持搜索作者/提交者/主题/指纹 提交统计 子模块列表 diff --git a/src/Views/Launcher.axaml b/src/Views/Launcher.axaml index ab3e9dd0..5b6003dd 100644 --- a/src/Views/Launcher.axaml +++ b/src/Views/Launcher.axaml @@ -199,8 +199,13 @@ Classes="icon_button" Width="16" Height="16" Margin="12,0" Command="{Binding #me.DataContext.(vm:Launcher).CloseTab}" - CommandParameter="{Binding}" - ToolTip.Tip="{DynamicResource Text.PageTabBar.Tab.Close}"> + CommandParameter="{Binding}"> + + + + + + @@ -222,8 +227,14 @@ Width="16" Height="16" Margin="8,0" Command="{Binding AddNewTab}" - HotKey="Ctrl+T" - ToolTip.Tip="{DynamicResource Text.PageTabBar.New}"> + HotKey="Ctrl+T"> + + + + + + + diff --git a/src/Views/Repository.axaml b/src/Views/Repository.axaml index 9f450c77..8a0ec5ce 100644 --- a/src/Views/Repository.axaml +++ b/src/Views/Repository.axaml @@ -28,8 +28,13 @@ + IsChecked="{Binding IsSearching, Mode=TwoWay}"> + + + + + + diff --git a/src/Views/WorkingCopy.axaml b/src/Views/WorkingCopy.axaml index 57931284..0dded0ad 100644 --- a/src/Views/WorkingCopy.axaml +++ b/src/Views/WorkingCopy.axaml @@ -43,7 +43,13 @@ Classes="icon_button" Width="26" Height="14" Padding="0" - ToolTip.Tip="{DynamicResource Text.WorkingCopy.Unstaged.Stage}" Click="StageSelected"> + Click="StageSelected"> + + + + + +