|
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 | 3 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:m="using:SourceGit.Models" |
5 | 6 | xmlns:vm="using:SourceGit.ViewModels" |
6 | 7 | xmlns:v="using:SourceGit.Views" |
7 | 8 | xmlns:c="using:SourceGit.Converters" |
|
84 | 85 |
|
85 | 86 | <ListBox.ItemTemplate> |
86 | 87 | <DataTemplate DataType="vm:LauncherPage"> |
87 | | - <Grid ColumnDefinitions="Auto,6,*" Background="Transparent" Tapped="OnItemTapped"> |
| 88 | + <Grid ColumnDefinitions="Auto,6,Auto,6,*" Background="Transparent" Tapped="OnItemTapped"> |
| 89 | + <ToolTip.Tip> |
| 90 | + <Grid> |
| 91 | + <TextBlock Text="{DynamicResource Text.Welcome}" IsVisible="{Binding !Node.IsRepository}"/> |
| 92 | + <StackPanel Orientation="Horizontal" IsVisible="{Binding Node.IsRepository}"> |
| 93 | + <TextBlock Text="{Binding Node.Id}"/> |
| 94 | + <TextBlock Text="{Binding DirtyState, Converter={x:Static c:DirtyStateConverters.ToDesc}}" |
| 95 | + Foreground="{DynamicResource Brush.FG2}"/> |
| 96 | + </StackPanel> |
| 97 | + </Grid> |
| 98 | + </ToolTip.Tip> |
88 | 99 | <v:Bookmark Grid.Column="0" |
89 | 100 | Width="12" Height="12" |
90 | 101 | Value="{Binding Node.Bookmark, Mode=OneWay}" |
|
95 | 106 | Data="{StaticResource Icons.Repositories}" |
96 | 107 | IsVisible="{Binding !Node.IsRepository}" |
97 | 108 | IsHitTestVisible="False"/> |
98 | | - <TextBlock Grid.Column="2" |
| 109 | + <Ellipse Grid.Column="2" |
| 110 | + Width="8" Height="8" |
| 111 | + VerticalAlignment="Center" |
| 112 | + IsVisible="{Binding DirtyState, Converter={x:Static ObjectConverters.NotEqual}, ConverterParameter={x:Static m:DirtyState.None}}" |
| 113 | + Fill="{Binding DirtyState, Converter={x:Static c:DirtyStateConverters.ToBrush}}"/> |
| 114 | + <TextBlock Grid.Column="4" |
99 | 115 | VerticalAlignment="Center" |
100 | 116 | Text="{Binding Node.Name}" |
101 | 117 | IsVisible="{Binding Node.IsRepository}" |
102 | 118 | IsHitTestVisible="False"/> |
103 | | - <TextBlock Grid.Column="2" |
| 119 | + <TextBlock Grid.Column="4" |
104 | 120 | VerticalAlignment="Center" |
105 | 121 | Text="{DynamicResource Text.PageTabBar.Welcome.Title}" |
106 | 122 | IsVisible="{Binding !Node.IsRepository}" |
|
0 commit comments