forked from shadowfacts/Tusker
Change white background when loading attachment to black
This commit is contained in:
parent
f9a62ec3f3
commit
d1913d7e69
|
@ -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 {
|
||||
|
|
|
@ -78,6 +78,8 @@ class GalleryViewController: UIPageViewController, UIPageViewControllerDataSourc
|
|||
self.dataSource = self
|
||||
self.delegate = self
|
||||
|
||||
overrideUserInterfaceStyle = .dark
|
||||
|
||||
dismissInteractionController = LargeImageInteractionController(viewController: self)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue