mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
feature: add tooltip for page tab (#302)
This commit is contained in:
parent
f55a576013
commit
2e87f83a38
4 changed files with 10 additions and 0 deletions
|
@ -553,6 +553,7 @@
|
||||||
<x:String x:Key="Text.UpdateSubmodules.Target" xml:space="preserve">Submodule:</x:String>
|
<x:String x:Key="Text.UpdateSubmodules.Target" xml:space="preserve">Submodule:</x:String>
|
||||||
<x:String x:Key="Text.UpdateSubmodules.UseRemote" xml:space="preserve">Use --remote option</x:String>
|
<x:String x:Key="Text.UpdateSubmodules.UseRemote" xml:space="preserve">Use --remote option</x:String>
|
||||||
<x:String x:Key="Text.Warn" xml:space="preserve">Warning</x:String>
|
<x:String x:Key="Text.Warn" xml:space="preserve">Warning</x:String>
|
||||||
|
<x:String x:Key="Text.Welcome" xml:space="preserve">Welcome Page</x:String>
|
||||||
<x:String x:Key="Text.Welcome.AddRootFolder" xml:space="preserve">Create Group</x:String>
|
<x:String x:Key="Text.Welcome.AddRootFolder" xml:space="preserve">Create Group</x:String>
|
||||||
<x:String x:Key="Text.Welcome.AddSubFolder" xml:space="preserve">Create Sub-Group</x:String>
|
<x:String x:Key="Text.Welcome.AddSubFolder" xml:space="preserve">Create Sub-Group</x:String>
|
||||||
<x:String x:Key="Text.Welcome.Clone" xml:space="preserve">Clone Repository</x:String>
|
<x:String x:Key="Text.Welcome.Clone" xml:space="preserve">Clone Repository</x:String>
|
||||||
|
|
|
@ -555,6 +555,7 @@
|
||||||
<x:String x:Key="Text.UpdateSubmodules.Target" xml:space="preserve">子模块 :</x:String>
|
<x:String x:Key="Text.UpdateSubmodules.Target" xml:space="preserve">子模块 :</x:String>
|
||||||
<x:String x:Key="Text.UpdateSubmodules.UseRemote" xml:space="preserve">启用 '--remote'</x:String>
|
<x:String x:Key="Text.UpdateSubmodules.UseRemote" xml:space="preserve">启用 '--remote'</x:String>
|
||||||
<x:String x:Key="Text.Warn" xml:space="preserve">警告</x:String>
|
<x:String x:Key="Text.Warn" xml:space="preserve">警告</x:String>
|
||||||
|
<x:String x:Key="Text.Welcome" xml:space="preserve">起始页</x:String>
|
||||||
<x:String x:Key="Text.Welcome.AddRootFolder" xml:space="preserve">新建分组</x:String>
|
<x:String x:Key="Text.Welcome.AddRootFolder" xml:space="preserve">新建分组</x:String>
|
||||||
<x:String x:Key="Text.Welcome.AddSubFolder" xml:space="preserve">新建子分组</x:String>
|
<x:String x:Key="Text.Welcome.AddSubFolder" xml:space="preserve">新建子分组</x:String>
|
||||||
<x:String x:Key="Text.Welcome.Clone" xml:space="preserve">克隆远程仓库</x:String>
|
<x:String x:Key="Text.Welcome.Clone" xml:space="preserve">克隆远程仓库</x:String>
|
||||||
|
|
|
@ -555,6 +555,7 @@
|
||||||
<x:String x:Key="Text.UpdateSubmodules.Target" xml:space="preserve">子模組 :</x:String>
|
<x:String x:Key="Text.UpdateSubmodules.Target" xml:space="preserve">子模組 :</x:String>
|
||||||
<x:String x:Key="Text.UpdateSubmodules.UseRemote" xml:space="preserve">啟用『--remote』選項</x:String>
|
<x:String x:Key="Text.UpdateSubmodules.UseRemote" xml:space="preserve">啟用『--remote』選項</x:String>
|
||||||
<x:String x:Key="Text.Warn" xml:space="preserve">警告</x:String>
|
<x:String x:Key="Text.Warn" xml:space="preserve">警告</x:String>
|
||||||
|
<x:String x:Key="Text.Welcome" xml:space="preserve">起始頁</x:String>
|
||||||
<x:String x:Key="Text.Welcome.AddRootFolder" xml:space="preserve">新建分組</x:String>
|
<x:String x:Key="Text.Welcome.AddRootFolder" xml:space="preserve">新建分組</x:String>
|
||||||
<x:String x:Key="Text.Welcome.AddSubFolder" xml:space="preserve">新建子分組</x:String>
|
<x:String x:Key="Text.Welcome.AddSubFolder" xml:space="preserve">新建子分組</x:String>
|
||||||
<x:String x:Key="Text.Welcome.Clone" xml:space="preserve">克隆遠端倉庫</x:String>
|
<x:String x:Key="Text.Welcome.Clone" xml:space="preserve">克隆遠端倉庫</x:String>
|
||||||
|
|
|
@ -42,6 +42,13 @@
|
||||||
PointerReleased="OnPointerReleasedTab"
|
PointerReleased="OnPointerReleasedTab"
|
||||||
Loaded="SetupDragAndDrop"
|
Loaded="SetupDragAndDrop"
|
||||||
ContextRequested="OnTabContextRequested">
|
ContextRequested="OnTabContextRequested">
|
||||||
|
<ToolTip.Tip>
|
||||||
|
<Grid>
|
||||||
|
<TextBlock Text="{DynamicResource Text.Welcome}" IsVisible="{Binding !Node.IsRepository}"/>
|
||||||
|
<TextBlock Text="{Binding Node.Id}" IsVisible="{Binding Node.IsRepository}"/>
|
||||||
|
</Grid>
|
||||||
|
</ToolTip.Tip>
|
||||||
|
|
||||||
<Grid Width="{Binding Source={x:Static vm:Preference.Instance}, Path=UseFixedTabWidth, Converter={x:Static c:BoolConverters.ToPageTabWidth}}" Height="30" ColumnDefinitions="Auto,*,Auto" VerticalAlignment="Center">
|
<Grid Width="{Binding Source={x:Static vm:Preference.Instance}, Path=UseFixedTabWidth, Converter={x:Static c:BoolConverters.ToPageTabWidth}}" Height="30" ColumnDefinitions="Auto,*,Auto" VerticalAlignment="Center">
|
||||||
<Path Grid.Column="0"
|
<Path Grid.Column="0"
|
||||||
Width="12" Height="12" Margin="12,0"
|
Width="12" Height="12" Margin="12,0"
|
||||||
|
|
Loading…
Reference in a new issue