Rename control to TogglePasswordBox
MODIFY
WalletWasabi.Gui/App.xaml
WalletWasabi.Gui/App.xaml
<StyleInclude Source="resm:WalletWasabi.Gui.Styles.Styles.xaml?assembly=WalletWasabi.Gui" />
<StyleInclude Source="resm:WalletWasabi.Gui.Icons.Icons.xaml?assembly=WalletWasabi.Gui" />
<StyleInclude Source="resm:WalletWasabi.Gui.Controls.NoparaPasswordBox.xaml?assembly=WalletWasabi.Gui" />
- <StyleInclude Source="resm:WalletWasabi.Gui.Controls.LucasPasswordBox.xaml?assembly=WalletWasabi.Gui" />
+ <StyleInclude Source="resm:WalletWasabi.Gui.Controls.TogglePasswordBox.xaml?assembly=WalletWasabi.Gui" />
<StyleInclude Source="resm:WalletWasabi.Gui.Controls.MultiTextBox.xaml?assembly=WalletWasabi.Gui" />
<StyleInclude Source="resm:WalletWasabi.Gui.Controls.BusyIndicator.xaml?assembly=WalletWasabi.Gui" />
<StyleInclude Source="resm:WalletWasabi.Gui.Controls.EditableTextBlock.xaml?assembly=WalletWasabi.Gui" />

MODIFY
WalletWasabi.Gui/Controls/TogglePasswordBox.cs
WalletWasabi.Gui/Controls/TogglePasswordBox.cs
@@ -10,12 +10,12 @@ using System.Reactive.Linq;
namespace WalletWasabi.Gui.Controls
{
- public class LucasPasswordBox : ExtendedTextBox, IStyleable
+ public class TogglePasswordBox : ExtendedTextBox, IStyleable
{
- Type IStyleable.StyleKey => typeof(LucasPasswordBox);
+ Type IStyleable.StyleKey => typeof(TogglePasswordBox);
public static readonly StyledProperty<bool> IsPasswordVisibleProperty =
- AvaloniaProperty.Register<LucasPasswordBox, bool>(nameof(IsPasswordVisible), defaultBindingMode: BindingMode.TwoWay);
+ AvaloniaProperty.Register<TogglePasswordBox, bool>(nameof(IsPasswordVisible), defaultBindingMode: BindingMode.TwoWay);
public bool IsPasswordVisible
{
@@ -23,7 +23,7 @@ namespace WalletWasabi.Gui.Controls
set => SetValue(IsPasswordVisibleProperty, value);
}
- public LucasPasswordBox()
+ public TogglePasswordBox()
{
this.GetObservable(IsPasswordVisibleProperty)
.ObserveOn(RxApp.MainThreadScheduler)

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletView.xaml
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletView.xaml
<StackPanel>
<TextBlock Text="Select a wallet to test its password!" FontWeight="Bold" />
</StackPanel>
- <controls:LucasPasswordBox Watermark="Password" UseFloatingWatermark="True" />
+ <controls:TogglePasswordBox Watermark="Password" UseFloatingWatermark="True" />
<StackPanel>
<TextBlock Text="Why the unconventional password masking?" FontWeight="Bold" />
<TextBlock Text="We received numerous reports on losing or mistyping passwords. This experiment aims to disrupt users' typical workflow at wallet generation, forcing them to pay more attention than otherwise would." TextWrapping="Wrap" />

Rename control to TogglePasswordBox