Change white background when loading attachment to black

This commit is contained in:
Shadowfacts 2020-01-25 22:09:00 -05:00
parent f9a62ec3f3
commit d1913d7e69
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
3 changed files with 6 additions and 1 deletions

View File

@ -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 {

View File

@ -78,6 +78,8 @@ class GalleryViewController: UIPageViewController, UIPageViewControllerDataSourc
self.dataSource = self
self.delegate = self
overrideUserInterfaceStyle = .dark
dismissInteractionController = LargeImageInteractionController(viewController: self)
}

View File

@ -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