fix: confirm email and resend email scene in Dark Mode
This commit is contained in:
parent
491448e753
commit
cd77afe4a1
|
@ -206,7 +206,7 @@ import SwiftUI
|
||||||
|
|
||||||
struct MastodonConfirmEmailViewController_Previews: PreviewProvider {
|
struct MastodonConfirmEmailViewController_Previews: PreviewProvider {
|
||||||
|
|
||||||
static var previews: some View {
|
static var controls: some View {
|
||||||
UIViewControllerPreview {
|
UIViewControllerPreview {
|
||||||
let viewController = MastodonConfirmEmailViewController()
|
let viewController = MastodonConfirmEmailViewController()
|
||||||
return viewController
|
return viewController
|
||||||
|
@ -214,6 +214,13 @@ struct MastodonConfirmEmailViewController_Previews: PreviewProvider {
|
||||||
.previewLayout(.fixed(width: 375, height: 800))
|
.previewLayout(.fixed(width: 375, height: 800))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static var previews: some View {
|
||||||
|
Group {
|
||||||
|
controls.colorScheme(.light)
|
||||||
|
controls.colorScheme(.dark)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -56,9 +56,6 @@ final class MastodonPickServerViewController: UIViewController, NeedsDependency
|
||||||
|
|
||||||
extension MastodonPickServerViewController {
|
extension MastodonPickServerViewController {
|
||||||
|
|
||||||
override var preferredStatusBarStyle: UIStatusBarStyle {
|
|
||||||
return .darkContent
|
|
||||||
}
|
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
|
@ -238,10 +238,6 @@ final class MastodonRegisterViewController: UIViewController, NeedsDependency, O
|
||||||
|
|
||||||
extension MastodonRegisterViewController {
|
extension MastodonRegisterViewController {
|
||||||
|
|
||||||
override var preferredStatusBarStyle: UIStatusBarStyle {
|
|
||||||
return .darkContent
|
|
||||||
}
|
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
|
|
|
@ -41,13 +41,9 @@ final class MastodonResendEmailViewController: UIViewController, NeedsDependency
|
||||||
|
|
||||||
extension MastodonResendEmailViewController {
|
extension MastodonResendEmailViewController {
|
||||||
|
|
||||||
override var preferredStatusBarStyle: UIStatusBarStyle {
|
|
||||||
return .darkContent
|
|
||||||
}
|
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
setupOnboardingAppearance()
|
||||||
navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(MastodonResendEmailViewController.cancelBarButtonItemPressed(_:)))
|
navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(MastodonResendEmailViewController.cancelBarButtonItemPressed(_:)))
|
||||||
|
|
||||||
webView.translatesAutoresizingMaskIntoConstraints = false
|
webView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
|
@ -72,3 +68,6 @@ extension MastodonResendEmailViewController {
|
||||||
dismiss(animated: true, completion: nil)
|
dismiss(animated: true, completion: nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: - OnboardingViewControllerAppearance
|
||||||
|
extension MastodonResendEmailViewController: OnboardingViewControllerAppearance { }
|
||||||
|
|
|
@ -64,10 +64,6 @@ final class WelcomeViewController: UIViewController, NeedsDependency {
|
||||||
|
|
||||||
extension WelcomeViewController {
|
extension WelcomeViewController {
|
||||||
|
|
||||||
override var preferredStatusBarStyle: UIStatusBarStyle {
|
|
||||||
return .darkContent
|
|
||||||
}
|
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue