|
19 | 19 | <Grid Grid.Column="0" RowDefinitions="28,*,28,*">
|
20 | 20 | <!-- Unstaged Toolbar -->
|
21 | 21 | <Border Grid.Row="0" BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}">
|
22 |
| - <Grid ColumnDefinitions="Auto,Auto,Auto,Auto,*,Auto,Auto,Auto,Auto"> |
23 |
| - <v:ChangeViewModeSwitcher Grid.Column="0" Width="12" Height="12" Margin="8,0,0,0" ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=UnstagedChangeViewMode, Mode=TwoWay}"/> |
24 |
| - <TextBlock Grid.Column="1" Text="{DynamicResource Text.WorkingCopy.Unstaged}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="8,0,0,0"/> |
| 22 | + <Grid ColumnDefinitions="Auto,Auto,Auto,Auto,*,Auto,Auto,Auto,Auto,Auto"> |
| 23 | + <Path Grid.Column="0" Margin="8,0,0,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG2}" Data="{StaticResource Icons.Changes}"/> |
| 24 | + <TextBlock Grid.Column="1" Text="{DynamicResource Text.WorkingCopy.Unstaged}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="4,0,0,0"/> |
25 | 25 | <TextBlock Grid.Column="2" FontWeight="Bold" Foreground="{DynamicResource Brush.FG2}" Text="{Binding Unstaged, Converter={x:Static c:ListConverters.ToCount}}"/>
|
26 | 26 | <v:LoadingIcon Grid.Column="3" Width="14" Height="14" Margin="8,0,0,0" IsVisible="{Binding IsStaging}"/>
|
27 | 27 |
|
|
59 | 59 | Command="{Binding StageAll}">
|
60 | 60 | <Path Width="14" Height="14" Data="{StaticResource Icons.DoubleDown}"/>
|
61 | 61 | </Button>
|
| 62 | + <v:ChangeViewModeSwitcher Grid.Column="9" |
| 63 | + Width="26" Height="14" |
| 64 | + Margin="0,1,0,0" |
| 65 | + ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=UnstagedChangeViewMode, Mode=TwoWay}"/> |
62 | 66 | </Grid>
|
63 | 67 | </Border>
|
64 | 68 |
|
|
78 | 82 |
|
79 | 83 | <!-- Staged Toolbar -->
|
80 | 84 | <Border Grid.Row="2" BorderThickness="0,1" BorderBrush="{DynamicResource Brush.Border0}">
|
81 |
| - <Grid ColumnDefinitions="Auto,Auto,Auto,Auto,*,Auto,Auto"> |
82 |
| - <v:ChangeViewModeSwitcher Grid.Column="0" Width="12" Height="12" Margin="8,0,0,0" ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=StagedChangeViewMode, Mode=TwoWay}"/> |
83 |
| - <TextBlock Grid.Column="1" Text="{DynamicResource Text.WorkingCopy.Staged}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="8,0,0,0"/> |
| 85 | + <Grid ColumnDefinitions="Auto,Auto,Auto,Auto,*,Auto,Auto,Auto"> |
| 86 | + <Path Grid.Column="0" Margin="8,0,0,0" Width="14" Height="14" Fill="{DynamicResource Brush.FG2}" Data="{StaticResource Icons.Changes}"/> |
| 87 | + <TextBlock Grid.Column="1" Text="{DynamicResource Text.WorkingCopy.Staged}" Foreground="{DynamicResource Brush.FG2}" FontWeight="Bold" Margin="4,0,0,0"/> |
84 | 88 | <TextBlock Grid.Column="2" FontWeight="Bold" Foreground="{DynamicResource Brush.FG2}" Text="{Binding Staged, Converter={x:Static c:ListConverters.ToCount}}"/>
|
85 | 89 | <v:LoadingIcon Grid.Column="3" Width="14" Height="14" Margin="8,0,0,0" IsVisible="{Binding IsUnstaging}"/>
|
86 | 90 | <Button Grid.Column="5" Classes="icon_button" Width="26" Height="14" Padding="0" Click="OnUnstageSelectedButtonClicked">
|
|
95 | 99 | <Button Grid.Column="6" Classes="icon_button" Width="26" Height="14" Padding="0" ToolTip.Tip="{DynamicResource Text.WorkingCopy.Staged.UnstageAll}" Command="{Binding UnstageAll}">
|
96 | 100 | <Path Width="14" Height="14" Data="{StaticResource Icons.DoubleUp}"/>
|
97 | 101 | </Button>
|
| 102 | + <v:ChangeViewModeSwitcher Grid.Column="7" |
| 103 | + Width="26" Height="14" |
| 104 | + Margin="0,1,0,0" |
| 105 | + ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=StagedChangeViewMode, Mode=TwoWay}"/> |
98 | 106 | </Grid>
|
99 | 107 | </Border>
|
100 | 108 |
|
|
0 commit comments