mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
ux: repository left panel layout
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
fd5c1f5105
commit
ea4e968404
3 changed files with 6 additions and 5 deletions
|
@ -256,7 +256,7 @@
|
|||
<ListBox Grid.Row="7"
|
||||
x:Name="SubmoduleList"
|
||||
Height="0"
|
||||
Margin="8,0,4,0"
|
||||
Margin="12,0,4,0"
|
||||
Classes="repo_left_content_list"
|
||||
ItemsSource="{Binding VisibleSubmodules}"
|
||||
SelectionMode="Single"
|
||||
|
@ -312,7 +312,7 @@
|
|||
<ListBox Grid.Row="9"
|
||||
x:Name="WorktreeList"
|
||||
Height="0"
|
||||
Margin="8,0,4,0"
|
||||
Margin="12,0,4,0"
|
||||
Classes="repo_left_content_list"
|
||||
ItemsSource="{Binding Worktrees}"
|
||||
SelectionMode="Single"
|
||||
|
|
|
@ -60,6 +60,7 @@
|
|||
|
||||
<DataTemplate DataType="vm:TagCollectionAsList">
|
||||
<ListBox Classes="repo_left_content_list"
|
||||
Margin="12,0,0,0"
|
||||
ItemsSource="{Binding Tags}"
|
||||
SelectionMode="Single"
|
||||
SelectionChanged="OnRowSelectionChanged">
|
||||
|
@ -70,8 +71,8 @@
|
|||
ContextRequested="OnRowContextRequested"
|
||||
ToolTip.Tip="{Binding Message}">
|
||||
<Path Grid.Column="0"
|
||||
Width="10" Height="10"
|
||||
Margin="8,0,0,0"
|
||||
Margin="4,0,0,0"
|
||||
Width="12" Height="12"
|
||||
Data="{StaticResource Icons.Tag}"/>
|
||||
|
||||
<TextBlock Grid.Column="1"
|
||||
|
|
|
@ -65,7 +65,7 @@ namespace SourceGit.Views
|
|||
}
|
||||
|
||||
if (node.Tag != null)
|
||||
CreateContent(new Thickness(0, 2, 0, 0), "Icons.Tag");
|
||||
CreateContent(new Thickness(0, 0, 0, 0), "Icons.Tag");
|
||||
else if (node.IsExpanded)
|
||||
CreateContent(new Thickness(0, 2, 0, 0), "Icons.Folder.Open");
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue