|
@@ -409,12 +409,12 @@ class ChatViewController: MessagesViewController {
|
|
|
|
|
|
messageInputBar.inputTextView.backgroundColor = DcColors.inputFieldColor
|
|
messageInputBar.inputTextView.backgroundColor = DcColors.inputFieldColor
|
|
messageInputBar.inputTextView.placeholderTextColor = DcColors.placeholderColor
|
|
messageInputBar.inputTextView.placeholderTextColor = DcColors.placeholderColor
|
|
- messageInputBar.inputTextView.textContainerInset = UIEdgeInsets(top: 8, left: 16, bottom: 8, right: 38)
|
|
|
|
- messageInputBar.inputTextView.placeholderLabelInsets = UIEdgeInsets(top: 8, left: 20, bottom: 8, right: 38)
|
|
|
|
|
|
+ messageInputBar.inputTextView.textContainerInset = UIEdgeInsets(top: 10, left: 16, bottom: 10, right: 38)
|
|
|
|
+ messageInputBar.inputTextView.placeholderLabelInsets = UIEdgeInsets(top: 10, left: 16, bottom: 10, right: 38)
|
|
messageInputBar.inputTextView.layer.borderColor = UIColor.themeColor(light: UIColor(red: 200 / 255, green: 200 / 255, blue: 200 / 255, alpha: 1),
|
|
messageInputBar.inputTextView.layer.borderColor = UIColor.themeColor(light: UIColor(red: 200 / 255, green: 200 / 255, blue: 200 / 255, alpha: 1),
|
|
dark: UIColor(red: 55 / 255, green: 55/255, blue: 55/255, alpha: 1)).cgColor
|
|
dark: UIColor(red: 55 / 255, green: 55/255, blue: 55/255, alpha: 1)).cgColor
|
|
messageInputBar.inputTextView.layer.borderWidth = 1.0
|
|
messageInputBar.inputTextView.layer.borderWidth = 1.0
|
|
- messageInputBar.inputTextView.layer.cornerRadius = 16.0
|
|
|
|
|
|
+ messageInputBar.inputTextView.layer.cornerRadius = 20.0
|
|
messageInputBar.inputTextView.layer.masksToBounds = true
|
|
messageInputBar.inputTextView.layer.masksToBounds = true
|
|
messageInputBar.inputTextView.scrollIndicatorInsets = UIEdgeInsets(top: 8, left: 0, bottom: 8, right: 0)
|
|
messageInputBar.inputTextView.scrollIndicatorInsets = UIEdgeInsets(top: 8, left: 0, bottom: 8, right: 0)
|
|
configureInputBarItems()
|
|
configureInputBarItems()
|
|
@@ -422,20 +422,20 @@ class ChatViewController: MessagesViewController {
|
|
|
|
|
|
private func configureInputBarItems() {
|
|
private func configureInputBarItems() {
|
|
|
|
|
|
- messageInputBar.setLeftStackViewWidthConstant(to: 30, animated: false)
|
|
|
|
- messageInputBar.setRightStackViewWidthConstant(to: 30, animated: false)
|
|
|
|
|
|
+ messageInputBar.setLeftStackViewWidthConstant(to: 40, animated: false)
|
|
|
|
+ messageInputBar.setRightStackViewWidthConstant(to: 40, animated: false)
|
|
|
|
|
|
|
|
|
|
let sendButtonImage = UIImage(named: "paper_plane")?.withRenderingMode(.alwaysTemplate)
|
|
let sendButtonImage = UIImage(named: "paper_plane")?.withRenderingMode(.alwaysTemplate)
|
|
messageInputBar.sendButton.image = sendButtonImage
|
|
messageInputBar.sendButton.image = sendButtonImage
|
|
messageInputBar.sendButton.title = nil
|
|
messageInputBar.sendButton.title = nil
|
|
messageInputBar.sendButton.tintColor = UIColor(white: 1, alpha: 1)
|
|
messageInputBar.sendButton.tintColor = UIColor(white: 1, alpha: 1)
|
|
- messageInputBar.sendButton.layer.cornerRadius = 15
|
|
|
|
- messageInputBar.middleContentViewPadding = UIEdgeInsets(top: 0, left: 5, bottom: 0, right: 10)
|
|
|
|
|
|
+ messageInputBar.sendButton.layer.cornerRadius = 20
|
|
|
|
+ messageInputBar.middleContentViewPadding = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 10)
|
|
// this adds a padding between textinputfield and send button
|
|
// this adds a padding between textinputfield and send button
|
|
messageInputBar.sendButton.contentEdgeInsets = UIEdgeInsets(top: 5, left: 5, bottom: 5, right: 5)
|
|
messageInputBar.sendButton.contentEdgeInsets = UIEdgeInsets(top: 5, left: 5, bottom: 5, right: 5)
|
|
- messageInputBar.sendButton.setSize(CGSize(width: 30, height: 30), animated: false)
|
|
|
|
-
|
|
|
|
|
|
+ messageInputBar.sendButton.setSize(CGSize(width: 40, height: 40), animated: false)
|
|
|
|
+ messageInputBar.padding = UIEdgeInsets(top: 6, left: 6, bottom: 6, right: 12)
|
|
|
|
|
|
let leftItems = [
|
|
let leftItems = [
|
|
InputBarButtonItem()
|
|
InputBarButtonItem()
|
|
@@ -444,6 +444,7 @@ class ChatViewController: MessagesViewController {
|
|
let clipperIcon = #imageLiteral(resourceName: "ic_attach_file_36pt").withRenderingMode(.alwaysTemplate)
|
|
let clipperIcon = #imageLiteral(resourceName: "ic_attach_file_36pt").withRenderingMode(.alwaysTemplate)
|
|
$0.image = clipperIcon
|
|
$0.image = clipperIcon
|
|
$0.tintColor = UIColor.themeColor(light: .darkGray, dark: .lightGray)
|
|
$0.tintColor = UIColor.themeColor(light: .darkGray, dark: .lightGray)
|
|
|
|
+ $0.setSize(CGSize(width: 40, height: 40), animated: false)
|
|
}.onSelected {
|
|
}.onSelected {
|
|
$0.tintColor = DcColors.primary
|
|
$0.tintColor = DcColors.primary
|
|
}.onDeselected {
|
|
}.onDeselected {
|