mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 15:53:44 +00:00
removed monospaced font from username field
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Bit.App.Controls
|
|||||||
public FormEntryCell(
|
public FormEntryCell(
|
||||||
string labelText,
|
string labelText,
|
||||||
Keyboard entryKeyboard = null,
|
Keyboard entryKeyboard = null,
|
||||||
bool IsPassword = false,
|
bool isPassword = false,
|
||||||
VisualElement nextElement = null,
|
VisualElement nextElement = null,
|
||||||
bool useLabelAsPlaceholder = false,
|
bool useLabelAsPlaceholder = false,
|
||||||
string imageSource = null,
|
string imageSource = null,
|
||||||
@@ -32,7 +32,7 @@ namespace Bit.App.Controls
|
|||||||
{
|
{
|
||||||
Keyboard = entryKeyboard,
|
Keyboard = entryKeyboard,
|
||||||
HasBorder = false,
|
HasBorder = false,
|
||||||
IsPassword = IsPassword,
|
IsPassword = isPassword,
|
||||||
AllowClear = true,
|
AllowClear = true,
|
||||||
HorizontalOptions = LayoutOptions.FillAndExpand,
|
HorizontalOptions = LayoutOptions.FillAndExpand,
|
||||||
WidthRequest = 1,
|
WidthRequest = 1,
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace Bit.App.Pages
|
|||||||
Android: new Thickness(15, 8),
|
Android: new Thickness(15, 8),
|
||||||
WinPhone: new Thickness(15, 20));
|
WinPhone: new Thickness(15, 20));
|
||||||
|
|
||||||
PasswordCell = new FormEntryCell(AppResources.MasterPassword, IsPassword: true,
|
PasswordCell = new FormEntryCell(AppResources.MasterPassword, isPassword: true,
|
||||||
useLabelAsPlaceholder: true, imageSource: "lock", containerPadding: padding);
|
useLabelAsPlaceholder: true, imageSource: "lock", containerPadding: padding);
|
||||||
|
|
||||||
PasswordCell.Entry.ReturnType = Enums.ReturnType.Go;
|
PasswordCell.Entry.ReturnType = Enums.ReturnType.Go;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ namespace Bit.App.Pages
|
|||||||
Android: new Thickness(15, 8),
|
Android: new Thickness(15, 8),
|
||||||
WinPhone: new Thickness(15, 20));
|
WinPhone: new Thickness(15, 20));
|
||||||
|
|
||||||
PasswordCell = new FormEntryCell(AppResources.MasterPassword, IsPassword: true,
|
PasswordCell = new FormEntryCell(AppResources.MasterPassword, isPassword: true,
|
||||||
useLabelAsPlaceholder: true, imageSource: "lock", containerPadding: padding);
|
useLabelAsPlaceholder: true, imageSource: "lock", containerPadding: padding);
|
||||||
EmailCell = new FormEntryCell(AppResources.EmailAddress, nextElement: PasswordCell.Entry,
|
EmailCell = new FormEntryCell(AppResources.EmailAddress, nextElement: PasswordCell.Entry,
|
||||||
entryKeyboard: Keyboard.Email, useLabelAsPlaceholder: true, imageSource: "envelope",
|
entryKeyboard: Keyboard.Email, useLabelAsPlaceholder: true, imageSource: "envelope",
|
||||||
|
|||||||
@@ -47,10 +47,10 @@ namespace Bit.App.Pages
|
|||||||
|
|
||||||
PasswordHintCell = new FormEntryCell("Master Password Hint (optional)", useLabelAsPlaceholder: true,
|
PasswordHintCell = new FormEntryCell("Master Password Hint (optional)", useLabelAsPlaceholder: true,
|
||||||
imageSource: "lightbulb", containerPadding: padding);
|
imageSource: "lightbulb", containerPadding: padding);
|
||||||
ConfirmPasswordCell = new FormEntryCell("Re-type Master Password", IsPassword: true,
|
ConfirmPasswordCell = new FormEntryCell("Re-type Master Password", isPassword: true,
|
||||||
nextElement: PasswordHintCell.Entry, useLabelAsPlaceholder: true, imageSource: "lock",
|
nextElement: PasswordHintCell.Entry, useLabelAsPlaceholder: true, imageSource: "lock",
|
||||||
containerPadding: padding);
|
containerPadding: padding);
|
||||||
PasswordCell = new FormEntryCell(AppResources.MasterPassword, IsPassword: true,
|
PasswordCell = new FormEntryCell(AppResources.MasterPassword, isPassword: true,
|
||||||
nextElement: ConfirmPasswordCell.Entry, useLabelAsPlaceholder: true, imageSource: "lock",
|
nextElement: ConfirmPasswordCell.Entry, useLabelAsPlaceholder: true, imageSource: "lock",
|
||||||
containerPadding: padding);
|
containerPadding: padding);
|
||||||
EmailCell = new FormEntryCell(AppResources.EmailAddress, nextElement: PasswordCell.Entry,
|
EmailCell = new FormEntryCell(AppResources.EmailAddress, nextElement: PasswordCell.Entry,
|
||||||
|
|||||||
@@ -41,20 +41,18 @@ namespace Bit.App.Pages
|
|||||||
private void Init()
|
private void Init()
|
||||||
{
|
{
|
||||||
var notesCell = new FormEditorCell(height: 90);
|
var notesCell = new FormEditorCell(height: 90);
|
||||||
PasswordCell = new FormEntryCell(AppResources.Password, IsPassword: true, nextElement: notesCell.Editor,
|
PasswordCell = new FormEntryCell(AppResources.Password, isPassword: true, nextElement: notesCell.Editor,
|
||||||
useButton: true);
|
useButton: true);
|
||||||
PasswordCell.Button.Image = "eye";
|
PasswordCell.Button.Image = "eye";
|
||||||
PasswordCell.Button.Clicked += PasswordButton_Clicked;
|
PasswordCell.Button.Clicked += PasswordButton_Clicked;
|
||||||
PasswordCell.Entry.DisableAutocapitalize = true;
|
PasswordCell.Entry.DisableAutocapitalize = true;
|
||||||
PasswordCell.Entry.Autocorrect = false;
|
PasswordCell.Entry.Autocorrect = false;
|
||||||
|
PasswordCell.Entry.FontFamily = Device.OnPlatform(iOS: "Courier", Android: "monospace", WinPhone: "Courier");
|
||||||
|
|
||||||
var usernameCell = new FormEntryCell(AppResources.Username, nextElement: PasswordCell.Entry);
|
var usernameCell = new FormEntryCell(AppResources.Username, nextElement: PasswordCell.Entry);
|
||||||
usernameCell.Entry.DisableAutocapitalize = true;
|
usernameCell.Entry.DisableAutocapitalize = true;
|
||||||
usernameCell.Entry.Autocorrect = false;
|
usernameCell.Entry.Autocorrect = false;
|
||||||
|
|
||||||
usernameCell.Entry.FontFamily = PasswordCell.Entry.FontFamily = Device.OnPlatform(
|
|
||||||
iOS: "Courier", Android: "monospace", WinPhone: "Courier");
|
|
||||||
|
|
||||||
var uriCell = new FormEntryCell(AppResources.URI, Keyboard.Url, nextElement: usernameCell.Entry);
|
var uriCell = new FormEntryCell(AppResources.URI, Keyboard.Url, nextElement: usernameCell.Entry);
|
||||||
var nameCell = new FormEntryCell(AppResources.Name, nextElement: uriCell.Entry);
|
var nameCell = new FormEntryCell(AppResources.Name, nextElement: uriCell.Entry);
|
||||||
|
|
||||||
|
|||||||
@@ -46,22 +46,20 @@ namespace Bit.App.Pages
|
|||||||
var notesCell = new FormEditorCell(height: 90);
|
var notesCell = new FormEditorCell(height: 90);
|
||||||
notesCell.Editor.Text = site.Notes?.Decrypt();
|
notesCell.Editor.Text = site.Notes?.Decrypt();
|
||||||
|
|
||||||
PasswordCell = new FormEntryCell(AppResources.Password, IsPassword: true, nextElement: notesCell.Editor,
|
PasswordCell = new FormEntryCell(AppResources.Password, isPassword: true, nextElement: notesCell.Editor,
|
||||||
useButton: true);
|
useButton: true);
|
||||||
PasswordCell.Entry.Text = site.Password?.Decrypt();
|
PasswordCell.Entry.Text = site.Password?.Decrypt();
|
||||||
PasswordCell.Button.Image = "eye";
|
PasswordCell.Button.Image = "eye";
|
||||||
PasswordCell.Button.Clicked += PasswordButton_Clicked;
|
PasswordCell.Button.Clicked += PasswordButton_Clicked;
|
||||||
PasswordCell.Entry.DisableAutocapitalize = true;
|
PasswordCell.Entry.DisableAutocapitalize = true;
|
||||||
PasswordCell.Entry.Autocorrect = false;
|
PasswordCell.Entry.Autocorrect = false;
|
||||||
|
PasswordCell.Entry.FontFamily = Device.OnPlatform(iOS: "Courier", Android: "monospace", WinPhone: "Courier");
|
||||||
|
|
||||||
var usernameCell = new FormEntryCell(AppResources.Username, nextElement: PasswordCell.Entry);
|
var usernameCell = new FormEntryCell(AppResources.Username, nextElement: PasswordCell.Entry);
|
||||||
usernameCell.Entry.Text = site.Username?.Decrypt();
|
usernameCell.Entry.Text = site.Username?.Decrypt();
|
||||||
usernameCell.Entry.DisableAutocapitalize = true;
|
usernameCell.Entry.DisableAutocapitalize = true;
|
||||||
usernameCell.Entry.Autocorrect = false;
|
usernameCell.Entry.Autocorrect = false;
|
||||||
|
|
||||||
usernameCell.Entry.FontFamily = PasswordCell.Entry.FontFamily =
|
|
||||||
Device.OnPlatform(iOS: "Courier", Android: "monospace", WinPhone: "Courier");
|
|
||||||
|
|
||||||
var uriCell = new FormEntryCell(AppResources.URI, Keyboard.Url, nextElement: usernameCell.Entry);
|
var uriCell = new FormEntryCell(AppResources.URI, Keyboard.Url, nextElement: usernameCell.Entry);
|
||||||
uriCell.Entry.Text = site.Uri?.Decrypt();
|
uriCell.Entry.Text = site.Uri?.Decrypt();
|
||||||
var nameCell = new FormEntryCell(AppResources.Name, nextElement: uriCell.Entry);
|
var nameCell = new FormEntryCell(AppResources.Name, nextElement: uriCell.Entry);
|
||||||
|
|||||||
@@ -64,9 +64,7 @@ namespace Bit.App.Pages
|
|||||||
}
|
}
|
||||||
PasswordCell.Button1.Command = new Command(() => Model.RevealPassword = !Model.RevealPassword);
|
PasswordCell.Button1.Command = new Command(() => Model.RevealPassword = !Model.RevealPassword);
|
||||||
PasswordCell.Button2.Command = new Command(() => Copy(Model.Password, AppResources.Password));
|
PasswordCell.Button2.Command = new Command(() => Copy(Model.Password, AppResources.Password));
|
||||||
|
PasswordCell.Value.FontFamily = Device.OnPlatform(iOS: "Courier", Android: "monospace", WinPhone: "Courier");
|
||||||
UsernameCell.Value.FontFamily = PasswordCell.Value.FontFamily = Device.OnPlatform(
|
|
||||||
iOS: "Courier", Android: "monospace", WinPhone: "Courier");
|
|
||||||
|
|
||||||
// URI
|
// URI
|
||||||
UriCell = new LabeledValueCell(AppResources.Website, button1Text: AppResources.Launch);
|
UriCell = new LabeledValueCell(AppResources.Website, button1Text: AppResources.Launch);
|
||||||
|
|||||||
Reference in New Issue
Block a user