fix an issue that the navigation bar won't change as the appearance settings changes

pull/891/head
Ryan ZHAO 1 year ago
parent 431c024354
commit de4a367374

@ -17,7 +17,7 @@ public class SessionHostingViewController<Content>: UIHostingController<Modified
return ThemeManager.currentTheme.statusBarStyle return ThemeManager.currentTheme.statusBarStyle
} }
public var navigationBackground: ThemeValue { customizedNavigationBackground ?? .backgroundPrimary } public var navigationBackground: ThemeValue? { customizedNavigationBackground }
private let customizedNavigationBackground: ThemeValue? private let customizedNavigationBackground: ThemeValue?
private let shouldHideNavigationBar: Bool private let shouldHideNavigationBar: Bool

@ -101,7 +101,7 @@ public protocol ThemeColors {
// MARK: - ThemedNavigation // MARK: - ThemedNavigation
public protocol ThemedNavigation { public protocol ThemedNavigation {
var navigationBackground: ThemeValue { get } var navigationBackground: ThemeValue? { get }
} }
// MARK: - ThemeValue // MARK: - ThemeValue

Loading…
Cancel
Save