Browse Source

make message input bar translucent

cyberta 3 years ago
parent
commit
98335d837e

+ 0 - 2
deltachat-ios/Chat/ChatViewController.swift

@@ -1069,8 +1069,6 @@ class ChatViewController: UITableViewController {
         messageInputBar.separatorLine.backgroundColor = DcColors.colorDisabled
         messageInputBar.inputTextView.tintColor = DcColors.primary
         messageInputBar.inputTextView.textColor = DcColors.defaultTextColor
-        messageInputBar.backgroundView.backgroundColor = DcColors.chatBackgroundColor
-        messageInputBar.backgroundColor = DcColors.chatBackgroundColor
         messageInputBar.inputTextView.backgroundColor = DcColors.inputFieldColor
         messageInputBar.inputTextView.placeholderTextColor = DcColors.placeholderColor
         messageInputBar.inputTextView.textContainerInset = UIEdgeInsets(top: 8, left: 16, bottom: 8, right: 38)

+ 3 - 3
deltachat-ios/Chat/Views/ChatInputBar.swift

@@ -18,7 +18,6 @@ public class ChatInputBar: InputBarAccessoryView {
         button.isHidden = true
         return button
     }()
-    
 
     public convenience init() {
         self.init(frame: .zero)
@@ -27,19 +26,20 @@ public class ChatInputBar: InputBarAccessoryView {
     public override init(frame: CGRect) {
         super.init(frame: frame)
         setupKeyboardObserver()
-        backgroundView.backgroundColor = DcColors.defaultBackgroundColor
     }
 
     required public init?(coder aDecoder: NSCoder) {
         super.init(coder: aDecoder)
         setupKeyboardObserver()
-        backgroundView.backgroundColor = DcColors.defaultBackgroundColor
     }
 
     override open func setup() {
         replaceInputBar()
         setupScrollDownButton()
         super.setup()
+        backgroundColor = .clear
+        backgroundView.backgroundColor = DcColors.defaultBackgroundColor
+        isTranslucent = true
     }
     
     @objc func onScrollDownPressed() {