mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 09:20:08 +00:00
Don't use "default" for keyboard/status bar color
This commit is contained in:
parent
f46418534f
commit
1877b46456
@ -883,7 +883,11 @@ open class NavigationController: UINavigationController, ContainableController,
|
|||||||
let normalStatusBarStyle: UIStatusBarStyle
|
let normalStatusBarStyle: UIStatusBarStyle
|
||||||
switch resolvedStatusBarStyle {
|
switch resolvedStatusBarStyle {
|
||||||
case .black:
|
case .black:
|
||||||
normalStatusBarStyle = .default
|
if #available(iOS 13.0, *) {
|
||||||
|
normalStatusBarStyle = .darkContent
|
||||||
|
} else {
|
||||||
|
normalStatusBarStyle = .default
|
||||||
|
}
|
||||||
case .white:
|
case .white:
|
||||||
normalStatusBarStyle = .lightContent
|
normalStatusBarStyle = .lightContent
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,7 +24,11 @@ public enum StatusBarStyle {
|
|||||||
public var systemStyle: UIStatusBarStyle {
|
public var systemStyle: UIStatusBarStyle {
|
||||||
switch self {
|
switch self {
|
||||||
case .Black:
|
case .Black:
|
||||||
return .default
|
if #available(iOS 13.0, *) {
|
||||||
|
return .darkContent
|
||||||
|
} else {
|
||||||
|
return .default
|
||||||
|
}
|
||||||
case .White:
|
case .White:
|
||||||
return .lightContent
|
return .lightContent
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user