mirror of
https://github.com/bitwarden/mobile
synced 2025-12-28 14:13:25 +00:00
Change password generator to use ColoredPassword (#686)
* Change password generator to use ColoredPassword * Change ColoredPassword from FormattedString to HTML string for improved performance * PasswordFormatter fixes * Correct || to && condition * Apply password colouring to history pages
This commit is contained in:
committed by
Kyle Spearrin
parent
051e15215d
commit
a9dacd561c
@@ -19,6 +19,7 @@
|
||||
<ResourceDictionary>
|
||||
<u:InverseBoolConverter x:Key="inverseBool" />
|
||||
<u:DateTimeConverter x:Key="dateTime" />
|
||||
<u:ColoredPasswordConverter x:Key="coloredPassword" />
|
||||
<ToolbarItem Text="{u:I18n Close}" Clicked="Close_Clicked" Order="Primary" Priority="-1"
|
||||
x:Name="_closeItem" x:Key="closeItem" />
|
||||
<ToolbarItem Text="{u:I18n Clear}"
|
||||
@@ -71,7 +72,8 @@
|
||||
Grid.Column="0"
|
||||
Grid.Row="0"
|
||||
StyleClass="list-title, list-title-platform"
|
||||
Text="{Binding Password, Mode=OneWay}" />
|
||||
TextType="Html"
|
||||
Text="{Binding Password, Mode=OneWay, Converter={StaticResource coloredPassword}}" />
|
||||
<Label LineBreakMode="TailTruncation"
|
||||
Grid.Column="0"
|
||||
Grid.Row="1"
|
||||
|
||||
@@ -40,7 +40,8 @@
|
||||
<StackLayout Spacing="0" Padding="0">
|
||||
<StackLayout StyleClass="box">
|
||||
<controls:MonoLabel
|
||||
Text="{Binding Password}"
|
||||
Text="{Binding ColoredPassword, Mode=OneWay}"
|
||||
TextType="Html"
|
||||
Margin="0, 20"
|
||||
StyleClass="text-lg"
|
||||
HorizontalTextAlignment="Center"
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Bit.App.Pages
|
||||
});
|
||||
}
|
||||
|
||||
public FormattedString ColoredPassword => PasswordFormatter.FormatPassword(Password);
|
||||
public string ColoredPassword => PasswordFormatter.FormatPassword(Password);
|
||||
|
||||
public bool IsPassword
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user