Skip to content

Commit 905db5c

Browse files
committed
ux: show count of stashes and changes in selected stash
1 parent fbf1d5a commit 905db5c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Views/StashesPage.axaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
<Grid Grid.Column="0" RowDefinitions="28,*,28,*">
2121
<!-- Stash Bar -->
2222
<Border Grid.Row="0" BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}">
23-
<Grid ColumnDefinitions="Auto,Auto,*,Auto">
23+
<Grid ColumnDefinitions="Auto,Auto,Auto,*,Auto">
2424
<Path Grid.Column="0" Margin="8,0,0,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG2}" Data="{StaticResource Icons.Stashes}"/>
2525
<TextBlock Grid.Column="1" Text="{DynamicResource Text.Stashes.Stashes}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="8,0,0,0"/>
26-
27-
<Button Grid.Column="3"
26+
<TextBlock Grid.Column="2" Text="{Binding Stashes, Converter={x:Static c:ListConverters.ToCount}}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold"/>
27+
<Button Grid.Column="4"
2828
Classes="icon_button"
2929
Width="26" Height="14"
3030
Padding="0"
@@ -80,9 +80,10 @@
8080

8181
<!-- Changes Bar -->
8282
<Border Grid.Row="2" BorderThickness="0,1" BorderBrush="{DynamicResource Brush.Border0}">
83-
<Grid ColumnDefinitions="Auto,Auto,Auto,*,Auto">
83+
<Grid ColumnDefinitions="Auto,Auto,*">
8484
<Path Grid.Column="0" Margin="8,0,0,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG2}" Data="{StaticResource Icons.File}"/>
8585
<TextBlock Grid.Column="1" Text="{DynamicResource Text.Stashes.Changes}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="8,0,0,0"/>
86+
<TextBlock Grid.Column="2" Text="{Binding Changes, Converter={x:Static c:ListConverters.ToCount}}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold"/>
8687
</Grid>
8788
</Border>
8889

0 commit comments

Comments
 (0)