fix: wrong percentage for both old and new

This commit is contained in:
leo 2024-06-21 18:49:17 +08:00
parent 1f0c4be625
commit e1cdbae0ab
No known key found for this signature in database

View file

@ -132,7 +132,7 @@
<TextBlock Classes="monospace" Text="{DynamicResource Text.Diff.Binary.Old}"/> <TextBlock Classes="monospace" Text="{DynamicResource Text.Diff.Binary.Old}"/>
<TextBlock Classes="monospace" <TextBlock Classes="monospace"
Margin="8,0,0,0" Margin="8,0,0,0"
Text="{Binding #ImageBlendSlider.Value, Converter={x:Static c:DoubleConverters.ToPercentage}}" Text="{Binding #ImageBlendSlider.Value, Converter={x:Static c:DoubleConverters.OneMinusToPercentage}}"
Foreground="{DynamicResource Brush.FG2}"/> Foreground="{DynamicResource Brush.FG2}"/>
</StackPanel> </StackPanel>
@ -159,7 +159,7 @@
<TextBlock Classes="monospace" Text="{DynamicResource Text.Diff.Binary.New}"/> <TextBlock Classes="monospace" Text="{DynamicResource Text.Diff.Binary.New}"/>
<TextBlock Classes="monospace" <TextBlock Classes="monospace"
Margin="8,0,0,0" Margin="8,0,0,0"
Text="{Binding #ImageBlendSlider.Value, Converter={x:Static c:DoubleConverters.OneMinusToPercentage}}" Text="{Binding #ImageBlendSlider.Value, Converter={x:Static c:DoubleConverters.ToPercentage}}"
Foreground="{DynamicResource Brush.FG2}"/> Foreground="{DynamicResource Brush.FG2}"/>
</StackPanel> </StackPanel>
</Grid> </Grid>