mirror of
https://github.com/bitwarden/android.git
synced 2025-01-12 11:17:30 +03:00
colored password property
This commit is contained in:
parent
9400c22e4f
commit
919eedc0fa
1 changed files with 9 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
||||||
using Bit.App.Resources;
|
using Bit.App.Resources;
|
||||||
|
using Bit.App.Utilities;
|
||||||
using Bit.Core.Abstractions;
|
using Bit.Core.Abstractions;
|
||||||
using Bit.Core.Models.Domain;
|
using Bit.Core.Models.Domain;
|
||||||
using Bit.Core.Utilities;
|
using Bit.Core.Utilities;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Xamarin.Forms;
|
||||||
|
|
||||||
namespace Bit.App.Pages
|
namespace Bit.App.Pages
|
||||||
{
|
{
|
||||||
|
@ -42,9 +44,15 @@ namespace Bit.App.Pages
|
||||||
public string Password
|
public string Password
|
||||||
{
|
{
|
||||||
get => _password;
|
get => _password;
|
||||||
set => SetProperty(ref _password, value);
|
set => SetProperty(ref _password, value,
|
||||||
|
additionalPropertyNames: new string[]
|
||||||
|
{
|
||||||
|
nameof(ColoredPassword)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FormattedString ColoredPassword => PasswordFormatter.FormatPassword(Password);
|
||||||
|
|
||||||
public bool IsPassword
|
public bool IsPassword
|
||||||
{
|
{
|
||||||
get => _isPassword;
|
get => _isPassword;
|
||||||
|
|
Loading…
Reference in a new issue