mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
BEEEP: Colorize hidden custom field when value visible (#1813)
This commit is contained in:
parent
fac295c97b
commit
317e7dad9a
2 changed files with 5 additions and 3 deletions
|
@ -579,8 +579,8 @@
|
|||
Grid.Row="1"
|
||||
Grid.Column="0">
|
||||
<controls:MonoLabel
|
||||
Text="{Binding ValueText, Mode=OneWay}"
|
||||
StyleClass="box-value"
|
||||
Text="{Binding ColoredHiddenValue, Mode=OneWay}"
|
||||
StyleClass="box-value, text-html"
|
||||
IsVisible="{Binding ShowHiddenValue}" />
|
||||
<controls:MonoLabel
|
||||
Text="{Binding Field.MaskedValue, Mode=OneWay}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
@ -768,6 +768,8 @@ namespace Bit.App.Pages
|
|||
}
|
||||
}
|
||||
|
||||
public FormattedString ColoredHiddenValue => PasswordFormatter.FormatPassword(_field.Value);
|
||||
|
||||
public Command ToggleHiddenValueCommand { get; set; }
|
||||
|
||||
public string ShowHiddenValueIcon => _showHiddenValue ? BitwardenIcons.EyeSlash : BitwardenIcons.Eye;
|
||||
|
|
Loading…
Reference in a new issue