feat(app): QR code for receive address
Adds QRCoder 1.8.0 and generates a PNG QR code in-memory each time the receive address changes (OnReceiveAddressChanged). The bitmap is displayed in the Receive tab inside a white-background border with pixel-perfect scaling (BitmapInterpolationMode=None). Previous bitmap is disposed to avoid memory leaks.
This commit is contained in:
@@ -255,6 +255,12 @@
|
||||
<TextBlock Text="{Binding Loc[receive.next]}"/>
|
||||
<SelectableTextBlock Text="{Binding ReceiveAddress}"
|
||||
FontFamily="monospace" FontSize="16"/>
|
||||
<Border Background="White" Padding="12" CornerRadius="6"
|
||||
HorizontalAlignment="Left"
|
||||
IsVisible="{Binding ReceiveQr, Converter={x:Static ObjectConverters.IsNotNull}}">
|
||||
<Image Source="{Binding ReceiveQr}" Width="220" Height="220"
|
||||
RenderOptions.BitmapInterpolationMode="None"/>
|
||||
</Border>
|
||||
<TextBlock Text="{Binding Loc[receive.hint]}"
|
||||
Foreground="Gray" FontSize="12" TextWrapping="Wrap"/>
|
||||
</StackPanel>
|
||||
|
||||
Reference in New Issue
Block a user