From eaf8d789fb55d57c0060f2666977772c3602219b Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Wed, 22 Aug 2018 12:36:01 -0600 Subject: [PATCH] Darken message actions overlay in dark theme --- Signal/src/ViewControllers/MenuActionsViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/MenuActionsViewController.swift b/Signal/src/ViewControllers/MenuActionsViewController.swift index 59d515829..9bf6b36d9 100644 --- a/Signal/src/ViewControllers/MenuActionsViewController.swift +++ b/Signal/src/ViewControllers/MenuActionsViewController.swift @@ -135,7 +135,8 @@ class MenuActionsViewController: UIViewController, MenuActionSheetDelegate { let backgroundDuration: TimeInterval = 0.1 UIView.animate(withDuration: backgroundDuration) { - self.view.backgroundColor = UIColor.black.withAlphaComponent(0.4) + let alpha: CGFloat = Theme.isDarkThemeEnabled ? 0.7 : 0.4 + self.view.backgroundColor = UIColor.black.withAlphaComponent(alpha) } self.actionSheetView.superview?.layoutIfNeeded()