button for show sens data
MODIFY
WalletWasabi.Fluent/Icons/Icons.axaml
WalletWasabi.Fluent/Icons/Icons.axaml
<PathIcon Data="{StaticResource glance_regular}" />
<PathIcon Data="{StaticResource officeapps_regular}" />
<PathIcon Data="{StaticResource btc_logo}" />
- <PathIcon Data="{StaticResource ledger}" />
+ <PathIcon Data="{StaticResource lock_regular}" />
</WrapPanel>
</Design.PreviewWith>
<Style>
<StreamGeometry x:Key="qr_code_regular">M10.75,15 C11.9926407,15 13,16.0073593 13,17.25 L13,22.75 C13,23.9926407 11.9926407,25 10.75,25 L5.25,25 C4.00735931,25 3,23.9926407 3,22.75 L3,17.25 C3,16.0073593 4.00735931,15 5.25,15 L10.75,15 Z M18.3346843,15 L18.3346843,18.3333333 L21.6671089,18.3333333 L21.6671089,21.6666667 L18.3346843,21.6660851 L18.3346843,24.9994184 L15.0013509,24.9994184 L15.0013509,21.6660851 L18.3337756,21.6666667 L18.3337756,18.3333333 L15.0013509,18.3333333 L15.0013509,15 L18.3346843,15 Z M25.0004423,21.6660851 L25.0004423,24.9994184 L21.6671089,24.9994184 L21.6671089,21.6660851 L25.0004423,21.6660851 Z M10.75,16.5 L5.25,16.5 C4.83578644,16.5 4.5,16.8357864 4.5,17.25 L4.5,22.75 C4.5,23.1642136 4.83578644,23.5 5.25,23.5 L10.75,23.5 C11.1642136,23.5 11.5,23.1642136 11.5,22.75 L11.5,17.25 C11.5,16.8357864 11.1642136,16.5 10.75,16.5 Z M9.5,18.5 L9.5,21.5 L6.5,21.5 L6.5,18.5 L9.5,18.5 Z M25.0004423,15 L25.0004423,18.3333333 L21.6671089,18.3333333 L21.6671089,15 L25.0004423,15 Z M10.75,3 C11.9926407,3 13,4.00735931 13,5.25 L13,10.75 C13,11.9926407 11.9926407,13 10.75,13 L5.25,13 C4.00735931,13 3,11.9926407 3,10.75 L3,5.25 C3,4.00735931 4.00735931,3 5.25,3 L10.75,3 Z M22.75,3 C23.9926407,3 25,4.00735931 25,5.25 L25,10.75 C25,11.9926407 23.9926407,13 22.75,13 L17.25,13 C16.0073593,13 15,11.9926407 15,10.75 L15,5.25 C15,4.00735931 16.0073593,3 17.25,3 L22.75,3 Z M10.75,4.5 L5.25,4.5 C4.83578644,4.5 4.5,4.83578644 4.5,5.25 L4.5,10.75 C4.5,11.1642136 4.83578644,11.5 5.25,11.5 L10.75,11.5 C11.1642136,11.5 11.5,11.1642136 11.5,10.75 L11.5,5.25 C11.5,4.83578644 11.1642136,4.5 10.75,4.5 Z M22.75,4.5 L17.25,4.5 C16.8357864,4.5 16.5,4.83578644 16.5,5.25 L16.5,10.75 C16.5,11.1642136 16.8357864,11.5 17.25,11.5 L22.75,11.5 C23.1642136,11.5 23.5,11.1642136 23.5,10.75 L23.5,5.25 C23.5,4.83578644 23.1642136,4.5 22.75,4.5 Z M9.5,6.5 L9.5,9.5 L6.5,9.5 L6.5,6.5 L9.5,6.5 Z M21.5,6.5 L21.5,9.5 L18.5,9.5 L18.5,6.5 L21.5,6.5 Z</StreamGeometry>
<StreamGeometry x:Key="details_regular">M25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 Z M23.5,21.75 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 Z M19.75,14 C19.75,14.3796958 19.4678461,14.693491 19.1017706,14.7431534 L19,14.75 L9,14.75 C8.58578644,14.75 8.25,14.4142136 8.25,14 C8.25,13.6203042 8.53215388,13.306509 8.89822944,13.2568466 L9,13.25 L19,13.25 C19.4142136,13.25 19.75,13.5857864 19.75,14 Z M19.75,19.25 C19.75,19.6296958 19.4678461,19.943491 19.1017706,19.9931534 L19,20 L9,20 C8.58578644,20 8.25,19.6642136 8.25,19.25 C8.25,18.8703042 8.53215388,18.556509 8.89822944,18.5068466 L9,18.5 L19,18.5 C19.4142136,18.5 19.75,18.8357864 19.75,19.25 Z M19.75,8.75 C19.75,9.12969577 19.4678461,9.44349096 19.1017706,9.49315338 L19,9.5 L9,9.5 C8.58578644,9.5 8.25,9.16421356 8.25,8.75 C8.25,8.37030423 8.53215388,8.05650904 8.89822944,8.00684662 L9,8 L19,8 C19.4142136,8 19.75,8.33578644 19.75,8.75 Z</StreamGeometry>
<StreamGeometry x:Key="more_regular">M15.7515 24C15.7515 25.7949 14.2964 27.25 12.5015 27.25C10.7065 27.25 9.25146 25.7949 9.25146 24C9.25146 22.2051 10.7065 20.75 12.5015 20.75C14.2964 20.75 15.7515 22.2051 15.7515 24Z M27.2515 24C27.2515 25.7949 25.7964 27.25 24.0015 27.25C22.2065 27.25 20.7515 25.7949 20.7515 24C20.7515 22.2051 22.2065 20.75 24.0015 20.75C25.7964 20.75 27.2515 22.2051 27.2515 24Z M35.5015 27.25C37.2964 27.25 38.7515 25.7949 38.7515 24C38.7515 22.2051 37.2964 20.75 35.5015 20.75C33.7065 20.75 32.2515 22.2051 32.2515 24C32.2515 25.7949 33.7065 27.25 35.5015 27.25Z</StreamGeometry>
+ <StreamGeometry x:Key="lock_regular">M12,2 C14.209139,2 16,3.790861 16,6 L16,8 L17.75,8 C18.9926407,8 20,9.00735931 20,10.25 L20,19.75 C20,20.9926407 18.9926407,22 17.75,22 L6.25,22 C5.00735931,22 4,20.9926407 4,19.75 L4,10.25 C4,9.00735931 5.00735931,8 6.25,8 L8,8 L8,6 C8,3.790861 9.790861,2 12,2 Z M17.75,9.5 L6.25,9.5 C5.83578644,9.5 5.5,9.83578644 5.5,10.25 L5.5,19.75 C5.5,20.1642136 5.83578644,20.5 6.25,20.5 L17.75,20.5 C18.1642136,20.5 18.5,20.1642136 18.5,19.75 L18.5,10.25 C18.5,9.83578644 18.1642136,9.5 17.75,9.5 Z M12.000125,13.5 C12.8285521,13.5 13.500125,14.1715729 13.500125,15 C13.500125,15.8284271 12.8285521,16.5 12.000125,16.5 C11.1716979,16.5 10.500125,15.8284271 10.500125,15 C10.500125,14.1715729 11.1716979,13.5 12.000125,13.5 Z M12,3.5 C10.6192881,3.5 9.5,4.61928813 9.5,6 L9.5,8 L14.5,8 L14.5,6 C14.5,4.61928813 13.3807119,3.5 12,3.5 Z</StreamGeometry>
+ <StreamGeometry x:Key="unlock_regular">M13.2881643,2.00489799 L13.5,2 C15.8751084,2 17.8371399,3.84564416 17.9904262,6.20451395 C18.0172864,6.6178557 17.7039812,6.97470986 17.2906394,7.00157003 C16.8772977,7.02843019 16.5204435,6.71512495 16.4935833,6.3017832 C16.3914884,4.73067987 15.0832012,3.5 13.5,3.5 C11.9023191,3.5 10.5963391,4.74891996 10.5050927,6.32372721 L10.5,6.5 L10.4994005,9.499 L19.7504315,9.5 C20.9930721,9.5 22.0004315,10.5073593 22.0004315,11.75 L22.0004315,23.7518352 C22.0004315,24.9944759 20.9930721,26.0018352 19.7504315,26.0018352 L7.24840055,26.0018352 C6.00575986,26.0018352 4.99840055,24.9944759 4.99840055,23.7518352 L4.99840055,11.75 C4.99840055,10.5073593 6.00575986,9.5 7.24840055,9.5 L8.99940055,9.499 L9,6.5 C9,4.08572667 10.9012365,2.11551091 13.2881643,2.00489799 L13.5,2 L13.2881643,2.00489799 Z M19.7504315,11 L7.24840055,11 C6.83418699,11 6.49840055,11.3357864 6.49840055,11.75 L6.49840055,23.7518352 C6.49840055,24.1660488 6.83418699,24.5018352 7.24840055,24.5018352 L19.7504315,24.5018352 C20.164645,24.5018352 20.5004315,24.1660488 20.5004315,23.7518352 L20.5004315,11.75 C20.5004315,11.3357864 20.164645,11 19.7504315,11 Z M13.5,16.25 C14.3284271,16.25 15,16.9215729 15,17.75 C15,18.5784271 14.3284271,19.25 13.5,19.25 C12.6715729,19.25 12,18.5784271 12,17.75 C12,16.9215729 12.6715729,16.25 13.5,16.25 Z</StreamGeometry>
<!-- Wallet icons -->
<StreamGeometry x:Key="default_wallet_icon">M18.75,3 C20.5449254,3 22,4.45507456 22,6.25 L22,17.75 C22,19.5449254 20.5449254,21 18.75,21 L5.25,21 C3.45507456,21 2,19.5449254 2,17.75 L2,6.25 C2,4.45507456 3.45507456,3 5.25,3 L18.75,3 Z M18.75,4.5 L5.25,4.5 C4.28350169,4.5 3.5,5.28350169 3.5,6.25 L3.5,17.75 C3.5,18.7164983 4.28350169,19.5 5.25,19.5 L18.75,19.5 C19.7164983,19.5 20.5,18.7164983 20.5,17.75 L20.5,6.25 C20.5,5.28350169 19.7164983,4.5 18.75,4.5 Z M6.74835407,6.5 L17.2543007,6.5 C17.6685143,6.5 18.0043007,6.83578644 18.0043007,7.25 C18.0043007,7.62969577 17.7221468,7.94349096 17.3560713,7.99315338 L17.2543007,8 L6.74835407,8 C6.33414051,8 5.99835407,7.66421356 5.99835407,7.25 C5.99835407,6.87030423 6.28050795,6.55650904 6.64658351,6.50684662 L6.74835407,6.5 L17.2543007,6.5 L6.74835407,6.5 Z</StreamGeometry>

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletInfoViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletInfoViewModel.cs
using NBitcoin;
+using ReactiveUI;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Userfacing;
using WalletWasabi.Wallets;
@@ -8,12 +9,25 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Advanced
[NavigationMetaData(Title = "Wallet Info")]
public partial class WalletInfoViewModel : RoutableViewModel
{
+ [AutoNotify] private bool _showSensitiveData;
+ [AutoNotify] private string _showButtonText = "Show sensitive data";
+ [AutoNotify] private string _lockIconString = "lock_regular";
+
public WalletInfoViewModel(Wallet wallet)
{
var network = wallet.Network;
SetupCancel(enableCancel: true, enableCancelOnEscape: true, enableCancelOnPressed: true);
+ NextCommand = ReactiveCommand.Create(() => Navigate().Clear());
+
+ CancelCommand = ReactiveCommand.Create(() =>
+ {
+ ShowSensitiveData = !ShowSensitiveData;
+ ShowButtonText = ShowSensitiveData ? "Hide sensitive data" : "Show sensitive data";
+ LockIconString = ShowSensitiveData ? "unlock_regular" : "lock_regular";
+ });
+
if (!wallet.KeyManager.IsWatchOnly)
{
var secret = PasswordHelper.GetMasterExtKey(wallet.KeyManager, wallet.Kitchen.SaltSoup(), out _);

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletInfoView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletInfoView.axaml
xmlns:behaviors="clr-namespace:WalletWasabi.Fluent.Behaviors"
xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
xmlns:advanced="clr-namespace:WalletWasabi.Fluent.ViewModels.Wallets.Advanced"
+ xmlns:conv="clr-namespace:WalletWasabi.Fluent.Converters"
x:DataType="advanced:WalletInfoViewModel"
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.Wallets.Advanced.WalletInfoView">
EnableNext="True" NextContent="Done"
EnableCancel="{Binding EnableCancel}"
EnableBack="{Binding EnableBack}">
+ <c:ContentArea.CancelContent>
+ <StackPanel Spacing="10" Orientation="Horizontal">
+ <PathIcon Data="{Binding LockIconString, Converter={x:Static conv:NavBarIconConverter.Instance}}" />
+ <TextBlock Text="{Binding ShowButtonText}" />
+ </StackPanel>
+ </c:ContentArea.CancelContent>
<StackPanel Spacing="10" Margin="0 0 20 0">
<c:PreviewItem Icon="{StaticResource wasabi_logo}"
Text="Extended Master Private Key"

button for show sens data