show all data in wallet info when show sensitive data clicked
MODIFY
WalletWasabi.Fluent/Controls/PrivacyContentControl.axaml.cs
WalletWasabi.Fluent/Controls/PrivacyContentControl.axaml.cs
@@ -35,6 +35,9 @@ namespace WalletWasabi.Fluent.Controls
public static readonly StyledProperty<ReplacementMode> PrivacyReplacementModeProperty =
AvaloniaProperty.Register<PrivacyContentControl, ReplacementMode>(nameof(PrivacyReplacementMode));
+ public static readonly StyledProperty<bool> ForceShowProperty =
+ AvaloniaProperty.Register<PrivacyContentControl, bool>(nameof(ForceShow));
+
private bool IsPrivacyContentVisible
{
get => GetValue(IsPrivacyContentVisibleProperty);
@@ -65,6 +68,12 @@ namespace WalletWasabi.Fluent.Controls
set => SetValue(PrivacyReplacementModeProperty, value);
}
+ public bool ForceShow
+ {
+ get => GetValue(ForceShowProperty);
+ set => SetValue(ForceShowProperty, value);
+ }
+
protected override void OnAttachedToVisualTree(VisualTreeAttachmentEventArgs e)
{
base.OnAttachedToVisualTree(e);
@@ -73,11 +82,14 @@ namespace WalletWasabi.Fluent.Controls
Services.UiConfig
.WhenAnyValue(x => x.PrivacyMode)
+ .Merge(this.WhenAnyValue(x => x.ForceShow))
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(value =>
+ .Subscribe(_ =>
{
- IsPrivacyContentVisible = value;
- IsContentVisible = !value;
+ var value = !Services.UiConfig.PrivacyMode || ForceShow;
+
+ IsPrivacyContentVisible = !value;
+ IsContentVisible = value;
})
.DisposeWith(_disposable);

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletInfoView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletInfoView.axaml
<c:PreviewItem Icon="{StaticResource key_regular}"
Text="Extended Account Public Key"
CopyParameter="{Binding ExtendedAccountPublicKey}">
- <c:PrivacyContentControl Content="{Binding ExtendedAccountPublicKey}" NumberOfPrivacyChars="38" />
+ <c:PrivacyContentControl Content="{Binding ExtendedAccountPublicKey}" ForceShow="{Binding ShowSensitiveData}" NumberOfPrivacyChars="38" />
</c:PreviewItem>
<Separator />
<c:PreviewItem Icon="{StaticResource key_regular}"
Text="Extended Account zpub"
CopyParameter="{Binding ExtendedAccountZpub}">
- <c:PrivacyContentControl Content="{Binding ExtendedAccountZpub}" NumberOfPrivacyChars="38" />
+ <c:PrivacyContentControl Content="{Binding ExtendedAccountZpub}" ForceShow="{Binding ShowSensitiveData}" NumberOfPrivacyChars="38" />
</c:PreviewItem>
</StackPanel>
</c:ContentArea>

show all data in wallet info when show sensitive data clicked