From d1913d7e693d3e5f600b310b7eb95255d0e05daa Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 25 Jan 2020 22:09:00 -0500 Subject: [PATCH] Change white background when loading attachment to black --- Tusker/Screens/Attachment/AttachmentViewController.swift | 3 +++ Tusker/Screens/Gallery/GalleryViewController.swift | 2 ++ Tusker/Screens/Utilities/LoadingViewController.swift | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Tusker/Screens/Attachment/AttachmentViewController.swift b/Tusker/Screens/Attachment/AttachmentViewController.swift index f23fa6d7..b356021c 100644 --- a/Tusker/Screens/Attachment/AttachmentViewController.swift +++ b/Tusker/Screens/Attachment/AttachmentViewController.swift @@ -48,6 +48,9 @@ class AttachmentViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() + overrideUserInterfaceStyle = .dark + view.backgroundColor = .black + if let data = ImageCache.attachments.get(attachment.url) { createLargeImage(data: data) } else { diff --git a/Tusker/Screens/Gallery/GalleryViewController.swift b/Tusker/Screens/Gallery/GalleryViewController.swift index 81d76482..e5429831 100644 --- a/Tusker/Screens/Gallery/GalleryViewController.swift +++ b/Tusker/Screens/Gallery/GalleryViewController.swift @@ -78,6 +78,8 @@ class GalleryViewController: UIPageViewController, UIPageViewControllerDataSourc self.dataSource = self self.delegate = self + overrideUserInterfaceStyle = .dark + dismissInteractionController = LargeImageInteractionController(viewController: self) } diff --git a/Tusker/Screens/Utilities/LoadingViewController.swift b/Tusker/Screens/Utilities/LoadingViewController.swift index 12049260..a5c9ce2f 100644 --- a/Tusker/Screens/Utilities/LoadingViewController.swift +++ b/Tusker/Screens/Utilities/LoadingViewController.swift @@ -16,7 +16,7 @@ class LoadingViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() - view.backgroundColor = .systemBackground + view.backgroundColor = .clear activityIndicator = UIActivityIndicatorView(style: .large) activityIndicator.color = .secondaryLabel