|
73 | 73 | IsVisible="{Binding Source={x:Static vm:Preferences.Instance}, Path=HighlightImageDiffChanges}"/> |
74 | 74 | </StackPanel> |
75 | 75 | </Border> |
| 76 | + |
| 77 | + <Rectangle Width="1" Height="14" Fill="{DynamicResource Brush.Border1}" Margin="4,0" IsVisible="{Binding CanCompareWithStaged}"/> |
| 78 | + |
| 79 | + <!-- Base Image Switcher (HEAD vs STAGED) for unstaged changes --> |
| 80 | + <Button Classes="flat" |
| 81 | + Padding="6,2" |
| 82 | + Click="OnToggleBaseImage" |
| 83 | + IsVisible="{Binding CanCompareWithStaged}" |
| 84 | + ToolTip.Tip="{DynamicResource Text.Diff.Image.CompareWith}"> |
| 85 | + <StackPanel Orientation="Horizontal" Spacing="4" VerticalAlignment="Center"> |
| 86 | + <Path Width="12" Height="12" Data="{StaticResource Icons.Compare}" Fill="{DynamicResource Brush.FG1}" VerticalAlignment="Center"/> |
| 87 | + <TextBlock Text="{DynamicResource Text.Diff.Image.CompareWith}" FontSize="10" Foreground="{DynamicResource Brush.FG2}" VerticalAlignment="Center"/> |
| 88 | + <Border Background="{DynamicResource Brush.Badge}" CornerRadius="4" Padding="5,1" VerticalAlignment="Center"> |
| 89 | + <TextBlock Text="{Binding OldBadgeTitle}" FontSize="9" FontWeight="Bold" Foreground="{DynamicResource Brush.BadgeFG}" VerticalAlignment="Center"/> |
| 90 | + </Border> |
| 91 | + </StackPanel> |
| 92 | + </Button> |
76 | 93 | </StackPanel> |
77 | 94 | </Border> |
78 | 95 |
|
|
92 | 109 | <Grid Grid.Column="0" RowDefinitions="Auto,*" Margin="8,0" IsVisible="{Binding Old, Converter={x:Static ObjectConverters.IsNotNull}}"> |
93 | 110 | <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,6"> |
94 | 111 | <Border Height="16" Background="{DynamicResource Brush.Badge}" CornerRadius="8" VerticalAlignment="Center"> |
95 | | - <TextBlock Text="{DynamicResource Text.Diff.Old}" Margin="8,0" FontSize="10" Foreground="{DynamicResource Brush.BadgeFG}"/> |
| 112 | + <TextBlock Text="{Binding OldBadgeTitle}" Margin="8,0" FontSize="10" Foreground="{DynamicResource Brush.BadgeFG}"/> |
96 | 113 | </Border> |
97 | 114 |
|
98 | 115 | <TextBlock Text="{Binding OldImageSize}" Margin="8,0,0,0"/> |
|
163 | 180 | <Grid RowDefinitions="Auto,*" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="8,8"> |
164 | 181 | <Grid Grid.Row="0" ColumnDefinitions="Auto,Auto,Auto,Auto,Auto,Auto" HorizontalAlignment="Center" Margin="0,0,0,6"> |
165 | 182 | <Border Grid.Column="0" Height="16" Background="{DynamicResource Brush.Badge}" CornerRadius="8" VerticalAlignment="Center"> |
166 | | - <TextBlock Text="{DynamicResource Text.Diff.Old}" Margin="8,0" FontSize="10" Foreground="{DynamicResource Brush.BadgeFG}"/> |
| 183 | + <TextBlock Text="{Binding OldBadgeTitle}" Margin="8,0" FontSize="10" Foreground="{DynamicResource Brush.BadgeFG}"/> |
167 | 184 | </Border> |
168 | 185 |
|
169 | 186 | <TextBlock Grid.Column="1" Text="{Binding OldImageSize}" Margin="8,0,0,0"/> |
|
208 | 225 | <Grid RowDefinitions="Auto,*,Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="8,8,8,0"> |
209 | 226 | <Grid Grid.Row="0" ColumnDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" HorizontalAlignment="Center" Margin="0,0,0,6"> |
210 | 227 | <Border Grid.Column="0" Height="16" Background="{DynamicResource Brush.Badge}" CornerRadius="8" VerticalAlignment="Center"> |
211 | | - <TextBlock Text="{DynamicResource Text.Diff.Old}" Margin="8,0" FontSize="10" Foreground="{DynamicResource Brush.BadgeFG}"/> |
| 228 | + <TextBlock Text="{Binding OldBadgeTitle}" Margin="8,0" FontSize="10" Foreground="{DynamicResource Brush.BadgeFG}"/> |
212 | 229 | </Border> |
213 | 230 |
|
214 | 231 | <TextBlock Grid.Column="1" Text="{Binding OldImageSize}" Margin="8,0,0,0"/> |
|
248 | 265 | <TextBlock Margin="0,0,8,0" |
249 | 266 | Text="{Binding #ImageBlendSlider.Value, Converter={x:Static c:DoubleConverters.OneMinusToPercentage}}" |
250 | 267 | Foreground="{DynamicResource Brush.FG2}"/> |
251 | | - <TextBlock Text="{DynamicResource Text.Diff.Old}"/> |
| 268 | + <TextBlock Text="{Binding OldBadgeTitle}"/> |
252 | 269 | </StackPanel> |
253 | 270 |
|
254 | 271 | <Slider Grid.Column="1" |
|
280 | 297 | <Grid RowDefinitions="Auto,*,Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="8,8,8,0"> |
281 | 298 | <Grid Grid.Row="0" ColumnDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto" HorizontalAlignment="Center" Margin="0,0,0,6"> |
282 | 299 | <Border Grid.Column="0" Height="16" Background="{DynamicResource Brush.Badge}" CornerRadius="8" VerticalAlignment="Center"> |
283 | | - <TextBlock Text="{DynamicResource Text.Diff.Old}" Margin="8,0" FontSize="10" Foreground="{DynamicResource Brush.BadgeFG}"/> |
| 300 | + <TextBlock Text="{Binding OldBadgeTitle}" Margin="8,0" FontSize="10" Foreground="{DynamicResource Brush.BadgeFG}"/> |
284 | 301 | </Border> |
285 | 302 |
|
286 | 303 | <TextBlock Grid.Column="1" Text="{Binding OldImageSize}" Margin="8,0,0,0"/> |
|
320 | 337 | <TextBlock Margin="0,0,8,0" |
321 | 338 | Text="{Binding #ImageDifferenceSlider.Value, Converter={x:Static c:DoubleConverters.OneMinusToPercentage}}" |
322 | 339 | Foreground="{DynamicResource Brush.FG2}"/> |
323 | | - <TextBlock Text="{DynamicResource Text.Diff.Old}"/> |
| 340 | + <TextBlock Text="{Binding OldBadgeTitle}"/> |
324 | 341 | </StackPanel> |
325 | 342 |
|
326 | 343 | <Slider Grid.Column="1" |
|
0 commit comments