theme attachment approval keyboard

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 5907cd2a0d
commit b80d88c824

@ -530,6 +530,7 @@ class CaptioningToolbar: UIView, UITextViewDelegate {
self.backgroundColor = UIColor.clear
textView.delegate = self
textView.keyboardAppearance = Theme.keyboardAppearance
textView.backgroundColor = (Theme.isDarkThemeEnabled ? UIColor.ows_dark85 : UIColor.ows_light02)
textView.layer.borderColor = (Theme.isDarkThemeEnabled
? Theme.primaryColor.withAlphaComponent(0.06).cgColor

@ -29,7 +29,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)ows_applyTheme
{
self.keyboardAppearance = (Theme.isDarkThemeEnabled ? UIKeyboardAppearanceDark : UIKeyboardAppearanceDefault);
self.keyboardAppearance = Theme.keyboardAppearance;
}
- (BOOL)becomeFirstResponder

@ -29,7 +29,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)ows_applyTheme
{
self.keyboardAppearance = (Theme.isDarkThemeEnabled ? UIKeyboardAppearanceDark : UIKeyboardAppearanceDefault);
self.keyboardAppearance = Theme.keyboardAppearance;
}
@end

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

@ -138,6 +138,11 @@ NSString *const ThemeKeyThemeEnabled = @"ThemeKeyThemeEnabled";
: [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
}
+ (UIKeyboardAppearance)keyboardAppearance
{
return Theme.isDarkThemeEnabled ? UIKeyboardAppearanceDark : UIKeyboardAppearanceDefault;
}
#pragma mark -
+ (UIColor *)toastForegroundColor

Loading…
Cancel
Save