From ba15eaed5cb2e17f4ef5906a25626005ae9eb39e Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 29 Nov 2021 03:39:05 +0400 Subject: [PATCH] Fix Theme Colors navigation bar opacity --- .../SettingsUI/Sources/Themes/ThemeColorsGridController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/SettingsUI/Sources/Themes/ThemeColorsGridController.swift b/submodules/SettingsUI/Sources/Themes/ThemeColorsGridController.swift index f0d120c73f..82cb6fad06 100644 --- a/submodules/SettingsUI/Sources/Themes/ThemeColorsGridController.swift +++ b/submodules/SettingsUI/Sources/Themes/ThemeColorsGridController.swift @@ -233,7 +233,7 @@ final class ThemeColorsGridController: ViewController { } else { transition = .immediate } - strongSelf.navigationBar?.updateBackgroundAlpha(min(30.0, max(0.0, value - 54.0)) / 30.0, transition: transition) + strongSelf.navigationBar?.updateBackgroundAlpha(min(30.0, value) / 30.0, transition: transition) case .unknown, .none: strongSelf.navigationBar?.updateBackgroundAlpha(1.0, transition: .immediate) }