keyboard is always dark in attachment approval

pull/1/head
Michael Kirk 6 years ago
parent 2f92995cd6
commit 3e48ed105d

@ -1398,7 +1398,6 @@ class CaptionView: UIView {
placeholderTextView.isEditable = false
placeholderTextView.backgroundColor = .clear
placeholderTextView.keyboardAppearance = Theme.keyboardAppearance
placeholderTextView.font = UIFont.ows_dynamicTypeBody
placeholderTextView.textColor = Theme.darkThemePrimaryColor
@ -1411,7 +1410,7 @@ class CaptionView: UIView {
private lazy var textView: UITextView = {
let textView = UITextView()
textView.backgroundColor = .clear
textView.keyboardAppearance = Theme.keyboardAppearance
textView.keyboardAppearance = Theme.darkThemeKeyboardAppearance
textView.font = UIFont.ows_dynamicTypeBody
textView.textColor = Theme.darkThemePrimaryColor
textView.tintColor = Theme.darkThemePrimaryColor
@ -1711,7 +1710,7 @@ class MediaMessageTextToolbar: UIView, UITextViewDelegate {
private func buildTextView() -> UITextView {
let textView = MessageTextView()
textView.keyboardAppearance = Theme.keyboardAppearance
textView.keyboardAppearance = Theme.darkThemeKeyboardAppearance
textView.backgroundColor = .clear
textView.tintColor = Theme.darkThemePrimaryColor

@ -54,6 +54,7 @@ extern NSString *const ThemeDidChangeNotification;
@property (class, readonly, nonatomic) UIColor *searchFieldBackgroundColor;
@property (class, readonly, nonatomic) UIBlurEffect *barBlurEffect;
@property (class, readonly, nonatomic) UIKeyboardAppearance keyboardAppearance;
@property (class, readonly, nonatomic) UIKeyboardAppearance darkThemeKeyboardAppearance;
#pragma mark -

@ -161,9 +161,15 @@ NSString *const ThemeKeyThemeEnabled = @"ThemeKeyThemeEnabled";
+ (UIKeyboardAppearance)keyboardAppearance
{
return Theme.isDarkThemeEnabled ? UIKeyboardAppearanceDark : UIKeyboardAppearanceDefault;
return Theme.isDarkThemeEnabled ? self.darkThemeKeyboardAppearance : UIKeyboardAppearanceDefault;
}
+ (UIKeyboardAppearance)darkThemeKeyboardAppearance;
{
return UIKeyboardAppearanceDark;
}
#pragma mark - Search Bar
+ (UIBarStyle)barStyle

Loading…
Cancel
Save