From 931562de33a376e6a3a55331fca6a1a0d652a24a Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 8 Aug 2018 09:52:27 -0400 Subject: [PATCH] Refine theme. --- Signal/src/ViewControllers/ColorPickerViewController.swift | 2 +- .../ThreadSettings/FingerprintViewScanController.m | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Signal/src/ViewControllers/ColorPickerViewController.swift b/Signal/src/ViewControllers/ColorPickerViewController.swift index 6a94abf62..eff071c5a 100644 --- a/Signal/src/ViewControllers/ColorPickerViewController.swift +++ b/Signal/src/ViewControllers/ColorPickerViewController.swift @@ -71,7 +71,7 @@ class ColorPickerViewController: UIViewController, UIPickerViewDelegate, UIPicke override func loadView() { self.view = UIView() - view.backgroundColor = .white + view.backgroundColor = Theme.backgroundColor view.addSubview(pickerView) pickerView.autoVCenterInSuperview() diff --git a/Signal/src/ViewControllers/ThreadSettings/FingerprintViewScanController.m b/Signal/src/ViewControllers/ThreadSettings/FingerprintViewScanController.m index 6775045ec..b12c76d0b 100644 --- a/Signal/src/ViewControllers/ThreadSettings/FingerprintViewScanController.m +++ b/Signal/src/ViewControllers/ThreadSettings/FingerprintViewScanController.m @@ -68,9 +68,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)createViews { - UIColor *darkGrey = [UIColor colorWithRGBHex:0x404040]; - - self.view.backgroundColor = [UIColor blackColor]; + self.view.backgroundColor = UIColor.blackColor; self.qrScanningController = [OWSQRCodeScanningViewController new]; self.qrScanningController.scanDelegate = self; @@ -79,7 +77,7 @@ NS_ASSUME_NONNULL_BEGIN [self.qrScanningController.view autoPinToTopLayoutGuideOfViewController:self withInset:0]; UIView *footer = [UIView new]; - footer.backgroundColor = darkGrey; + footer.backgroundColor = [UIColor colorWithWhite:0.25f alpha:1.f]; [self.view addSubview:footer]; [footer autoPinWidthToSuperview]; [footer autoPinEdgeToSuperviewEdge:ALEdgeBottom];