diff --git a/Delta/Base.lproj/PauseMenu.storyboard b/Delta/Base.lproj/PauseMenu.storyboard index 3a7a744..3f5661f 100644 --- a/Delta/Base.lproj/PauseMenu.storyboard +++ b/Delta/Base.lproj/PauseMenu.storyboard @@ -1,19 +1,11 @@ - - - - + + - - + - - - Menlo-Regular - - @@ -40,6 +32,7 @@ + @@ -74,7 +67,7 @@ - + @@ -138,7 +131,7 @@ - + @@ -184,7 +177,7 @@ - + @@ -192,14 +185,14 @@ - + - + - + @@ -208,9 +201,9 @@ - + - + @@ -266,11 +259,11 @@ - + - + @@ -295,11 +288,11 @@ - + - + @@ -324,11 +317,11 @@ - + - + diff --git a/Delta/Pause Menu/PauseViewController.swift b/Delta/Pause Menu/PauseViewController.swift index 1df72d1..9a8df82 100644 --- a/Delta/Pause Menu/PauseViewController.swift +++ b/Delta/Pause Menu/PauseViewController.swift @@ -93,6 +93,22 @@ extension PauseViewController self.pauseNavigationController.view.backgroundColor = UIColor.clear let gridMenuViewController = self.pauseNavigationController.topViewController as! GridMenuViewController + + if #available(iOS 13.0, *) + { + let navigationBarAppearance = self.pauseNavigationController.navigationBar.standardAppearance.copy() + navigationBarAppearance.backgroundEffect = UIBlurEffect(style: .dark) + navigationBarAppearance.backgroundColor = UIColor.black.withAlphaComponent(0.2) + navigationBarAppearance.shadowColor = UIColor.white.withAlphaComponent(0.2) + navigationBarAppearance.titleTextAttributes = [.foregroundColor: UIColor.white] + self.pauseNavigationController.navigationBar.standardAppearance = navigationBarAppearance + + let transparentBarAppearance = navigationBarAppearance.copy() + transparentBarAppearance.backgroundColor = nil + transparentBarAppearance.backgroundEffect = nil + gridMenuViewController.navigationItem.standardAppearance = transparentBarAppearance + } + gridMenuViewController.items = self.pauseItems case "saveStates":