From 3e75b20b7a36403f04a1863fa65ad5522dc7e344 Mon Sep 17 00:00:00 2001 From: Jerome Chan Date: Thu, 1 Sep 2022 14:34:17 +0800 Subject: [PATCH] Added dark mode to CollectUsersEmailViewController --- .../Common/ViewControllers/ModalViewController.swift | 2 +- .../ViewControllers/CollectUsersEmailViewController.swift | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/AlphaWallet/Common/ViewControllers/ModalViewController.swift b/AlphaWallet/Common/ViewControllers/ModalViewController.swift index d75ddcd8b..421d6d1c2 100644 --- a/AlphaWallet/Common/ViewControllers/ModalViewController.swift +++ b/AlphaWallet/Common/ViewControllers/ModalViewController.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)) diff --git a/AlphaWallet/Settings/ViewControllers/CollectUsersEmailViewController.swift b/AlphaWallet/Settings/ViewControllers/CollectUsersEmailViewController.swift index 08e1232ae..9f00f95fe 100644 --- a/AlphaWallet/Settings/ViewControllers/CollectUsersEmailViewController.swift +++ b/AlphaWallet/Settings/ViewControllers/CollectUsersEmailViewController.swift @@ -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