42 lines
1.7 KiB
Objective-C
42 lines
1.7 KiB
Objective-C
//
|
|
// QKeyboardConfiguration.m
|
|
// QKeyBoardDemo
|
|
//
|
|
// Created by QDong on 2021-8-3.
|
|
// Copyright (c) 2021年 QDong QQ:285275534@qq.com. All rights reserved.
|
|
//
|
|
|
|
#import "QInputBarViewConfiguration.h"
|
|
|
|
@implementation QInputBarViewConfiguration
|
|
|
|
+ (instancetype)defaultInputBarViewConfiguration
|
|
{
|
|
QInputBarViewConfiguration *configuration = [QInputBarViewConfiguration new];
|
|
|
|
// if (@available(iOS 11.0, *)) {
|
|
// NSBundle *bundle = [NSBundle bundleForClass:[QInputBarViewConfiguration class]];
|
|
//// configuration.inputBarBackgroundColor = [UIColor colorNamed:@"q_input_gray_bg" inBundle:bundle compatibleWithTraitCollection:nil];
|
|
// configuration.inputBarBoardColor = [UIColor colorNamed:@"q_border223" inBundle:bundle compatibleWithTraitCollection:nil];
|
|
//// configuration.textColor = [UIColor colorNamed:@"q_black_gray" inBundle:bundle compatibleWithTraitCollection:nil];
|
|
// configuration.textViewBackgroundColor = [UIColor colorNamed:@"q_input" inBundle:bundle compatibleWithTraitCollection:nil];
|
|
// configuration.recordButtonTitleColor = [UIColor colorNamed:@"q_black_white" inBundle:bundle compatibleWithTraitCollection:nil];
|
|
// } else {
|
|
//
|
|
//
|
|
// }
|
|
configuration.inputBarBoardColor = [UIColor clearColor];
|
|
configuration.textColor = [UIColor blackColor];
|
|
configuration.recordButtonTitleColor = [UIColor darkGrayColor];
|
|
configuration.inputBarBackgroundColor = [UIColor colorWithRed:242/255.0f green:242/255.0f blue:242/255.0f alpha:1];
|
|
configuration.textViewBackgroundColor = [UIColor whiteColor];
|
|
configuration.inputBarHeightChangeAnimationDuration = 0.2;
|
|
configuration.keyboardSendEnabled = YES;
|
|
configuration.inputBarHeightChangeAnimationDuration = 0.2;
|
|
configuration.keyboardSendEnabled = YES;
|
|
|
|
return configuration;
|
|
}
|
|
|
|
@end
|