|
158 | 158 | IsVisible="{Binding IsInvalid}"/> |
159 | 159 | </StackPanel> |
160 | 160 |
|
161 | | - <StackPanel Grid.Column="3" Orientation="Horizontal" IsVisible="{Binding IsRepository}"> |
162 | | - <Border Margin="3,0,0,0" |
163 | | - Height="18" |
164 | | - CornerRadius="9" |
165 | | - Padding="6,0" |
166 | | - Background="{DynamicResource Brush.FG1}" |
167 | | - VerticalAlignment="Center" |
168 | | - IsVisible="{Binding LocalChanges, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
169 | | - <TextBlock Text="{Binding LocalChanges}" |
170 | | - FontFamily="{DynamicResource Fonts.Monospace}" |
171 | | - FontSize="11" |
172 | | - Foreground="{DynamicResource Brush.Window}"/> |
173 | | - </Border> |
174 | | - |
175 | | - <ContentControl Margin="3,0,0,0" |
176 | | - Content="{Binding CurrentBranch}" |
177 | | - IsVisible="{Binding CurrentBranch, Converter={x:Static ObjectConverters.IsNotNull}}"> |
178 | | - <ContentControl.DataTemplates> |
179 | | - <DataTemplate DataType="m:Branch"> |
180 | | - <StackPanel Orientation="Horizontal"> |
181 | | - <TextBlock Margin="3,0" |
182 | | - Text="{Binding TrackStatusDescription}" |
| 161 | + <ContentControl Grid.Column="3" |
| 162 | + Content="{Binding Status, Mode=OneWay}" |
| 163 | + IsVisible="{Binding Status, Converter={x:Static ObjectConverters.NotEqual}}"> |
| 164 | + <ContentControl.DataTemplates> |
| 165 | + <DataTemplate DataType="m:RepositoryStatus"> |
| 166 | + <StackPanel Orientation="Horizontal"> |
| 167 | + <Border Margin="3,0" |
| 168 | + Height="18" |
| 169 | + CornerRadius="9" |
| 170 | + Padding="6,0" |
| 171 | + Background="{DynamicResource Brush.FG1}" |
| 172 | + VerticalAlignment="Center" |
| 173 | + IsVisible="{Binding LocalChanges, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
| 174 | + <TextBlock Text="{Binding LocalChanges}" |
183 | 175 | FontFamily="{DynamicResource Fonts.Monospace}" |
184 | | - FontSize="12" |
185 | | - IsVisible="{Binding IsTrackStatusVisible}"/> |
| 176 | + FontSize="11" |
| 177 | + Foreground="{DynamicResource Brush.Window}"/> |
| 178 | + </Border> |
186 | 179 |
|
187 | | - <Border Margin="3,0,0,0" |
188 | | - BorderThickness="1" |
189 | | - BorderBrush="{DynamicResource Brush.FG2}" |
190 | | - Height="20" |
191 | | - CornerRadius="4" |
192 | | - Padding="4,0"> |
193 | | - <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> |
194 | | - <Path Width="12" Height="12" Data="{StaticResource Icons.Branch}"/> |
195 | | - <TextBlock Margin="2,0,0,0" Text="{Binding Name}" FontSize="12"/> |
196 | | - </StackPanel> |
197 | | - </Border> |
198 | | - </StackPanel> |
199 | | - </DataTemplate> |
200 | | - </ContentControl.DataTemplates> |
201 | | - </ContentControl> |
202 | | - </StackPanel> |
| 180 | + <TextBlock Margin="3,0" |
| 181 | + Text="{Binding TrackingDescription}" |
| 182 | + FontFamily="{DynamicResource Fonts.Monospace}" |
| 183 | + FontSize="12" |
| 184 | + IsVisible="{Binding IsTrackingStatusVisible}"/> |
| 185 | + |
| 186 | + <Border Margin="3,0,0,0" |
| 187 | + BorderThickness="1" |
| 188 | + BorderBrush="{DynamicResource Brush.FG2}" |
| 189 | + Height="20" |
| 190 | + CornerRadius="4" |
| 191 | + Padding="4,0"> |
| 192 | + <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> |
| 193 | + <Path Width="12" Height="12" Data="{StaticResource Icons.Branch}"/> |
| 194 | + <TextBlock Margin="2,0,0,0" Text="{Binding CurrentBranch}" FontSize="12"/> |
| 195 | + </StackPanel> |
| 196 | + </Border> |
| 197 | + </StackPanel> |
| 198 | + </DataTemplate> |
| 199 | + </ContentControl.DataTemplates> |
| 200 | + </ContentControl> |
203 | 201 | </Grid> |
204 | 202 | </DataTemplate> |
205 | 203 | </ListBox.ItemTemplate> |
|
0 commit comments