mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
theme attachment approval keyboard
// FREEBIE
This commit is contained in:
parent
5907cd2a0d
commit
b80d88c824
5 changed files with 9 additions and 2 deletions
|
@ -530,6 +530,7 @@ class CaptioningToolbar: UIView, UITextViewDelegate {
|
||||||
self.backgroundColor = UIColor.clear
|
self.backgroundColor = UIColor.clear
|
||||||
|
|
||||||
textView.delegate = self
|
textView.delegate = self
|
||||||
|
textView.keyboardAppearance = Theme.keyboardAppearance
|
||||||
textView.backgroundColor = (Theme.isDarkThemeEnabled ? UIColor.ows_dark85 : UIColor.ows_light02)
|
textView.backgroundColor = (Theme.isDarkThemeEnabled ? UIColor.ows_dark85 : UIColor.ows_light02)
|
||||||
textView.layer.borderColor = (Theme.isDarkThemeEnabled
|
textView.layer.borderColor = (Theme.isDarkThemeEnabled
|
||||||
? Theme.primaryColor.withAlphaComponent(0.06).cgColor
|
? Theme.primaryColor.withAlphaComponent(0.06).cgColor
|
||||||
|
|
|
@ -29,7 +29,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
- (void)ows_applyTheme
|
- (void)ows_applyTheme
|
||||||
{
|
{
|
||||||
self.keyboardAppearance = (Theme.isDarkThemeEnabled ? UIKeyboardAppearanceDark : UIKeyboardAppearanceDefault);
|
self.keyboardAppearance = Theme.keyboardAppearance;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)becomeFirstResponder
|
- (BOOL)becomeFirstResponder
|
||||||
|
|
|
@ -29,7 +29,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
- (void)ows_applyTheme
|
- (void)ows_applyTheme
|
||||||
{
|
{
|
||||||
self.keyboardAppearance = (Theme.isDarkThemeEnabled ? UIKeyboardAppearanceDark : UIKeyboardAppearanceDefault);
|
self.keyboardAppearance = Theme.keyboardAppearance;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -47,6 +47,7 @@ extern NSString *const ThemeDidChangeNotification;
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|
||||||
@property (class, readonly, nonatomic) UIBlurEffect *barBlurEffect;
|
@property (class, readonly, nonatomic) UIBlurEffect *barBlurEffect;
|
||||||
|
@property (class, readonly, nonatomic) UIKeyboardAppearance keyboardAppearance;
|
||||||
|
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|
||||||
|
|
|
@ -138,6 +138,11 @@ NSString *const ThemeKeyThemeEnabled = @"ThemeKeyThemeEnabled";
|
||||||
: [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
|
: [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ (UIKeyboardAppearance)keyboardAppearance
|
||||||
|
{
|
||||||
|
return Theme.isDarkThemeEnabled ? UIKeyboardAppearanceDark : UIKeyboardAppearanceDefault;
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|
||||||
+ (UIColor *)toastForegroundColor
|
+ (UIColor *)toastForegroundColor
|
||||||
|
|
Loading…
Reference in a new issue