|
@@ -142,25 +142,26 @@ public class EditorGroup: UIViewController {
|
|
super.viewDidLoad()
|
|
super.viewDidLoad()
|
|
// navigationController?.navigationBar.topItem?.title = ""
|
|
// navigationController?.navigationBar.topItem?.title = ""
|
|
|
|
|
|
- viewButton.layer.shadowColor = UIColor.gray.cgColor
|
|
|
|
|
|
+ viewButton.layer.shadowColor = self.traitCollection.userInterfaceStyle == .dark ? UIColor.white.cgColor : UIColor.gray.cgColor
|
|
viewButton.layer.shadowOpacity = 1
|
|
viewButton.layer.shadowOpacity = 1
|
|
viewButton.layer.shadowOffset = .zero
|
|
viewButton.layer.shadowOffset = .zero
|
|
viewButton.layer.shadowRadius = 3
|
|
viewButton.layer.shadowRadius = 3
|
|
|
|
|
|
// buttonVoice.setImage(resizeImage(image: UIImage(named: "Voice-Record", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)), for: .normal)
|
|
// buttonVoice.setImage(resizeImage(image: UIImage(named: "Voice-Record", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)), for: .normal)
|
|
- buttonSendImage.setImage(resizeImage(image: UIImage(named: "Send-Image", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)).withTintColor(.mainColor), for: .normal)
|
|
|
|
- buttonSendPhoto.setImage(resizeImage(image: UIImage(named: "Camera", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)).withTintColor(.mainColor), for: .normal)
|
|
|
|
- buttonSendSticker.setImage(resizeImage(image: UIImage(named: "Sticker---Emoji", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)).withTintColor(.mainColor), for: .normal)
|
|
|
|
- buttonSendFile.setImage(resizeImage(image: UIImage(named: "File---Documents", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)).withTintColor(.mainColor), for: .normal)
|
|
|
|
|
|
+ buttonSendImage.setImage(resizeImage(image: UIImage(named: "Send-Image", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)).withTintColor(self.traitCollection.userInterfaceStyle == .dark ? .white : .mainColor), for: .normal)
|
|
|
|
+ buttonSendPhoto.setImage(resizeImage(image: UIImage(named: "Camera", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)).withTintColor(self.traitCollection.userInterfaceStyle == .dark ? .white : .mainColor), for: .normal)
|
|
|
|
+ buttonSendSticker.setImage(resizeImage(image: UIImage(named: "Sticker---Emoji", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)).withTintColor(self.traitCollection.userInterfaceStyle == .dark ? .white : .mainColor), for: .normal)
|
|
|
|
+ buttonSendFile.setImage(resizeImage(image: UIImage(named: "File---Documents", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)).withTintColor(self.traitCollection.userInterfaceStyle == .dark ? .white : .mainColor), for: .normal)
|
|
|
|
|
|
- buttonSendChat.setImage(resizeImage(image: UIImage(named: "Send-(White)", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)).withRenderingMode(.alwaysOriginal), for: .normal)
|
|
|
|
|
|
+ buttonSendChat.setImage(resizeImage(image: self.traitCollection.userInterfaceStyle == .dark ? UIImage(named: "Send-(White)", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!.withTintColor(.blackDarkMode) : UIImage(named: "Send-(White)", in: Bundle.resourceBundle(for: Nexilis.self), with: nil)!, targetSize: CGSize(width: 30, height: 30)).withRenderingMode(.alwaysOriginal), for: .normal)
|
|
|
|
|
|
buttonSendChat.circle()
|
|
buttonSendChat.circle()
|
|
buttonSendChat.addTarget(self, action: #selector(sendTapped), for: .touchUpInside)
|
|
buttonSendChat.addTarget(self, action: #selector(sendTapped), for: .touchUpInside)
|
|
- buttonSendChat.backgroundColor = .mainColor
|
|
|
|
|
|
+ buttonSendChat.backgroundColor = self.traitCollection.userInterfaceStyle == .dark ? .white : .mainColor
|
|
buttonAckConfidential.circle()
|
|
buttonAckConfidential.circle()
|
|
buttonAckConfidential.addTarget(self, action: #selector(showChooserACKConfidential), for: .touchUpInside)
|
|
buttonAckConfidential.addTarget(self, action: #selector(showChooserACKConfidential), for: .touchUpInside)
|
|
- buttonAckConfidential.backgroundColor = .mainColor
|
|
|
|
|
|
+ buttonAckConfidential.tintColor = self.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .white
|
|
|
|
+ buttonAckConfidential.backgroundColor = self.traitCollection.userInterfaceStyle == .dark ? .white : .mainColor
|
|
textFieldSend.layer.cornerRadius = textFieldSend.maxCornerRadius()
|
|
textFieldSend.layer.cornerRadius = textFieldSend.maxCornerRadius()
|
|
textFieldSend.layer.borderWidth = 1.0
|
|
textFieldSend.layer.borderWidth = 1.0
|
|
textFieldSend.text = "Send message".localized()
|
|
textFieldSend.text = "Send message".localized()
|
|
@@ -671,10 +672,9 @@ public class EditorGroup: UIViewController {
|
|
searchBar.delegate = self
|
|
searchBar.delegate = self
|
|
searchBar.searchTextField.tintColor = .mainColor
|
|
searchBar.searchTextField.tintColor = .mainColor
|
|
searchBar.searchTextField.textColor = .mainColor
|
|
searchBar.searchTextField.textColor = .mainColor
|
|
- searchBar.barTintColor = .secondaryColor
|
|
|
|
- searchBar.searchTextField.backgroundColor = .secondaryColor
|
|
|
|
|
|
+ searchBar.updateHeight(height: 32, radius: 20)
|
|
searchBar.showsCancelButton = false
|
|
searchBar.showsCancelButton = false
|
|
- searchBar.setMagnifyingGlassColorTo(color: .mainColor)
|
|
|
|
|
|
+ searchBar.setMagnifyingGlassColorTo(color: self.traitCollection.userInterfaceStyle == .dark ? .white : .mainColor)
|
|
navigationItem.titleView = searchBar
|
|
navigationItem.titleView = searchBar
|
|
self.definesPresentationContext = true
|
|
self.definesPresentationContext = true
|
|
}
|
|
}
|
|
@@ -2469,7 +2469,7 @@ extension EditorGroup: UIContextMenuInteractionDelegate {
|
|
constraintBottomContainerMultpileSelectSession,
|
|
constraintBottomContainerMultpileSelectSession,
|
|
containerMultpileSelectSession.heightAnchor.constraint(equalToConstant: 50)
|
|
containerMultpileSelectSession.heightAnchor.constraint(equalToConstant: 50)
|
|
])
|
|
])
|
|
- containerMultpileSelectSession.backgroundColor = .white
|
|
|
|
|
|
+ containerMultpileSelectSession.backgroundColor = self.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .white
|
|
addSubviewMultipleSession()
|
|
addSubviewMultipleSession()
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2487,7 +2487,7 @@ extension EditorGroup: UIContextMenuInteractionDelegate {
|
|
container.layer.shadowOffset = CGSize(width: 3, height: 3)
|
|
container.layer.shadowOffset = CGSize(width: 3, height: 3)
|
|
container.layer.shadowRadius = 3.0
|
|
container.layer.shadowRadius = 3.0
|
|
container.layer.shadowColor = UIColor.black.cgColor
|
|
container.layer.shadowColor = UIColor.black.cgColor
|
|
- container.backgroundColor = .secondaryColor
|
|
|
|
|
|
+ container.backgroundColor = self.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .secondaryColor
|
|
|
|
|
|
if !isSearching {
|
|
if !isSearching {
|
|
let title = UILabel()
|
|
let title = UILabel()
|