mirror of
https://github.com/bitwarden/mobile
synced 2025-12-23 11:43:49 +00:00
dark keyboard on dark themes. resolves #588
This commit is contained in:
@@ -41,6 +41,11 @@ namespace Bit.iOS.Core.Views
|
||||
BackgroundColor = ThemeHelpers.BackgroundColor
|
||||
};
|
||||
|
||||
if(!ThemeHelpers.LightTheme)
|
||||
{
|
||||
TextView.KeyboardAppearance = UIKeyboardAppearance.Dark;
|
||||
}
|
||||
|
||||
ContentView.Add(TextView);
|
||||
ContentView.AddConstraints(new NSLayoutConstraint[] {
|
||||
NSLayoutConstraint.Create(TextView, NSLayoutAttribute.Leading, NSLayoutRelation.Equal, ContentView, NSLayoutAttribute.Leading, 1f, 15f),
|
||||
@@ -78,6 +83,11 @@ namespace Bit.iOS.Core.Views
|
||||
BackgroundColor = ThemeHelpers.BackgroundColor
|
||||
};
|
||||
|
||||
if(!ThemeHelpers.LightTheme)
|
||||
{
|
||||
TextField.KeyboardAppearance = UIKeyboardAppearance.Dark;
|
||||
}
|
||||
|
||||
if(useLabelAsPlaceholder)
|
||||
{
|
||||
TextField.Placeholder = labelName;
|
||||
|
||||
Reference in New Issue
Block a user