Added dark mode to CollectUsersEmailViewController

pull/5252/head
Jerome Chan 2 years ago committed by Hwee-Boon Yar
parent 5a8745cc9d
commit 3e75b20b7a
  1. 2
      AlphaWallet/Common/ViewControllers/ModalViewController.swift
  2. 7
      AlphaWallet/Settings/ViewControllers/CollectUsersEmailViewController.swift

@ -99,7 +99,7 @@ private class _ModalViewController: UIViewController {
private lazy var backgroundView: UIView = {
let view = UIView()
view.translatesAutoresizingMaskIntoConstraints = false
view.backgroundColor = UIColor.black.withAlphaComponent(0.5)
view.backgroundColor = Configuration.Color.Semantic.overlayBackground
view.alpha = 0
let tap = UITapGestureRecognizer(target: self, action: #selector(closeButtonSelected))

@ -26,7 +26,7 @@ class CollectUsersEmailViewController: ModalViewController {
let v = UILabel()
v.numberOfLines = 0
v.textAlignment = .center
v.textColor = R.color.black()
v.textColor = Configuration.Color.Semantic.defaultForegroundText
v.font = Fonts.bold(size: 24)
return v
@ -36,7 +36,7 @@ class CollectUsersEmailViewController: ModalViewController {
let v = UILabel()
v.numberOfLines = 0
v.textAlignment = .center
v.textColor = R.color.mine()
v.textColor = Configuration.Color.Semantic.defaultSubtitleText
v.font = Fonts.regular(size: 17)
return v
@ -53,13 +53,14 @@ class CollectUsersEmailViewController: ModalViewController {
private lazy var buttonsBar: HorizontalButtonsBar = {
let buttonsBar = HorizontalButtonsBar(configuration: .primary(buttons: 1))
buttonsBar.backgroundColor = Configuration.Color.Semantic.dialogBackground
return buttonsBar
}()
init() {
super.init(nibName: nil, bundle: nil)
let footerView = ButtonsBarBackgroundView(buttonsBar: buttonsBar, separatorHeight: 0)
footerView.backgroundColor = Configuration.Color.Semantic.dialogBackground
footerStackView.addArrangedSubview(footerView)
generateSubviews()
presentationDelegate = self

Loading…
Cancel
Save